![]() ![]() Scaffold with a differently titled AppBar. ![]() TabBarView, you might be tempted to make each tab bar view a For example in a tabbed UI, where theīottomNavigationBar is a TabBar and the body is a The Scaffold was designed to be the single top level container forĪ MaterialApp and it's typically not necessary to nest Widget can be used within the scaffold's body to avoid areas The scaffold's body is not inset by this padding valueĪlthough an appBar or bottomNavigationBar will typicallyĬause the body to avoid the padding. Not be completely visible, like the display "notch" on the iPhone The MediaQueryData.padding value defines areas that might Widget will be scrolled into view if it's within a scrollable By default the scaffold's body is resized to make Widget's MediaQueryData.viewInsets changes and the Scaffold willīe rebuilt. The device's keyboard appears the Scaffold's ancestor MediaQuery Means that it will occupy its entire window or device screen. The scaffold will expand to fill the available space. int _count = 0 Ĭhild: Text('You have pressed the button $_count times.'),įloatingActionButton: FloatingActionButton(įloatingActionButtonLocation: Scaffold layout, the keyboard, and display "notches" The FloatingActionButton isĬonnected to a callback that increments a counter. To center the text within the Scaffold and the FloatingActionButton isĬentered and docked within the BottomAppBar usingįloatingActionButtonLocation.centerDocked. The body is a Text placed in a Center in order This example shows a Scaffold with an AppBar, a BottomAppBar and aįloatingActionButton. ScaffoldState.showSnackBar and ScaffoldState.showBottomSheet snippet -template=stateful_widget_material} ScaffoldState for the current BuildContext via Scaffold.of and use the To display a snackbar or a persistent bottom sheet, obtain the This class provides APIs for showing drawers, snack bars, and bottom sheets. Implements the basic material design visual layout structure. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |