drifter_app/lib/main.dart

31 lines
867 B
Dart
Raw Permalink Normal View History

import 'package:drifter/pages/splash_screen/splash_screen.dart';
2023-05-11 13:48:05 +00:00
import 'package:drifter/theme/app_colors.dart';
import 'package:flutter/material.dart';
2023-05-16 14:52:29 +00:00
import 'package:keyboard_dismisser/keyboard_dismisser.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) {
2023-05-16 14:52:29 +00:00
return KeyboardDismisser(
child: MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
appBarTheme: const AppBarTheme(backgroundColor: AppColors.background),
bottomNavigationBarTheme: const BottomNavigationBarThemeData(
backgroundColor: AppColors.background,
selectedItemColor: AppColors.mainAccent,
unselectedItemColor: Colors.grey,
),
2023-05-11 13:48:05 +00:00
),
2023-05-16 14:52:29 +00:00
home: const Splash(),
2023-05-11 13:48:05 +00:00
),
);
}
}