-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmain.dart
56 lines (53 loc) · 1.71 KB
/
main.dart
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
import 'package:flutter/material.dart';
import 'package:material_text_fields/theme/material_text_field_theme.dart';
import 'package:n_cafe/add_to_favourite_from_home_screen.dart';
import 'package:n_cafe/screens/Login_screen.dart';
import 'package:n_cafe/screens/Sign_up_page.dart';
import 'package:n_cafe/screens/Verify_Email_Screen.dart';
import 'package:n_cafe/screens/card.dart';
void main() {
runApp(
MaterialApp(
debugShowMaterialGrid: false,
debugShowCheckedModeBanner: false,
initialRoute: '/',
routes: {
'/': (context) => SignUpScreen(),
'/login': (context) => loginScreen(),
'/verify': (context) => Verify_Email(),
'/carts': (context) => CartScreen(),
'/itemDetails': (context) => HomePage(),
},
theme: ThemeData(
inputDecorationTheme: FilledOrOutlinedTextTheme(
radius: 8,
contentPadding:
const EdgeInsets.symmetric(horizontal: 4, vertical: 4),
errorStyle:
const TextStyle(fontSize: 16, fontWeight: FontWeight.w700),
fillColor: Colors.transparent,
prefixIconColor: Colors.green,
enabledColor: Colors.grey,
focusedColor: Colors.green,
floatingLabelStyle: const TextStyle(color: Colors.green),
width: 1.5,
labelStyle: const TextStyle(fontSize: 16, color: Colors.grey),
),
),
),
);
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
home: Scaffold(
body: Center(
child: Image.asset('assets/images/Rectangle167.png'),
),
),
);
}
}