2020-08-11 14:01:26 +02:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:neonime_app/pages/about.dart';
|
2020-08-17 20:33:04 +02:00
|
|
|
import 'package:neonime_app/pages/batch.dart';
|
2020-08-11 14:01:26 +02:00
|
|
|
|
|
|
|
class MainDrawer extends StatelessWidget {
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return Builder(
|
|
|
|
builder: (context) => Drawer(
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
Container(
|
|
|
|
child: Container(
|
|
|
|
width: double.infinity,
|
|
|
|
padding: EdgeInsets.all(90),
|
|
|
|
// color: Colors.amberAccent,
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
image: DecorationImage(
|
|
|
|
image: AssetImage('lib/assets/drawer-top.jpg'),
|
|
|
|
fit: BoxFit.fill),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Flexible(
|
|
|
|
flex: 6,
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
ListTile(
|
|
|
|
leading: Icon(Icons.library_books),
|
|
|
|
title: Text('Batch'),
|
2020-08-17 20:33:04 +02:00
|
|
|
onTap: () {
|
|
|
|
Navigator.push(context, MaterialPageRoute(
|
|
|
|
builder: (context) => Batch(),
|
|
|
|
));
|
|
|
|
},
|
2020-08-11 14:01:26 +02:00
|
|
|
),
|
|
|
|
ListTile(
|
|
|
|
leading: Icon(Icons.schedule),
|
|
|
|
title: Text('Jadwal'),
|
|
|
|
onTap: () {},
|
|
|
|
),
|
|
|
|
ListTile(
|
|
|
|
leading: Icon(Icons.info),
|
|
|
|
title: Text('About'),
|
|
|
|
onTap: () {
|
2020-08-17 20:33:04 +02:00
|
|
|
Navigator.push(context, MaterialPageRoute(
|
|
|
|
builder: (context) => About(),
|
|
|
|
));
|
2020-08-11 14:01:26 +02:00
|
|
|
},
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Flexible(
|
|
|
|
flex: 6,
|
|
|
|
child: Container(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
image: DecorationImage(
|
|
|
|
image: AssetImage('lib/assets/drawer-bottom.png'))),
|
|
|
|
))
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|