Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import 'package:flutter/material.dart';
- var PrimaryColor = Color(0xFF3582FF);
- class _HomePageState extends State<HomePage> {
- @override
- Widget build(BuildContext context) {
- return new Scaffold(
- appBar: AppBar(
- title: const Text('Zoeken'),
- backgroundColor: PrimaryColor,
- actions: <Widget>[
- IconButton(
- icon: new Icon(Icons.search),
- onPressed: () {
- print("zoeken");
- },
- ),
- ],
- ),
- backgroundColor: Color.fromARGB(230, 240, 240, 240),
- drawer: new Drawer(
- child: new ListView(
- padding: EdgeInsets.zero,
- children: <Widget>[
- Image(
- image: AssetImage("assets/img/drawer2.png"),
- fit: BoxFit.cover,
- ),
- new ListTile(
- title: new Text("Instellingen"),
- trailing: new Icon(Icons.settings),
- onTap: () {
- Navigator.of(context).pop();
- Navigator.of(context).push(new MaterialPageRoute(
- builder: (BuildContext context) =>
- new InstellingenClass()));
- },
- ),
- new Divider(
- thickness: 1.4,
- ),
- new ListTile(
- title: new Text(coupons),
- trailing: new Icon(MdiIcons.sale),
- onTap: () {
- Navigator.of(context).pop();
- Navigator.of(context).push(new MaterialPageRoute(
- builder: (BuildContext context) => new Page(coupons)));
- }),
- new Divider(
- thickness: 1.4,
- ),
- new ListTile(
- title: new Text(activity),
- trailing: new Icon(MdiIcons.calendarMonth),
- onTap: () {
- Navigator.of(context).pop();
- Navigator.of(context).push(new MaterialPageRoute(
- builder: (BuildContext context) => new Page(activity)));
- }),
- new Divider(
- thickness: 1.4,
- ),
- new ListTile(
- title: new Text(contact),
- trailing: new Icon(MdiIcons.email),
- onTap: () {
- Navigator.of(context).pop();
- Navigator.of(context).push(new MaterialPageRoute(
- builder: (BuildContext context) => new Page(contact)));
- }),
- new Divider(
- thickness: 1.4,
- ),
- new ListTile(
- title: new Text(review),
- trailing: new Icon(MdiIcons.star),
- onTap: () {
- Navigator.of(context).pop();
- Navigator.of(context).push(new MaterialPageRoute(
- builder: (BuildContext context) => new Page(review)));
- }),
- ],
- )));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement