Skip to content

Instantly share code, notes, and snippets.

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