Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

how to subtract he height of appbar in flutter

Firstly declare the AppBar widget that you will use in your Scaffold.

Widget demoPage() {
  AppBar appBar = AppBar(
    title: Text('Demo'),
  );
  return Scaffold(
    appBar: appBar,
    body: /*
    page body
    */,
  );
}
Now you can get the height of your appBar using its preferredSized:

double height = appBar.preferredSize.height
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #subtract #height #appbar #flutter
ADD COMMENT
Topic
Name
5+6 =