mirror of
https://github.com/foss42/apidash.git
synced 2025-05-22 00:36:43 +08:00
24 lines
615 B
Dart
24 lines
615 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
|
import 'package:google_fonts/google_fonts.dart';
|
|
import 'services/services.dart';
|
|
import 'consts.dart' show kIsLinux;
|
|
import 'app.dart';
|
|
|
|
void main() async {
|
|
WidgetsFlutterBinding.ensureInitialized();
|
|
GoogleFonts.config.allowRuntimeFetching = false;
|
|
await openBoxes();
|
|
if (kIsLinux) {
|
|
await setupInitialWindow();
|
|
} else {
|
|
var win = getInitialSize();
|
|
await setupWindow(sz: win.$1, off: win.$2);
|
|
}
|
|
runApp(
|
|
ProviderScope(
|
|
child: kIsLinux ? const DashApp() : const App(),
|
|
),
|
|
);
|
|
}
|