padding property

EdgeInsetsGeometry padding
final

Sets the padding around the legend.

Defaults to EdgeInsets.all(10.0).

 @override
 Widget build(BuildContext context) {
   return SfMaps(
     layers: [
       MapShapeLayer(
         showLegend: true,
         legendSettings: MapLegendSettings(
             padding: EdgeInsets.all(10)
         ),
         delegate: MapShapeLayerDelegate(
             shapeFile: "assets/world_map.json",
             shapeDataField: "continent",
             dataCount: bubbleData.length,
             primaryValueMapper: (index) {
               return bubbleData[index].country;
             }),
       )
     ],
   );
 }

Implementation

final EdgeInsetsGeometry padding