RichAttributionWidget class
flutter_map's RichAttributionWidget: a button that opens a popup listing the attributions, with the
LogoSourceAttributions always shown next to it. Place it in UnifiedMap.children.
Same fields, defaults and look as flutter_map's. showFlutterMapAttribution adds a "Made with
'flutter_unified_map'" line in place of flutter_map's own logo and line. The popup closes on the next map event
after it was opened, as in flutter_map. Native maps also draw their mandatory Google or Apple attribution; move it
with NativeParams.padding.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- RichAttributionWidget
Constructors
-
RichAttributionWidget({Key? key, required List<
SourceAttribution> attributions, AttributionAlignment alignment = AttributionAlignment.bottomRight, Widget openButton(BuildContext context, VoidCallback open)?, Widget closeButton(BuildContext context, VoidCallback open)?, Color? popupBackgroundColor, BorderRadius? popupBorderRadius, double permanentHeight = 24, bool showFlutterMapAttribution = true, RichAttributionWidgetAnimation animationConfig = const FadeRAWA(), Duration popupInitialDisplayDuration = Duration.zero}) -
const
Properties
- alignment → AttributionAlignment
-
final
- animationConfig → RichAttributionWidgetAnimation
-
final
-
attributions
→ List<
SourceAttribution> -
final
- closeButton → Widget Function(BuildContext context, VoidCallback open)?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- openButton → Widget Function(BuildContext context, VoidCallback open)?
-
final
- permanentHeight → double
-
final
- popupBackgroundColor → Color?
-
final
- popupBorderRadius → BorderRadius?
-
final
- popupInitialDisplayDuration → Duration
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showFlutterMapAttribution → bool
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< RichAttributionWidget> -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited