shapeHoverColor property

Color? shapeHoverColor
final

Specifies the color which should apply on the shapes while hovering in the web platform.

By default, the transparency of your current shape color will be altered and applied while hovering. This might be useful if you are having different color for each shape.

However, if you set this property, this color will be commonly applied to the all the shapes while hovering.

Widget build(BuildContext context) {
 return Scaffold(
     body: Center(
       child: SfTheme(
         data: SfThemeData(
           mapsThemeData: SfMapsThemeData(
             shapeHoverColor : Colors.grey
           )
         ),
         child: SfMaps(),
       ),
     )
  );
}

See also:

Implementation

final Color? shapeHoverColor;