Created
September 14, 2020 07:41
-
-
Save kennedisimbolo/b6adfd1608998be0b76b8ef294499c38 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(new MaterialApp( | |
debugShowCheckedModeBanner: false, | |
home: new ClassCoba(), | |
)); | |
} | |
class ClassCoba extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
appBar: AppBar( | |
//leading: Icon(Icons.home), | |
backgroundColor: Colors.red[800], | |
title: Text('KENNEDI SIMBOLON'), | |
actions: <Widget>[ | |
Icon(IconData(0xe88a, fontFamily: 'MaterialIcons')), | |
Icon(IconData(0xe55f, fontFamily: 'MaterialIcons')), | |
Icon(IconData(0xe02c, fontFamily: 'MaterialIcons')), | |
IconButton( | |
icon: Icon(IconData(0xe157, fontFamily: 'MaterialIcons')), | |
onPressed: () {}, | |
), | |
], | |
), | |
drawer: Drawer( | |
child: ListView( | |
padding: EdgeInsets.zero, | |
children: const <Widget>[ | |
DrawerHeader( | |
decoration: BoxDecoration( | |
color: Colors.green, | |
), | |
child: Text( | |
'Menu Pilihan Aplikasi', | |
style: TextStyle( | |
color: Colors.yellow, | |
fontSize: 27, | |
), | |
), | |
), | |
ListTile( | |
leading: Icon(Icons.access_time), | |
title: Text('access time'), | |
), | |
ListTile( | |
leading: Icon(Icons.account_circle), | |
title: Text('Profile'), | |
), | |
ListTile( | |
leading: Icon(Icons.add_a_photo), | |
title: Text('add photo'), | |
), | |
ListTile( | |
leading: Icon(Icons.bluetooth), | |
title: Text('bluetooth'), | |
), | |
ListTile( | |
leading: Icon(Icons.chat), | |
title: Text('chat'), | |
), | |
ListTile( | |
leading: Icon(Icons.games), | |
title: Text('games'), | |
), | |
], | |
), | |
), | |
body: new Row( | |
mainAxisAlignment: MainAxisAlignment.spaceEvenly, | |
children: <Widget>[ | |
new Column( | |
mainAxisAlignment: MainAxisAlignment.center, | |
children: <Widget>[ | |
Icon(IconData(0xe002, fontFamily: 'MaterialIcons'), | |
size: 70.00, color: Colors.red), | |
Text("Warning"), | |
], | |
), | |
new Column( | |
mainAxisAlignment: MainAxisAlignment.center, | |
children: <Widget>[ | |
Icon(IconData(0xe156, fontFamily: 'MaterialIcons'), | |
size: 70.00, color: Colors.yellow), | |
Text("Inbox"), | |
], | |
), | |
new Column( | |
mainAxisAlignment: MainAxisAlignment.center, | |
children: <Widget>[ | |
Icon(IconData(0xe0cd, fontFamily: 'MaterialIcons'), | |
size: 70.00, color: Colors.green), | |
Text("Call"), | |
], | |
), | |
], | |
), | |
); | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment