import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
//import 'package:flutter/rendering.dart';

import 'app/views/home_page.dart';
import 'close-the-box/views/dice_game.dart';
import '21-card-game/views/21_game.dart';
import 'app/views/store.dart';
import '7-up-7-down/layout.dart';
import 'profile.dart';

void main() {
  //debugPaintSizeEnabled = true;
  //debugPaintBaselinesEnabled = true;
  //debugPaintPointersEnabled = true;

  SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle(
      statusBarColor: Colors.white,
      systemNavigationBarIconBrightness: Brightness.dark));
  runApp(MyApp());
}

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      //debugShowMaterialGrid: true,
      theme: ThemeData(
          iconTheme: IconThemeData(color: Colors.grey),
          buttonTheme: ButtonThemeData(buttonColor: Colors.grey),
          brightness: Brightness.dark,
          primaryColor: Colors.white,
          accentColor: Colors.grey),
      routes: {
        "/": (BuildContext context) => HomePage(),
        "/dicegame": (BuildContext context) => UpDownGame(),
        "/21game": (BuildContext context) => CardGame(),
        "/store": (BuildContext context) => Profile_page(),
      },
    );
  }
}
