More work with redux, and location edit (wip)
This commit is contained in:
parent
b22df7a8e2
commit
e97a5a1a9f
1 changed files with 31 additions and 0 deletions
31
lib/redux/fireMapActions.dart
Normal file
31
lib/redux/fireMapActions.dart
Normal file
|
|
@ -0,0 +1,31 @@
|
||||||
|
import 'package:fires_flutter/models/yourLocation.dart';
|
||||||
|
import 'package:meta/meta.dart';
|
||||||
|
|
||||||
|
abstract class FiresMapActions {}
|
||||||
|
|
||||||
|
class UpdateYourLocationMapAction extends FiresMapActions {
|
||||||
|
final YourLocation loc;
|
||||||
|
|
||||||
|
UpdateYourLocationMapAction(
|
||||||
|
this.loc,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
class UpdateYourLocationMapStatsAction extends FiresMapActions {
|
||||||
|
int numFires;
|
||||||
|
List<dynamic> fires = [];
|
||||||
|
List<dynamic> falsePos = [];
|
||||||
|
List<dynamic> industries = [];
|
||||||
|
|
||||||
|
UpdateYourLocationMapStatsAction(
|
||||||
|
{@required this.numFires,
|
||||||
|
@required this.fires,
|
||||||
|
@required this.falsePos,
|
||||||
|
@required this.industries});
|
||||||
|
}
|
||||||
|
|
||||||
|
class ShowYourLocationMapAction extends FiresMapActions {
|
||||||
|
YourLocation loc;
|
||||||
|
|
||||||
|
ShowYourLocationMapAction(this.loc);
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue