How to disable app bar?

This Article is posted by seven.srikanth at 7/28/2018 7:00:07 AM



Sometimes you may want to disable the app bar to make the app content to occupy the full page.
You can disable this by removing or commenting the appBar property of Scaffold as shown below.
class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    final appTitle = 'Form Validation Demo';

    return MaterialApp(
      title: appTitle,
      home: Scaffold(
        // Disable this below code to remove it.. 
        // appBar: AppBar(
        //   title: Text(appTitle),
        // ),
        body: MyCustomForm(),
      ),
    );
  }
}

Hope this is useful.

Tags: How to disable app bar in Flutter;








0 Comments
Login to comment.
Recent Comments












© 2018 - Fluttercentral | Email to me - seven.srikanth@gmail.com