You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
decky/lib/main.dart

32 lines
747 B

import 'package:flutter/material.dart';
import 'routes.dart';
import 'theme.dart';
import 'services/deck_storage.dart';
void main() async {
// Ensure Flutter bindings are initialized before using any plugins
WidgetsFlutterBinding.ensureInitialized();
// Initialize storage early
DeckStorage().initialize();
runApp(const DeckyApp());
}
class DeckyApp extends StatelessWidget {
const DeckyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'omotomo',
theme: AppTheme.lightTheme,
darkTheme: AppTheme.darkTheme,
themeMode: ThemeMode.dark,
initialRoute: Routes.deckList,
routes: Routes.routes,
debugShowCheckedModeBanner: false,
);
}
}

Powered by TurnKey Linux.