Answers for "how to extend appbar height in flutter"

5

flutter appbar width

appBar: AppBar(
          title: Text('AppBar Height'),
          toolbarHeight: 100.0, // double
          automaticallyImplyLeading: false, // hides back button
        ),
Posted by: Guest on August-20-2021
0

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
Posted by: Guest on April-30-2020

Code answers related to "how to extend appbar height in flutter"

Code answers related to "Dart"

Browse Popular Code Answers by Language