How to disable app bar?

This Article is posted by seven.srikanth 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 {
@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

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



Recent Articles


How to add Assets Images and Network images in flutter?

Posted by bloggeraatit on 20 Sep 2019 Article


How to use inkwell class for responding images in flutter?

Posted by bloggeraatit on 20 Sep 2019 Article


Flutter Web Live on Server

Posted by nikhilchaudhary12155 on 18 Sep 2019 Article


How to specify stops in a gradient?

Posted by seven.srikanth on 20 Sep 2019 Article



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