Implementation
Future<void> main({final bool screenshots = false}) async {
_screenshots = screenshots;
if (_screenshots) {
await _init1();
runApp(const SmoothApp());
return;
}
final WidgetsBinding widgetsBinding =
WidgetsFlutterBinding.ensureInitialized();
FlutterNativeSplash.preserve(widgetsBinding: widgetsBinding);
if (kReleaseMode) {
await AnalyticsHelper.initSentry(
appRunner: () => runApp(const SmoothApp()),
);
} else {
runApp(DevicePreview(
enabled: true,
builder: (_) => const SmoothApp(),
));
}
}