EditHandle constructor
EditHandle({
- Key? key,
- required LatLng point,
- required double size,
- IconData? icon,
- Color color = Colors.white,
- Color borderColor = const Color(0xFFE0E0E0),
- double borderWidth = 1.0,
- Color? iconColor,
- List<
BoxShadow> ? shadows, - Color? activeColor,
- Color? activeBorderColor,
- double? activeBorderWidth,
- double touchSizeFactor = 1.5,
- BoxShape shape = BoxShape.circle,
Implementation
EditHandle({
super.key,
required super.point,
required double size,
IconData? icon,
Color color = Colors.white,
Color borderColor = const Color(0xFFE0E0E0),
double borderWidth = 1.0,
Color? iconColor,
List<BoxShadow>? shadows,
// Active state params
Color? activeColor,
Color? activeBorderColor,
double? activeBorderWidth,
double touchSizeFactor = 1.5,
BoxShape shape = BoxShape.circle,
}) : super(
width: size,
height: size,
alignment: Alignment.center,
rotate: false,
// Normal State
child: _HandleWidget(
size: size,
color: color,
borderColor: borderColor,
borderWidth: borderWidth,
shape: shape,
icon: icon,
iconColor: iconColor ?? Colors.black54,
shadows: shadows,
),
options: [
ActiveMarkerOptions(
touchSizeFactor: touchSizeFactor,
// Active State
active: _HandleWidget(
size: size,
color: activeColor ?? color,
borderColor: activeBorderColor ?? Colors.blueAccent,
borderWidth: activeBorderWidth ?? 2.0,
shape: shape,
icon: icon,
iconColor: iconColor ??
Colors.white, // Invert icon for active if needed
shadows: [
BoxShadow(
color: (activeBorderColor ?? Colors.blueAccent)
.withValues(alpha: 0.4),
blurRadius: 10,
spreadRadius: 2,
)
],
scale: 1.2, // Subtle scale up
),
),
],
);