Skip to content

Instantly share code, notes, and snippets.

@kennedisimbolo
Created September 7, 2020 07:46
Show Gist options
  • Save kennedisimbolo/8c3f7722a39f30f5de090058a668aacc to your computer and use it in GitHub Desktop.
Save kennedisimbolo/8c3f7722a39f30f5de090058a668aacc to your computer and use it in GitHub Desktop.
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