Created
September 7, 2020 07:46
-
-
Save kennedisimbolo/8c3f7722a39f30f5de090058a668aacc 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), | |
title: Text('KENNEDI SIMBOLON'), | |
actions: <Widget>[ | |
Icon(Icons.camera), | |
Icon(Icons.edit), | |
Icon(Icons.wifi), | |
IconButton( | |
icon: Icon(Icons.calendar_today), | |
onPressed: () {}, | |
), | |
], | |
), | |
body: new Center( | |
child: new Text('Selamat datang'), | |
), | |
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'), | |
), | |
], | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment