Questions tagged [flutter-scaffold]
29 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
1 answer
Flutter - Single/Common scaffold between multiple screens with go_router navigation
I want to use common scaffold widget between multiple screens with go_router navigation library.
I don't understand the approach.
I saw some examples for common scaffold with multiple screens but they are using some index based scaffold body content…

dev.vinod
- 5
- 4
0
votes
1 answer
is it possible to navigate or change the body of current page with new page and i dont want to change the app bar in flutter
I am Currently using the scaffold, and inside that, I have a tab bar, and in that tab bar, I have two tabs, product one and product two, and I have a button inside the page one page, and when I click on that button, it will redirect me to the…

santosh patro
- 3
- 1
0
votes
1 answer
Blank space on top of keyboard when keyboard is visible in Flutter TextField
When the keyboard is visible, there is a blank space above it. I tried suggestions like setting the scaffold property resizeToAvoidBottomInset: false, extendBodyBehindAppBar: true, etc but it did not help.
How can I handle this?

Phyln
- 69
- 7
0
votes
0 answers
How to animate a scaffold?
I want to show a "welcome" page for a few seconds before showing the home screen. This is the working code showing just the home page (no transitions):
@override
Widget build(BuildContext context) {
return Scaffold(
…

Miro
- 364
- 1
- 12
0
votes
0 answers
Dash Chat 2 message list shifted up if extendBodyBehindAppBar is true
I'm using Dash Chat 2 to build a small chat app in Flutter. When I set the extendBodyBehindAppBar parameter to true all the messages in the message list are moved up and I would like them not to shift up and to stay in place the same way they are…

PeteyMFT
- 75
- 2
- 8
0
votes
1 answer
listview builder moves out of the container bounds when i add content in my list
Container(
height: MediaQuery.of(context).size.height * 0.35,
width: MediaQuery.of(context).size.height * 0.45,
decoration: const BoxDecoration(
gradient: LinearGradient(
…

Ahmad Maaz
- 45
- 6
0
votes
2 answers
How can I make a Flutter Scaffold scroll to not have TextFields covered
I have a somewhat complicated widget tree and can't figure this out. I've tried wrapping the Scaffold body in a SingleChildScrollView but for some reason it just makes the Container shrink and does not scroll. Here is the build function code:
…

Globe
- 514
- 3
- 17
0
votes
2 answers
Drawer - No Overlay Widget found
I have a normal MaterialApp with Scaffold having an AppBar and Drawer.
Following Error occurred when building app:
======== Exception caught by widgets library =======================================================
The following assertion was…

skm
- 559
- 1
- 6
- 22
0
votes
1 answer
Let widgets be moved 'above' the screen when opening on screen keyboard
I'm experimenting with a login page for flutter. At the moment it looks like so:
When I attempt to type into one of the text fields using the on-screen keyboard, flutter attempts to move all my content up until the image showing "TEST" reaches the…

Letal1s
- 47
- 2
- 9
0
votes
2 answers
Flutter: Persist BottomNavigationBar and route user to the correct screen depending on the selected index of the BottomNavigationBar
I want the BottomNavigationBar to persist and the user to be sent to a different screen depending on which index that they have selected and that index highlighted on the BottomNavigationBar.
The way I'm attempting to do this is to change the body…

Matt
- 57
- 1
- 9
0
votes
1 answer
Flutter subclass Scaffold so I can ensure a Drawer and BottomNavigationBar are always present
I have a Flutter app with sections that I can access from both a BottomNavigationBar and a Drawer. I have this working in a Scaffold at the root level of my app, and I then use Navigator widgets to create separate routes and stacks within each…

Lee Probert
- 10,308
- 8
- 43
- 70
0
votes
1 answer
In flutter, can you set the appbar backgorund to change base on the value of a dropdown box?
my drop down box cycles through 5 strings
['blue','red','yellow','orange','grey']
I want my appbar title to be that dropdown box and for the value in the dropdown to determine the appbar color
DropDownWidget ddw = DropDownWidget();
var color = {
…

Cdlrrcb
- 3
- 1
- 3
-1
votes
4 answers
How to create 2 buttons in a row in Flutter?
I really don not understand what wrong and how to fix it
I want to show 2 buttons on the screen in row
I have stateless widget MainPage:
class MainPage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Center(
…

influtter
- 23
- 1
- 4