|
|
|
@ -102,15 +102,16 @@ part 'src/widgets/text_settings_tile.dart';
|
|
|
|
|
part 'src/widgets/user_avatar.dart'; |
|
|
|
|
|
|
|
|
|
Future runNeon({ |
|
|
|
|
required final WidgetsBinding binding, |
|
|
|
|
required final Iterable<AppImplementation> Function(SharedPreferences, RequestManager, NeonPlatform) |
|
|
|
|
getAppImplementations, |
|
|
|
|
required final Branding branding, |
|
|
|
|
final WidgetsBinding? bindingOverride, |
|
|
|
|
final SharedPreferences? sharedPreferencesOverride, |
|
|
|
|
final Account? account, |
|
|
|
|
final bool firstLaunchDisabled = false, |
|
|
|
|
final bool nextPushDisabled = false, |
|
|
|
|
}) async { |
|
|
|
|
final binding = bindingOverride ?? WidgetsFlutterBinding.ensureInitialized(); |
|
|
|
|
FlutterNativeSplash.preserve(widgetsBinding: binding); |
|
|
|
|
|
|
|
|
|
final sharedPreferences = sharedPreferencesOverride ?? await SharedPreferences.getInstance(); |
|
|
|
|