Arcane constructor
Arcane({
- double opalBackgroundOpacity = 0.15,
- double opalCanvasOpacity = 0.95,
- double opalColorSpin = 0.15,
- int opalLights = 3,
- required String title,
- bool exitWindowOnClose = true,
- required ArcaneRouter router,
- required FirebaseOptions firebase,
- required Widget application(),
- required ArcaneUserProvider users,
- WindowOptions windowOptions = const WindowOptions(size: Size(800, 600), center: true, backgroundColor: Colors.transparent, titleBarStyle: TitleBarStyle.hidden),
- String svgLogo = svgArcaneArts,
- ArcaneEvents? events,
- String? windowsGoogleSignInClientId,
- String? windowsGoogleSignInRedirectUri,
- ThemeData? initialLightTheme,
- ThemeData? initialDarkTheme,
- List<
ThemeMod> themeMods = const [], - List<
ThemeMod> darkThemeMods = const [], - List<
ThemeMod> lightThemeMods = const [],
Implementation
Arcane({
this.opalBackgroundOpacity = 0.15,
this.opalCanvasOpacity = 0.95,
this.opalColorSpin = 0.15,
this.opalLights = 3,
required this.title,
this.exitWindowOnClose = true,
required this.router,
required this.firebase,
required this.application,
required this.users,
this.windowOptions = const WindowOptions(
size: Size(800, 600),
center: true,
backgroundColor: Colors.transparent,
titleBarStyle: TitleBarStyle.hidden,
),
this.svgLogo = svgArcaneArts,
this.events,
this.windowsGoogleSignInClientId,
this.windowsGoogleSignInRedirectUri,
this.initialLightTheme,
this.initialDarkTheme,
this.themeMods = const [],
this.darkThemeMods = const [],
this.lightThemeMods = const [],
}) {
FlutterError.onError = (details) {
error("Caught Flutter Error: ${details.exception}");
error(details.stack);
};
runZonedGuarded(() async {
_app = this;
await _start();
}, (e, es) {
error("Caught Zone Error: $e");
error(es);
});
}