Created
September 14, 2020 07:27
-
-
Save kennedisimbolo/322d84b79e8409d16cd8dcde14a62e36 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"), | |
], | |
), | |
], | |
), | |
); | |
} | |
} | |
| |
Privacy notice Send feedback | |
no issues | |
Based on Flutter 1.21.0-9.2.pre Dart SDK 2.9.3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment