Play Flutter Quiz. Click here .

How to disable app bar?

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

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 {
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;

Login to comment.

Recent Comments

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

© 2018 - Fluttercentral | Email to me -

Terms | Privacy