Questions tagged [flutter-scaffold]
29 questions
7
votes
2 answers
How to create button on the left in Appbar [flutter]
I tried to make the button[that pop new screen]on the left of the app-bar but I found only drawer that is not what I want.
what I want in AppBar:
------------------------------------------------
| button |----------text----------| button…
| button |----------text----------| button…

ProgramZa
- 97
- 1
- 1
- 4
7
votes
2 answers
Is it correct to have nested Scaffold in Flutter?
I have a PageView in my app homepage and I want:
The AppBar changes according to the page
The BottomAppBar is fixed
The 2 solutions I imagined are:
The hard one: have one Scaffold with appBar, body and bottomNavigationBar; use the PageView's…

Galactose
- 175
- 3
- 8
3
votes
0 answers
Make multiple scaffold with single Tabs bar
I am building a flutter app where the user requirement is to build 3 tabs with each tab having custom AppBar which implies to have multiple Scaffolds in each view.
So I have main.dart, screen.dart, account.dart and post.dart
3 tabs => Screen,…

neerav94
- 429
- 1
- 8
- 15
2
votes
1 answer
How to change Scaffold body based on which navigation bar button is clicked in flutter?
i'm new to flutter and i want to make this the proper way , the thing is i have a bottom navigation bar package i Curved_navigation_bar it has awesome looking and animation, this navigation bar should change the body of the Scaffold widget and…

Asmoun
- 1,417
- 5
- 20
- 53
2
votes
2 answers
How to suppress scroll-into-view behavior in Flutter?
I have a CustomScrollView with a SliverAppBar that hides on scroll.
On the app bar is a search button that, when pressed, puts a TextField into the app bar.
When the field gets focus, it causes the scroll view to scroll all the way to the top, and…

Aaron
- 915
- 9
- 21
2
votes
1 answer
Flutter Drawer Animation Curve
Is there a way to add a curve to a flutter scaffold drawer? For example Curves.ElasticOut.
I thought about extending the Drawer or DrawerControllerState class to create a custom version that allows a curve input however there doesn't seem to be an…

pigeon8
- 23
- 5
1
vote
2 answers
Why is CustomPaint affected by whether it is under a Scaffold?
App〈 MaterialApp〈 MyWidget : all is good
Whether I draw the figure on a canvas with a small or a large scale—by replacing v = 100000.0 with v = 1000.0 in the following code, the image doesn't change, as expected.
(If you are not familiar with the…

Sam
- 563
- 5
- 15
1
vote
1 answer
Flutter snackbar in Hero widget
I used to had two widgets where the first displays a list and the second is the detail page of a specific item in the list.
class WidgetA extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
…

Wouter Vandenputte
- 1,948
- 4
- 26
- 50
1
vote
0 answers
Can not get data from a network request in a method that uses Scaffold.of(context)
I have two class methods inside my Stateful widget. As you can see one method is called inside the other one.
1st class method
Future _getExchangeHousesList() async {
const url = ApiEndpoints.getExchangeHouses;
Map…

CodeR_Ax20
- 91
- 1
- 8
1
vote
1 answer
Flutter How to Scaffold layout size ( error)
I'm still working on learn Flutter.
I have a button in my home page and it navigate to my CustomWidget. (It is StepperWidget btw)
Whenever I tried to add Scaffold in my widget it's break.
and giving this error message.
Here is my widget…

Tolga Yılmaz
- 506
- 1
- 3
- 15
1
vote
1 answer
How to push a Route from inside the body of a scaffold with a bottomnavigationbar?
I have a MaterialApp in my main.dart within a Nav() Widget which contains a Scaffold with an appBar and a BottomNavigationBar. The NavigationBar has 4 BottomNavigationBarItems, but I have more Pages than 4 in my whole App. The other pages can be…

moboldi
- 51
- 1
- 8
1
vote
0 answers
Provider in the widget tree - scope between MaterialApp and Scaffold?
I am building a quiz app using Flutter and relying on provider to update the UI. My widget tree has two main branches. One that relates to menu and the other game loop.
Currently I am using a Multiprovider for the screens/branch that pertain to the…

Alexandre Jean
- 622
- 2
- 11
- 19
1
vote
0 answers
Flutter: SystemChrome.setEnabledSystemUIOverlays visual bug upon enabling SystemUiOverlay.bottom
so i am experiencing a visual bug upon enabling SystemUiOverlay.bottom if the keyboard is currently animating in or out, like seen in the code below. So what i am intending is for the bottom navigation bar to only ever be enabled while the virtual…

Lachlan
- 415
- 5
- 12
1
vote
2 answers
Place an IconButton on the top right corner of your scaffold
I want to place an Iconbutton in the top right corner of my Scaffold that programmatically opens a drawer. It should be the top right corner for every displaytype.
Using an appbar would ruin the look of the page since I just need a small icon that…

Salatgurke
- 1,554
- 1
- 13
- 35
1
vote
2 answers
How to set background image in flutter?
I have started learning flutter recently, I want to add background image and on it I want to add two flat buttons, But I am not able to do it, I have added background image in code, but it is not working I didn't understand the problem. Could anyone…

Kalyani Deshmukh
- 11
- 1
- 3