Skip to content

Commit

Permalink
fix: remove flutter_map text attribution when `showFlutterMapAttribut…
Browse files Browse the repository at this point in the history
…ion` is `false` (#1712)
  • Loading branch information
leiflinse-trivector authored Oct 31, 2023
1 parent b941fd7 commit 04e54ae
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lib/src/layer/attribution_layer/rich/widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -254,11 +254,12 @@ class _RichAttributionWidgetState extends State<RichAttributionWidget> {
crossAxisAlignment: CrossAxisAlignment.start,
children: [
...widget.attributions.whereType<TextSourceAttribution>(),
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),
],
),
Expand Down

0 comments on commit 04e54ae

Please sign in to comment.