Material App & Scaffold High-level UI widgets

This lesson is available for PRO members or as a single course purchase. Sign-in and choose a plan below.

*Enrollment provides full access to this course (and updates) for life.

Or Signup for Unlimited PRO Access

Example Code

file_type_dartlang main.dart
class MyApp extends StatelessWidget {
 Widget build(BuildContext context) {
   return MaterialApp(
     home: Scaffold(
       appBar: AppBar(title: Text('My Cool App'),),
       body: Center(child: Icon(Icons.cake),),
       floatingActionButton: FloatingActionButton(onPressed: () {}),
       drawer: Drawer(),
       bottomNavigationBar: BottomNavigationBar(items: [
         BottomNavigationBarItem(title: Text('foo'), icon: Icon(,
         BottomNavigationBarItem(title: Text('bar'), icon: Icon(Icons.cached))

Q&A Chat