-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.dart
More file actions
32 lines (30 loc) · 950 Bytes
/
Copy pathmain.dart
File metadata and controls
32 lines (30 loc) · 950 Bytes
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
import 'package:flutter/material.dart';
import 'pages/loginpage.dart';
import 'pages/signuppage.dart';
import 'pages/homepage.dart';
import 'pages/searchpage.dart';
import 'pages/settingpage.dart';
import 'pages/favouritepage.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
title: 'Campus Way',
theme: ThemeData(
primarySwatch: Colors.orange,
),
initialRoute: '/',
routes: {
'/': (context) => const LoginPage(),
'/signup': (context) => const SignupPage(),
'/home': (context) => const HomePage(),
'/setting': (context) => const SettingPage(),
'/favourite': (context) => const FavouritePage(),
'/search': (context) => const SearchPage()
},
);
}
}