-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathmain.dart
More file actions
57 lines (52 loc) · 1.42 KB
/
main.dart
File metadata and controls
57 lines (52 loc) · 1.42 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import 'package:flutter/material.dart';
import 'package:iiit_sonepat_stable/constants/routes.dart';
import 'package:iiit_sonepat_stable/ui/Auth/Login_Page/SplashScreen.dart';
import 'package:iiit_sonepat_stable/ui/Auth/Login_Page/Landing.dart';
void main() async {
runApp(
MyApp(),
);
}
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
title: 'IIIT Sonepat App',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: CustomSplash(
imagePath: 'assets/images/IIIT Sonepat Logo.png',
backGroundColor: Colors.white,
animationEffect: 'zoom-in',
logoSize: 200,
home: Landing(),
duration: 4000,
type: CustomSplashType.StaticDuration,
),
);
}
}
final ThemeData _appTheme = _buildAppTheme();
ThemeData _buildAppTheme() {
final ThemeData base = ThemeData.light();
return base.copyWith(
brightness: Brightness.light,
primaryColor: Colors.yellow,
buttonColor: Colors.orange,
scaffoldBackgroundColor: Colors.white,
textTheme: text(base.textTheme),
);
}
TextTheme text(TextTheme base) {
return base.copyWith(
headline1: base.headline1.copyWith(
backgroundColor: Colors.pink,
),
bodyText1: base.bodyText1.copyWith(
color: Colors.black87,
),
);
}