blob: 141b3a54c04e9b5df4ab201932b9f7e1bc8c48cf [file] [log] [blame]
// Copyright 2015 The Vanadium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter/material.dart' show Colors;
import 'logic/croupier.dart' show Croupier;
import 'components/croupier.dart' show CroupierComponent;
class CroupierApp extends StatefulComponent {
CroupierApp();
CroupierAppState createState() => new CroupierAppState();
}
class CroupierAppState extends State<CroupierApp> {
Croupier croupier;
void initState() {
super.initState();
this.croupier = new Croupier();
}
Widget build(BuildContext context) {
return new Container(
decoration: new BoxDecoration(
backgroundColor: const Color(0xFF6666FF), borderRadius: 5.0),
child: new DefaultTextStyle(
style: Theme.of(context).text.body1,
child: new CroupierComponent(this.croupier)));
}
}
void main() {
runApp(new MaterialApp(
title: 'Croupier',
routes: <String, RouteBuilder>{
"/": (RouteArguments args) => new CroupierApp()
},
theme: new ThemeData(
brightness: ThemeBrightness.light, primarySwatch: Colors.purple)));
}