How to disable app bar?

This Article is posted by seven.srikanth at 28-07-2018 07:00:07

Click here to support us by Subscribing to our youtube channel.

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;


Click here to support us by Subscribing to our youtube channel.




0 Comments
Login to comment.
Recent Comments

Be the first to Comment. You can ask a Query or Share your toughts or Just say thanks.




Wave animation in Flutter




Search Results





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