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,61 +1,61 @@
|
|||
import 'package:fires_flutter/models/yourLocation.dart';
|
||||
import 'package:fires_flutter/models/fireNotification.dart';
|
||||
import 'package:fires_flutter/models/fireMapState.dart';
|
||||
import '../models/fireMapState.dart';
|
||||
import '../models/fireNotification.dart';
|
||||
import '../models/yourLocation.dart';
|
||||
|
||||
abstract class FiresMapActions {}
|
||||
|
||||
class UpdateYourLocationMapAction extends FiresMapActions {
|
||||
final YourLocation loc;
|
||||
|
||||
UpdateYourLocationMapAction(
|
||||
this.loc,
|
||||
);
|
||||
final YourLocation loc;
|
||||
}
|
||||
|
||||
class UpdateFireMapStatsAction extends FiresMapActions {
|
||||
int numFires;
|
||||
List<dynamic> fires = [];
|
||||
List<dynamic> falsePos = [];
|
||||
List<dynamic> industries = [];
|
||||
|
||||
UpdateFireMapStatsAction(
|
||||
{required this.numFires,
|
||||
required this.fires,
|
||||
required this.falsePos,
|
||||
required this.industries});
|
||||
int numFires;
|
||||
List<dynamic> fires = <dynamic>[];
|
||||
List<dynamic> falsePos = <dynamic>[];
|
||||
List<dynamic> industries = <dynamic>[];
|
||||
}
|
||||
|
||||
class ShowYourLocationMapAction extends FiresMapActions {
|
||||
YourLocation loc;
|
||||
|
||||
ShowYourLocationMapAction(this.loc);
|
||||
YourLocation loc;
|
||||
}
|
||||
|
||||
class ShowFireNotificationMapAction extends FiresMapActions {
|
||||
FireNotification notif;
|
||||
|
||||
ShowFireNotificationMapAction(this.notif);
|
||||
FireNotification notif;
|
||||
}
|
||||
|
||||
class EditYourLocationAction extends FiresMapActions {
|
||||
YourLocation loc;
|
||||
|
||||
EditYourLocationAction(this.loc);
|
||||
YourLocation loc;
|
||||
}
|
||||
|
||||
class EditConfirmYourLocationAction extends FiresMapActions {
|
||||
YourLocation loc;
|
||||
|
||||
EditConfirmYourLocationAction(this.loc);
|
||||
YourLocation loc;
|
||||
}
|
||||
|
||||
class EditCancelYourLocationAction extends FiresMapActions {
|
||||
YourLocation loc;
|
||||
EditCancelYourLocationAction(this.loc);
|
||||
YourLocation loc;
|
||||
}
|
||||
|
||||
class SelectMapLayerAction extends FiresMapActions {
|
||||
final FireMapLayer layer;
|
||||
|
||||
SelectMapLayerAction(this.layer);
|
||||
final FireMapLayer layer;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue