todos-contra-el-fuego-mobile/lib/mainDev.dart
vjrj 7a4c9fb3bc 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
2026-03-06 11:21:06 +01:00

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);
}