26 lines
672 B
Dart
26 lines
672 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter/services.dart';
|
|
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
|
import 'src/app.dart';
|
|
import 'src/shared/data/local/app_database.dart';
|
|
|
|
void main() async {
|
|
WidgetsFlutterBinding.ensureInitialized();
|
|
|
|
await SystemChrome.setPreferredOrientations([
|
|
DeviceOrientation.portraitUp,
|
|
DeviceOrientation.portraitDown,
|
|
]);
|
|
|
|
final database = AppDatabase();
|
|
|
|
runApp(
|
|
ProviderScope(
|
|
overrides: [appDatabaseProvider.overrideWithValue(database)],
|
|
child: const SLRPGApp(),
|
|
),
|
|
);
|
|
}
|
|
|
|
final appDatabaseProvider =
|
|
Provider<AppDatabase>((ref) => throw UnimplementedError());
|