Advertisement
Guest User

Background color

a guest
Feb 20th, 2020
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 3.01 KB | None | 0 0
  1. import 'package:flutter/material.dart';
  2.  
  3. var PrimaryColor = Color(0xFF3582FF);
  4.  
  5. class _HomePageState extends State<HomePage> {
  6.   @override
  7.   Widget build(BuildContext context) {
  8.     return new Scaffold(
  9.         appBar: AppBar(
  10.           title: const Text('Zoeken'),
  11.           backgroundColor: PrimaryColor,
  12.           actions: <Widget>[
  13.             IconButton(
  14.               icon: new Icon(Icons.search),
  15.               onPressed: () {
  16.                 print("zoeken");
  17.               },
  18.             ),
  19.           ],
  20.         ),
  21.         backgroundColor: Color.fromARGB(230, 240, 240, 240),
  22.         drawer: new Drawer(
  23.             child: new ListView(
  24.           padding: EdgeInsets.zero,
  25.           children: <Widget>[
  26.             Image(
  27.               image: AssetImage("assets/img/drawer2.png"),
  28.               fit: BoxFit.cover,
  29.             ),
  30.             new ListTile(
  31.               title: new Text("Instellingen"),
  32.               trailing: new Icon(Icons.settings),
  33.               onTap: () {
  34.                 Navigator.of(context).pop();
  35.                 Navigator.of(context).push(new MaterialPageRoute(
  36.                     builder: (BuildContext context) =>
  37.                         new InstellingenClass()));
  38.               },
  39.             ),
  40.             new Divider(
  41.               thickness: 1.4,
  42.             ),
  43.             new ListTile(
  44.                 title: new Text(coupons),
  45.                 trailing: new Icon(MdiIcons.sale),
  46.                 onTap: () {
  47.                   Navigator.of(context).pop();
  48.                   Navigator.of(context).push(new MaterialPageRoute(
  49.                       builder: (BuildContext context) => new Page(coupons)));
  50.                 }),
  51.             new Divider(
  52.               thickness: 1.4,
  53.             ),
  54.             new ListTile(
  55.                 title: new Text(activity),
  56.                 trailing: new Icon(MdiIcons.calendarMonth),
  57.                 onTap: () {
  58.                   Navigator.of(context).pop();
  59.                   Navigator.of(context).push(new MaterialPageRoute(
  60.                       builder: (BuildContext context) => new Page(activity)));
  61.                 }),
  62.             new Divider(
  63.               thickness: 1.4,
  64.             ),
  65.             new ListTile(
  66.                 title: new Text(contact),
  67.                 trailing: new Icon(MdiIcons.email),
  68.                 onTap: () {
  69.                   Navigator.of(context).pop();
  70.                   Navigator.of(context).push(new MaterialPageRoute(
  71.                       builder: (BuildContext context) => new Page(contact)));
  72.                 }),
  73.             new Divider(
  74.               thickness: 1.4,
  75.             ),
  76.             new ListTile(
  77.                 title: new Text(review),
  78.                 trailing: new Icon(MdiIcons.star),
  79.                 onTap: () {
  80.                   Navigator.of(context).pop();
  81.                   Navigator.of(context).push(new MaterialPageRoute(
  82.                       builder: (BuildContext context) => new Page(review)));
  83.                 }),
  84.           ],
  85.         )));
  86.   }
  87. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement