- introPage.dart: Convert fireItems to proper static function closure - mainDrawer.dart: Convert unreadCount int to String for Text widget
28 lines
859 B
Dart
28 lines
859 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:redux/redux.dart';
|
|
|
|
import 'globals.dart' as globals;
|
|
import 'mainCommon.dart';
|
|
|
|
enum LogLevel { none, actions, all }
|
|
|
|
void main() async {
|
|
globals.isDevelopment = true;
|
|
debugPrint('Is development!');
|
|
|
|
// Simple logging middleware para desarrollo
|
|
Middleware<dynamic> createLoggingMiddleware() {
|
|
return (Store<dynamic> store, dynamic action, NextDispatcher next) {
|
|
debugPrint(">>>>> ${action.toString().replaceAll('Instance of ', '')}");
|
|
next(action);
|
|
};
|
|
}
|
|
|
|
const LogLevel logRedux = LogLevel.actions;
|
|
|
|
final List<Middleware<dynamic>> devMiddlewares =
|
|
logRedux == LogLevel.actions ? <Middleware<dynamic>>[] : <Middleware<dynamic>>[createLoggingMiddleware()];
|
|
|
|
// In development, Sentry is disabled, so we skip initialization
|
|
await mainCommon(devMiddlewares);
|
|
}
|