Questions tagged [flutter-material]
45 questions
0
votes
0 answers
Best way to display widgets outside of the main Scaffold?
I want to display a sidebar to the right of the entire Scaffold, such that when the user navigates between routes in the Scaffold, for example using Navigator.of(context).pushNamed(), the sidebar should be unaffected. In the sidebar, I also need to…

Magnus
- 17,157
- 19
- 104
- 189
0
votes
0 answers
Showing an alert dialog with an expand-and-crossfade animation
I would like to show an AlertDialog with an "expand and cross-fade" transition originating from the widget that is tapped to open it.
Does Flutter provide APIs for this transition, or does it need to be implemented manually? If the latter, how?

hacker1024
- 3,186
- 1
- 11
- 31
0
votes
1 answer
Issue with Flutter Material 3 looking like 120% zoom
I have a strange issue with Material 3 theme in flutter.
For some reason, when I enable the material3 flag, every button and text enlarges way over how it would normally need to look on the device.
I have generated my color scheme using the material…

Mihai
- 1,212
- 16
- 25
0
votes
2 answers
Change the selected color in the material library YearPicker in Flutter
I want to change Selected color for Yearpicker
Without any changes.
I want to change selected color to green
In simple Date picker there is Build method available for change in theme but For Yearpicker i could not find any way.
return AlertDialog(
…

devar007
- 5
- 4
0
votes
0 answers
Flutter MaterialStateProperty - Merge two styles together
I am coming from a more web css design where have things like .btn .btn-primary and the .btn--lg/.btn-sm
I am just not sure how to handle the sizing. Currently I have a function that determines the correct buttonStyle based upon type of button but…

Dallas Fraser
- 11
- 1
0
votes
1 answer
Flutter make a tab on TabBar navigate to another screen
I'm trying to develop an app where I have a tabbar in which every tab displays info in the TabBarView. Except the last one ('+ New List), in which I want to show a different screen using Navigator when tapped.
For this purpose I used GestureDetector…

Tiago Fernandes
- 3
- 2
0
votes
3 answers
Flutter Material 3 Changed colors, and fonts
So I just decided to give Material 3 a shot in Flutter and it changed a whole lot of colors, and fonts etc.
I knew certain things would look different like more rounded corners on my cards but I wasn't expecting all the fonts and card colors to…

Ten Digit Grid
- 1,315
- 4
- 22
- 43
0
votes
0 answers
Flutter face_2 icon not found
I can see the "face_2" right here in the flutter MaterialIcon listing: https://api.flutter.dev/flutter/material/Icons/face_2-constant.html and https://api.flutter.dev/flutter/material/Icons-class.html, but when I try Icons.face_2, flutter can't find…
0
votes
1 answer
Where is Flutter's Navigator declared?
When creating a Flutter application,
we use a Navigator to move back and forth between screens.
In my application, I have some class instances that
I want to share with all child widgets in the hierarchy.
An example is a Data Base driver class…

Daniel
- 257
- 1
- 7
0
votes
0 answers
How to create multi select CheckboxListTile perfectly in flutter?
I have a Bottom sheet which shows the list of Cities from which I have to select multiple Cities and if I open the bottomSheet second time previous selected cities should be pre selected but only if user press the save button after selecting Cities…

Rizwan Ansari
- 1
- 2
0
votes
1 answer
IconButton widget in my flutter app takes 2-3 seconds to render. Why does this happen?
I am a flutter newbie. I have two IconButtons in my android flutter app. When i run the app the two IconButtons take 2 seconds to render after all other components have rendered.
This is my code, The IconButtons are used in the end:
class…

Delwin George
- 3
- 1
0
votes
1 answer
Flutter: Disable picking the day from datePicker
I'm trying to create a month/year picker in the Flutter project for both material and Cupertino styles. However, I can't find an ability to disable the days on the default date picker and the available packages only offer Cupertino-styled month…

Laura
- 402
- 1
- 7
- 24
0
votes
2 answers
Flutter InkWell splash strength - how to make it more visible globally for the entire app?
In my flutter app, when I click a button (or anything decorated with InkWell) the splash/ripple effect is very gentle, almost invisible. (It is there, it's not covered, just very gentle, too subtle).
When I use other apps (e.g. Google's Gmail app)…

Maciej Pszczolinski
- 1,623
- 1
- 19
- 38
0
votes
0 answers
Flutter modal bottom sheet animation
How to display size animation (from zero height to full height) of a modal bottom sheet that has a dynamic height which only hapens on navigating to a new screen (without a button being tapped)? I want to have animation controller as part of the…

May
- 93
- 7
0
votes
1 answer
Flutter Listen List Object When Any Item Value Change
i have an List item keeping bool values like that:
List isSelectedDiscountValue = [false, false];
isSelectedDiscountValue.listen((selectedIndex)async {
await _setValues(selectedIndex);
that code return to me flutter the method listen is…

onrcn_
- 107
- 1
- 1
- 3