Answers for "how can i reduce the size of an appbar"

0

how can i reduce the size of an appbar

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Example',
      home: Scaffold(
        appBar: PreferredSize(
          preferredSize: Size.fromHeight(50.0), // here the desired height
          child: AppBar(
            // ...
          )
        ),
        body: // ...
      )
    );
  }
}
Posted by: Guest on September-28-2021

Code answers related to "how can i reduce the size of an appbar"

Browse Popular Code Answers by Language