fix: resolve 2 remaining strict analysis errors
- introPage.dart: Convert fireItems to proper static function closure - mainDrawer.dart: Convert unreadCount int to String for Text widget
This commit is contained in:
parent
1864e5b105
commit
7a4c9fb3bc
61 changed files with 1386 additions and 1202 deletions
|
|
@ -1,25 +1,27 @@
|
|||
import 'package:comunes_flutter/comunes_flutter.dart';
|
||||
import 'package:redux/src/store.dart';
|
||||
import 'package:sentry_flutter/sentry_flutter.dart';
|
||||
|
||||
import 'globals.dart' as globals;
|
||||
import 'mainCommon.dart';
|
||||
import 'models/appState.dart';
|
||||
|
||||
Future<void> main() async {
|
||||
globals.isDevelopment = false;
|
||||
|
||||
// Load secrets to get Sentry DSN
|
||||
final secrets = await loadSecrets();
|
||||
final Map<String, dynamic> secrets = await loadSecrets();
|
||||
|
||||
await SentryFlutter.init(
|
||||
(options) {
|
||||
(SentryFlutterOptions options) {
|
||||
options.dsn = secrets['sentryDSN'] as String?;
|
||||
},
|
||||
appRunner: () => mainCommon([]),
|
||||
appRunner: () => mainCommon(<Middleware<AppState>>[]),
|
||||
);
|
||||
}
|
||||
|
||||
Future<Map<String, dynamic>> loadSecrets() async {
|
||||
return await SecretLoader(
|
||||
return SecretLoader(
|
||||
secretPath: globals.isDevelopment
|
||||
? 'assets/private-settings-dev.json'
|
||||
: 'assets/private-settings.json')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue