MinimapTheme class

Theme configuration for the minimap overlay.

Defines the visual appearance of the minimap including colors, dimensions, positioning, and styling options.

Two built-in themes are provided:

Constructors

MinimapTheme({MinimapPosition position = MinimapPosition.bottomRight, double margin = 20.0, Size size = const Size(200, 150), Color backgroundColor = const Color(0xFFF5F5F5), Color nodeColor = const Color(0xFF1976D2), Color viewportColor = const Color(0xFF1976D2), double viewportFillOpacity = 0.1, double viewportBorderOpacity = 0.4, Color borderColor = const Color(0xFFBDBDBD), double borderWidth = 1.0, double borderRadius = 4.0, EdgeInsets padding = const EdgeInsets.all(4.0), bool showViewport = true, double nodeBorderRadius = 2.0})
const

Properties

backgroundColor Color
Background color of the minimap container.
final
borderColor Color
Border color of the minimap container.
final
borderRadius double
Border radius for the minimap widget corners.
final
borderWidth double
Border width of the minimap container.
final
hashCode int
The hash code for this object.
no setterinherited
margin double
Margin from the edge of the editor to the minimap.
final
nodeBorderRadius double
Border radius for node rectangles in the minimap.
final
nodeColor Color
Color used to draw nodes in the minimap.
final
padding EdgeInsets
Internal padding between minimap edge and content.
final
position MinimapPosition
Position of the minimap in the editor.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showViewport bool
Whether to show the viewport indicator rectangle.
final
size Size
Size of the minimap widget in pixels.
final
viewportBorderOpacity double
Opacity of the viewport border.
final
viewportColor Color
Color used for the viewport indicator.
final
viewportFillOpacity double
Opacity of the viewport fill.
final

Methods

copyWith({MinimapPosition? position, double? margin, Size? size, Color? backgroundColor, Color? nodeColor, Color? viewportColor, double? viewportFillOpacity, double? viewportBorderOpacity, Color? borderColor, double? borderWidth, double? borderRadius, EdgeInsets? padding, bool? showViewport, double? nodeBorderRadius}) MinimapTheme
Create a copy with different values.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

dark → const MinimapTheme
Dark theme with visible contrast.
light → const MinimapTheme
Light theme with subtle styling.