Last changes not published
This commit is contained in:
parent
ac65ccf990
commit
21ec08303a
43 changed files with 607 additions and 613 deletions
|
|
@ -3,10 +3,10 @@ import 'package:comunes_flutter/comunes_flutter.dart';
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:share/share.dart';
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
import 'customStepper.dart';
|
||||
import 'mainDrawer.dart';
|
||||
|
||||
import 'customStepper.dart';
|
||||
import 'generated/i18n.dart';
|
||||
import 'mainDrawer.dart';
|
||||
import 'placesAutocompleteUtils.dart';
|
||||
|
||||
class FireAlert extends StatefulWidget {
|
||||
|
|
@ -40,7 +40,7 @@ class _FireAlertState extends State<FireAlert> {
|
|||
heroTag: 'neighAction',
|
||||
child: const Icon(CommunityMaterialIcons.bullhorn),
|
||||
onPressed: () {
|
||||
_scaffoldKey.currentState.showSnackBar(new SnackBar(
|
||||
ScaffoldMessenger.of(context).showSnackBar(new SnackBar(
|
||||
content: new Text(S.of(context).inDevelopment),
|
||||
));
|
||||
},
|
||||
|
|
@ -48,7 +48,6 @@ class _FireAlertState extends State<FireAlert> {
|
|||
);
|
||||
}
|
||||
|
||||
|
||||
Widget buildTweetButton() {
|
||||
return new Align(
|
||||
alignment: const Alignment(0.0, -0.2),
|
||||
|
|
@ -62,9 +61,11 @@ class _FireAlertState extends State<FireAlert> {
|
|||
String where =
|
||||
yourLocation.description.replaceAll(' ', '').split(',')[0];
|
||||
print(where);
|
||||
Share.share(S.of(context).tweetAboutSelf(yourLocation.description, '#IF${where}'));
|
||||
Share.share(S
|
||||
.of(context)
|
||||
.tweetAboutSelf(yourLocation.description, '#IF$where'));
|
||||
}).catchError((onError) {
|
||||
_scaffoldKey.currentState.showSnackBar(new SnackBar(
|
||||
ScaffoldMessenger.of(context).showSnackBar(new SnackBar(
|
||||
content: new Text(
|
||||
S.of(_scaffoldKey.currentContext).errorFirePlaceDialog)));
|
||||
});
|
||||
|
|
@ -87,13 +88,13 @@ class _FireAlertState extends State<FireAlert> {
|
|||
buildCallButton()
|
||||
])),
|
||||
new CustomStep(
|
||||
title: new Text(S.of(context).notifyNeighbours),
|
||||
// state: CustomStepState.disabled,
|
||||
content: new Column(children: <Widget>[
|
||||
new Text(S.of(context).notifyNeighboursDescription),
|
||||
new SizedBox(height: 20.0),
|
||||
buildNotifyNeighboursButton()
|
||||
])),
|
||||
title: new Text(S.of(context).notifyNeighbours),
|
||||
// state: CustomStepState.disabled,
|
||||
content: new Column(children: <Widget>[
|
||||
new Text(S.of(context).notifyNeighboursDescription),
|
||||
new SizedBox(height: 20.0),
|
||||
buildNotifyNeighboursButton()
|
||||
])),
|
||||
// TODO conditional: this only in Spain
|
||||
new CustomStep(
|
||||
title: new Text(S.of(context).tweetAboutAFireTitle),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue