Last changes not published
This commit is contained in:
parent
ac65ccf990
commit
21ec08303a
43 changed files with 607 additions and 613 deletions
|
|
@ -1,8 +1,8 @@
|
|||
import 'dart:async';
|
||||
|
||||
import 'package:comunes_flutter/comunes_flutter.dart';
|
||||
import 'package:fires_flutter/models/yourLocation.dart';
|
||||
import 'package:fires_flutter/models/fireNotification.dart';
|
||||
import 'package:fires_flutter/models/yourLocation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import 'colors.dart';
|
||||
|
|
@ -27,7 +27,7 @@ class GenericMapBottom extends StatelessWidget {
|
|||
GenericMapBottom(
|
||||
{@required this.onSave,
|
||||
@required this.onCancel,
|
||||
@required this.onFalsePositive,
|
||||
@required this.onFalsePositive,
|
||||
@required this.state,
|
||||
@required this.scaffoldKey});
|
||||
|
||||
|
|
@ -45,7 +45,7 @@ class GenericMapBottom extends StatelessWidget {
|
|||
|
||||
List<Widget> buildActionList(YourLocation loc, BuildContext context,
|
||||
int kmAround, GlobalKey<ScaffoldState> scaffoldState) {
|
||||
List<Widget> actionList = new List<Widget>();
|
||||
List<Widget> actionList = [];
|
||||
switch (state.status) {
|
||||
case FireMapStatus.edit:
|
||||
actionList.add(new FlatButton(
|
||||
|
|
@ -74,8 +74,7 @@ class GenericMapBottom extends StatelessWidget {
|
|||
children: <Widget>[
|
||||
new Icon(Icons.access_time),
|
||||
new SizedBox(width: 5.0),
|
||||
new Text(Moment
|
||||
.now()
|
||||
new Text(Moment.now()
|
||||
.from(context, state.fireNotification.when)),
|
||||
],
|
||||
),
|
||||
|
|
@ -113,7 +112,8 @@ class GenericMapBottom extends StatelessWidget {
|
|||
onFalsePositive(state.fireNotification, value);
|
||||
await new Future.delayed(
|
||||
new Duration(milliseconds: 500));
|
||||
scaffoldKey.currentState.showSnackBar(new SnackBar(
|
||||
ScaffoldMessenger.of(context)
|
||||
.showSnackBar(new SnackBar(
|
||||
content: new Text(
|
||||
S.of(context).thanksForParticipating),
|
||||
));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue