how i disabled performance underline in flutter android studio - flutter

I want to remove that green underline
I tried to use 'const' before widgets but sometimes i do not want to use it.

One simple change
/analysis_options.YAML and adding prefer_const_constructors: false on the rules field

Related

Flutter: Make text/images selectable in whole web app

In the Flutter web apps, there is no default functionality which makes text and images in the app selectable.
Is there a way to enable selection functionality for text/image on web?
I did check SelectableText widget but it is only for text and I would need to use it over every text. Also, you can't select text in multiple SelectableText widgets at once, you can only select text in one of them. I'm looking for a solution to select all text in the app without making change to every text widget.
Let me know if there’s one step solution to achieve this thing in whole web app.
In Flutter 3.3, with the introduction of the SelectableArea widget, any child of the SelectableArea widget has selection enabled for free!
To take advantage of this powerful new feature, simply wrap your route body (such as the Scaffold) with the SelectionArea widget and let Flutter do the rest.
For a more comprehensive deep dive into this awesome new feature, please visit the SelectableArea API page.
Flutter Web currently does not support multiple text selection across SelectableText widgets.
However, there are some experimental widgets that people are currently working on. According to a guide available at:
Custom SelectableScope Widget
They have proposed a custom widget, a Selectable scope, which basically allows for anything within it to be selectable (currently text and images)
NOTE: THIS IS CURRENTLY UNDER EXPERIMENTATION AND MIGHT CHANGE AS MENTIONED IN THE PROVIDED LINK.

Android Studio: how to figure out which property defines element color

Is there any way to figure out which property defines element color using Flutter Inspector etc?
For example I have an App Bar with some text in it. Is it it possible to find whereis it set to the current color?
In this case I was searching top to bottom: in ThemeData smth about App Bar, in AppBarTheme smth about Text Style or Color. But I think that it could be done faster form the other side.
Android Studio Arctix Fox 2020.3.1.

Some of material design icons are not defined flutter

Hey so I have this problem, I want to use some icons that are listed here but in my flutter it says the name isn't defined. I already tried to do flutter clean and the problem still exists (I need to use Icons.password and Icons.person_off). Do you have any idea how to fix it? Thanks in advance
Go on to the pubspec.yaml file and enable the material dependecies like
uses-material-design: true also if you still not found your icon then go to https://fonts.google.com/icons this page and search for your icon and after clicking on your icon it will show you the code for implementing that icon on web, android, flutter and IOS.

How to change the splashRadius of a BottomNavigationBarItem in Flutter

I am trying to change de splashRadius of a BottomNavigationBarItem in Flutter as if it was an IconButton but there isn't a variable that woks as splashRadius. Any help?
You have some styling options in the bar itself, but I don't think it has an option for what I think is a splashRadius. If not, you'll probably have to create a bottom navigationbar yourself. (You can take a look at different packages to see how they do it)

vscode code actions does not show full list of actions for flutter

code actions in visual studio code shows only 3 actions for flutter which are all extracting widgets. How can I show more actions like wrapping widgets, removing widgets, etc. I have tried all extensions and changed every setting I found but I still couldn't add them.