35 lines
932 B
Dart
35 lines
932 B
Dart
import 'package:flutter/material.dart';
|
|
import 'core/router.dart';
|
|
|
|
void main() {
|
|
runApp(const DeporOsApp());
|
|
}
|
|
|
|
class DeporOsApp extends StatelessWidget {
|
|
const DeporOsApp({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return MaterialApp.router(
|
|
title: 'DeporOS',
|
|
debugShowCheckedModeBanner: false,
|
|
routerConfig: appRouter,
|
|
theme: ThemeData(
|
|
useMaterial3: true,
|
|
colorScheme: ColorScheme.fromSeed(
|
|
seedColor: const Color(0xFF1565C0),
|
|
brightness: Brightness.light,
|
|
),
|
|
inputDecorationTheme: const InputDecorationTheme(filled: true),
|
|
),
|
|
darkTheme: ThemeData(
|
|
useMaterial3: true,
|
|
colorScheme: ColorScheme.fromSeed(
|
|
seedColor: const Color(0xFF1565C0),
|
|
brightness: Brightness.dark,
|
|
),
|
|
inputDecorationTheme: const InputDecorationTheme(filled: true),
|
|
),
|
|
);
|
|
}
|
|
}
|