Commit f5528fa0 authored by wonko's avatar wonko

rudimentary styling of drawer

parent 308d9b26
import 'package:flutter/material.dart';
import 'news.dart';
import 'tours.dart';
//import 'news.dart';
//import 'tours.dart';
import 'campus.dart';
import 'schedule.dart';
import 'data.dart';
import 'sponsors.dart';
import 'graphics.dart';
import 'dart:ui' as ui;
void main() => runApp(MyApp());
......@@ -35,12 +37,6 @@ class NoSHomePage extends StatefulWidget {
_NoSHomePageState createState() => _NoSHomePageState();
}
class _NoS_Single_HomePageState extends State<NoSHomePage> {
@override
Widget build(BuildContext context) {
return Scaffold(body: ScheduleWidget());
}
}
class _NoSHomePageState extends State<NoSHomePage> {
int _selectedIndex = 0;
......@@ -55,6 +51,15 @@ class _NoSHomePageState extends State<NoSHomePage> {
@override
Widget build(BuildContext context) {
final double ratio = MediaQuery.of(context).devicePixelRatio;
final double height = MediaQuery.of(context).size.height;
final double width = MediaQuery.of(context).size.width;
final double pheight = ui.window.physicalSize.height;
final double pwidth = ui.window.physicalSize.width;
print("width: ${width}(${pwidth}) height: ${height}(${pheight}) ratio: $ratio");
return Scaffold(
appBar: AppBar(
title: Text(widget.title),
......@@ -64,9 +69,15 @@ class _NoSHomePageState extends State<NoSHomePage> {
padding: EdgeInsets.zero,
children: [
DrawerHeader(
child: Text('Night of Science'),
decoration: BoxDecoration(
color: Colors.blue,
child: Icon(
Fachschaften().getIcon('default'),
size: 50.0,
),
decoration: new BoxDecoration(
image: new DecorationImage(
image: new AssetImage('assets/graphics/davinci_bg.png'),
fit: BoxFit.cover,
),
),
),
ListTile(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment