29 lines
658 B
Dart
29 lines
658 B
Dart
import 'package:flutter/material.dart';
|
|
import 'splash_screen.dart';
|
|
import 'dashboard.dart';
|
|
|
|
void main() {
|
|
runApp(const MyApp());
|
|
}
|
|
|
|
class MyApp extends StatelessWidget {
|
|
const MyApp({super.key});
|
|
|
|
// This widget is the root of your application.
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return MaterialApp(
|
|
title: 'Flutter Demo',
|
|
theme: ThemeData(
|
|
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
|
|
),
|
|
debugShowCheckedModeBanner: false,
|
|
initialRoute: '/',
|
|
routes: {
|
|
'/': (context) => const SplashScreen(),
|
|
'/home': (context) => const DashboardPage(),
|
|
},
|
|
);
|
|
}
|
|
}
|