More work with redux, and location edit (wip)

This commit is contained in:
vjrj 2018-07-03 12:28:40 +02:00
parent b22df7a8e2
commit e97a5a1a9f

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