Skip to content

Commit

Permalink
fix: do not show Made with 'flutter_map' when showFlutterMapAttributi…
Browse files Browse the repository at this point in the history
…on is false
  • Loading branch information
leiflinse-trivector committed Oct 31, 2023
1 parent b941fd7 commit cad838a
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 cad838a

Please sign in to comment.