43 lines
1.1 KiB
Dart
43 lines
1.1 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter/services.dart';
|
|
import 'config/app_config.dart';
|
|
import 'screens/splash_screen.dart';
|
|
|
|
void main() {
|
|
WidgetsFlutterBinding.ensureInitialized();
|
|
|
|
// Set preferred orientations
|
|
SystemChrome.setPreferredOrientations([
|
|
DeviceOrientation.portraitUp,
|
|
DeviceOrientation.portraitDown,
|
|
]);
|
|
|
|
runApp(const AiraAIApp());
|
|
}
|
|
|
|
class AiraAIApp extends StatelessWidget {
|
|
const AiraAIApp({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return MaterialApp(
|
|
title: AppConfig.appName,
|
|
debugShowCheckedModeBanner: false,
|
|
themeMode: ThemeMode.dark,
|
|
darkTheme: ThemeData(
|
|
brightness: Brightness.dark,
|
|
scaffoldBackgroundColor: const Color(0xFF09090B),
|
|
colorScheme: const ColorScheme.dark(
|
|
primary: Color(0xFF3B82F6),
|
|
secondary: Color(0xFF2563EB),
|
|
surface: Color(0xFF18181B),
|
|
background: Color(0xFF09090B),
|
|
),
|
|
fontFamily: 'Roboto',
|
|
useMaterial3: true,
|
|
),
|
|
home: const SplashScreen(),
|
|
);
|
|
}
|
|
}
|