From 04e54ae37458d19e8c9cb0c292a50901087142f7 Mon Sep 17 00:00:00 2001 From: Leif Linse <118986082+leiflinse-trivector@users.noreply.github.com> Date: Tue, 31 Oct 2023 18:24:57 +0100 Subject: [PATCH] fix: remove flutter_map text attribution when `showFlutterMapAttribution` is `false` (#1712) --- lib/src/layer/attribution_layer/rich/widget.dart | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/src/layer/attribution_layer/rich/widget.dart b/lib/src/layer/attribution_layer/rich/widget.dart index b37a30059..fb2f76d17 100644 --- a/lib/src/layer/attribution_layer/rich/widget.dart +++ b/lib/src/layer/attribution_layer/rich/widget.dart @@ -254,11 +254,12 @@ class _RichAttributionWidgetState extends State { crossAxisAlignment: CrossAxisAlignment.start, children: [ ...widget.attributions.whereType(), - const TextSourceAttribution( - "Made with 'flutter_map'", - prependCopyright: false, - textStyle: TextStyle(fontStyle: FontStyle.italic), - ), + if (widget.showFlutterMapAttribution) + const TextSourceAttribution( + "Made with 'flutter_map'", + prependCopyright: false, + textStyle: TextStyle(fontStyle: FontStyle.italic), + ), SizedBox(height: (widget.permanentHeight - 24) + 32), ], ),