map_url-Kartenintegration zurückgenommen und Version auf 358 angehoben
This commit is contained in:
1 parent
d585da11b5
commit
684e8a57fc
18 files changed
+24
-560
No files matched your search
@@ -4,7 +4,7 @@ import 'package:stadtbote/content_views/tour_details_page.dart';
|
||||
import 'package:stadtbote/content_views/utils/content_view_widget.dart';
|
||||
import 'package:stadtbote/messages/pop_content_view_message.dart';
|
||||
import 'package:stadtbote/model/job_tour.dart';
|
||||
import 'package:stadtbote/popups/job_map_popup.dart';
|
||||
import 'package:stadtbote/popups/map_popup.dart';
|
||||
|
||||
import '../model/job.dart';
|
||||
import '../popups/files_popup.dart';
|
||||
@@ -90,8 +90,7 @@ class _TourListPageState extends State<TourListPage> with ProducerMixin {
|
||||
SizedBox(
|
||||
width: 100,
|
||||
child: Visibility(
|
||||
visible: (widget.job.mapUrl?.trim().isNotEmpty ?? false) ||
|
||||
(_tours.isNotEmpty && _tours.first.pos != null),
|
||||
visible: _tours.isNotEmpty && _tours.first.pos != null,
|
||||
child: ElevatedButton(
|
||||
style: ButtonStyle(
|
||||
shape: WidgetStateProperty.all<RoundedRectangleBorder>(
|
||||
@@ -103,7 +102,7 @@ class _TourListPageState extends State<TourListPage> with ProducerMixin {
|
||||
backgroundColor: WidgetStateProperty.all<Color>(Colors.lightGreen),
|
||||
foregroundColor: WidgetStateProperty.all<Color>(Colors.black),
|
||||
),
|
||||
onPressed: () => showJobMapPopup(context, widget.job),
|
||||
onPressed: () => showMapPopup(context, _tours.first, _tours),
|
||||
child: Text('map'.tr)),
|
||||
))
|
||||
],
|
||||
|
||||
Reference in new issue
Block a user