2023-05-12 17:28:36 +00:00
|
|
|
import 'dart:io';
|
|
|
|
|
2023-05-30 01:09:23 +00:00
|
|
|
import 'package:drifter/pages/create_account_screen/create_account_screen.dart';
|
|
|
|
import 'package:drifter/pages/home_screen/home_screen_widget.dart';
|
2023-05-22 20:04:20 +00:00
|
|
|
import 'package:drifter/pages/login_screen/login_screen.dart';
|
2023-05-11 22:24:25 +00:00
|
|
|
import 'package:drifter/pages/main_screen/main_screen_widget.dart';
|
2023-06-02 13:11:05 +00:00
|
|
|
import 'package:drifter/pages/qr_code_screen/qr_code_screen.dart';
|
2023-05-30 21:56:26 +00:00
|
|
|
import 'package:drifter/pages/settings_screen/settings_screen.dart';
|
2023-05-12 17:28:36 +00:00
|
|
|
import 'package:drifter/pages/splash_screen/splash_screen.dart';
|
2023-05-25 13:07:26 +00:00
|
|
|
import 'package:drifter/pages/terms_of_service/terms_of_service.dart';
|
|
|
|
import 'package:drifter/pages/welcome_screen/welcome_screen.dart';
|
2023-05-11 13:48:05 +00:00
|
|
|
import 'package:drifter/theme/app_colors.dart';
|
2023-05-12 17:28:36 +00:00
|
|
|
import 'package:flutter/cupertino.dart';
|
2023-05-11 22:24:25 +00:00
|
|
|
import 'package:flutter/material.dart';
|
2023-05-11 13:48:05 +00:00
|
|
|
|
|
|
|
void main() {
|
|
|
|
runApp(const MyApp());
|
|
|
|
}
|
|
|
|
|
|
|
|
class MyApp extends StatelessWidget {
|
|
|
|
const MyApp({super.key});
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return MaterialApp(
|
|
|
|
title: 'Flutter Demo',
|
|
|
|
theme: ThemeData(
|
2023-05-11 22:24:25 +00:00
|
|
|
appBarTheme: const AppBarTheme(backgroundColor: AppColors.background),
|
2023-05-30 01:09:23 +00:00
|
|
|
textButtonTheme: TextButtonThemeData(
|
|
|
|
style: TextButton.styleFrom(foregroundColor: AppColors.background)),
|
2023-05-11 13:48:05 +00:00
|
|
|
bottomNavigationBarTheme: const BottomNavigationBarThemeData(
|
2023-05-11 22:24:25 +00:00
|
|
|
backgroundColor: AppColors.background,
|
|
|
|
selectedItemColor: AppColors.mainAccent,
|
2023-05-11 13:48:05 +00:00
|
|
|
unselectedItemColor: Colors.grey,
|
|
|
|
),
|
|
|
|
),
|
2023-05-22 20:04:20 +00:00
|
|
|
routes: {
|
2023-05-30 01:09:23 +00:00
|
|
|
'/': (context) => const Splash()
|
2023-05-25 13:07:26 +00:00
|
|
|
// Splash()
|
|
|
|
,
|
2023-05-22 20:04:20 +00:00
|
|
|
'/login': (context) => const LoginScreen(),
|
2023-05-25 13:07:26 +00:00
|
|
|
'/terms': (context) => const TermsOfServiceScreen(),
|
2023-05-30 01:09:23 +00:00
|
|
|
'/createAccount': (context) => const CreateAccountScreen(),
|
|
|
|
'/MainScreen': (context) => const MainScreenWidget(),
|
2023-05-30 21:56:26 +00:00
|
|
|
'/Settings': (context) => const SettingsScreen(),
|
2023-06-02 13:11:05 +00:00
|
|
|
'/QrCodeScreen': (context) => const QrCodeScreen(),
|
2023-05-22 20:04:20 +00:00
|
|
|
},
|
2023-05-11 13:48:05 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|