import 'package:flutter/material.dart'; void main() => runApp(new MaterialApp( home: new MyApp(), )); class MyApp extends StatefulWidget { @override _MyAppState createState() => _MyAppState(); } class _MyAppState extends State { @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( leading: IconButton( icon: Icon(Icons.menu), onPressed: () { print('Icon Button Click'); }, ), title: Text('Appbar Demo'), actions: [ IconButton( icon: Icon(Icons.search), onPressed: () {}, ), IconButton( icon: Icon(Icons.more_vert), onPressed: () {}, ) ], flexibleSpace: SafeArea( child: Icon( Icons.camera, color: Colors.white, size: 55.0, ), ), bottom: PreferredSize( child: Container( color: Colors.grey, height: 75.0, width: double.infinity, child: Text( 'Tutor Joes', style: TextStyle(color: Colors.white, fontSize: 25.0), ), ), preferredSize: Size.fromHeight(75.0), ), ), ); } }