瀏覽代碼

feat(map in info): reduce the padding of attribution icon

ashilkn 1 年之前
父節點
當前提交
1745c07e9e
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      lib/ui/map/tile/attribution/map_attribution.dart

+ 4 - 0
lib/ui/map/tile/attribution/map_attribution.dart

@@ -169,6 +169,8 @@ class MapAttributionWidgetState extends State<MapAttributionWidget> {
         child: popupExpanded
         child: popupExpanded
             ? (widget.closeButton ??
             ? (widget.closeButton ??
                 (context, close) => IconButton(
                 (context, close) => IconButton(
+                      visualDensity:
+                          const VisualDensity(horizontal: -2, vertical: -2),
                       onPressed: close,
                       onPressed: close,
                       icon: Icon(
                       icon: Icon(
                         Icons.cancel_outlined,
                         Icons.cancel_outlined,
@@ -182,6 +184,8 @@ class MapAttributionWidgetState extends State<MapAttributionWidget> {
               )
               )
             : (widget.openButton ??
             : (widget.openButton ??
                 (context, open) => IconButton(
                 (context, open) => IconButton(
+                      visualDensity:
+                          const VisualDensity(horizontal: -2, vertical: -2),
                       onPressed: open,
                       onPressed: open,
                       tooltip: 'Attributions',
                       tooltip: 'Attributions',
                       icon: Icon(
                       icon: Icon(