forked from rayliverified/FlutterGames
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.dart
More file actions
31 lines (29 loc) · 1.06 KB
/
main.dart
File metadata and controls
31 lines (29 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import 'package:flutter/material.dart';
import 'package:flutter_games/page/page_main.dart';
import 'package:flutter_games/themes.dart';
import 'package:responsive_framework/responsive_framework.dart';
void main() => runApp(FlutterGames());
class FlutterGames extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
builder: (context, child) => ResponsiveWrapper.builder(
BouncingScrollWrapper.builder(context, child),
maxWidth: 1200,
minWidth: 450,
defaultScale: true,
breakpoints: [
ResponsiveBreakpoint.resize(450, name: MOBILE),
ResponsiveBreakpoint.autoScale(650, name: TABLET, scaleFactor: 1.25),
ResponsiveBreakpoint.autoScale(800, name: TABLET, scaleFactor: 1.4),
ResponsiveBreakpoint.autoScale(1000, name: TABLET, scaleFactor: 1.8),
],
background: Container(color: Color(0xFFF5F5F5)),
),
title: 'Flutter Games',
theme: defaultTheme,
home: MainPage(),
debugShowCheckedModeBanner: false,
);
}
}