Skip to content

Instantly share code, notes, and snippets.

@mohak1712
Created November 25, 2018 16:49
Show Gist options
  • Save mohak1712/de4a5fba853c51532c9dbc55b5af1670 to your computer and use it in GitHub Desktop.
Save mohak1712/de4a5fba853c51532c9dbc55b5af1670 to your computer and use it in GitHub Desktop.
import 'package:flutter/material.dart';
class MaterialDesignPage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text("Material Design", textDirection: TextDirection.ltr),
backgroundColor: Colors.green,
actions: <Widget>[
IconButton(icon: Icon(Icons.search), onPressed: () {}),
IconButton(
icon: Icon(Icons.send),
onPressed: () {},
),
],
),
bottomNavigationBar: BottomNavigationBar(items: [
BottomNavigationBarItem(
icon: new Icon(Icons.home),
title: new Text('Home'),
),
BottomNavigationBarItem(
icon: new Icon(Icons.mail),
title: new Text('Messages'),
),
BottomNavigationBarItem(
title: Text('Profile'),
icon: Icon(Icons.person),
)
]),
floatingActionButton: FloatingActionButton(
onPressed: () {},
backgroundColor: Colors.green,
child: Icon(Icons.edit),
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment