From 29a9f43e00a33b058920aa3a5c065e789f8f746f Mon Sep 17 00:00:00 2001 From: "Vicente J. Ruiz Jurado" Date: Fri, 3 Aug 2018 08:43:59 +0200 Subject: [PATCH] Fire share with serverUrl --- lib/genericMap.dart | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/lib/genericMap.dart b/lib/genericMap.dart index e726451..2393234 100644 --- a/lib/genericMap.dart +++ b/lib/genericMap.dart @@ -107,7 +107,7 @@ class _genericMapState extends State { store.dispatch(new UpdateYourLocationMapAction(loc)); store.dispatch(new EditConfirmYourLocationAction(loc)); }, - serverUrl: store.state.firesApiUrl, + serverUrl: store.state.serverUrl, mapState: store.state.fireMapState); }, builder: (context, view) { @@ -205,7 +205,7 @@ class _genericMapState extends State { new TextEditingValue( text: _location.description, selection: new TextSelection.collapsed( - offset: _location.description.length ))), + offset: _location.description.length))), onChanged: (newDesc) { debugPrint("OnChanged"); _location = _location.copyWith(description: newDesc); @@ -261,10 +261,11 @@ class _genericMapState extends State { Stack(fit: StackFit.expand, children: [ // Material(color: Colors.yellowAccent), new Opacity( - opacity: status == FireMapStatus.subscriptionConfirm || - status == FireMapStatus.edit - ? 0.5 - : 1.0, + opacity: + status == FireMapStatus.subscriptionConfirm || + status == FireMapStatus.edit + ? 0.5 + : 1.0, child: map), Positioned( top: constraints.maxHeight - 200, @@ -314,7 +315,7 @@ class _genericMapState extends State { onPressed: () { Share.share( '${view.mapState.fireNotification.description}. ${view - .serverUrl}fire/${view.mapState.fireNotification.sealed}'); + .serverUrl}fire/${view.mapState.fireNotification.sealed}'); }) ]; default: