fix badge overflows
This commit is contained in:
+8
-2
@@ -187,7 +187,10 @@ class BrowserBottomAppBar extends HookConsumerWidget {
|
||||
WebExtensionActionType.page,
|
||||
);
|
||||
},
|
||||
icon: ExtensionBadgeIcon(extension),
|
||||
icon: Padding(
|
||||
padding: const EdgeInsets.only(top: 4.0),
|
||||
child: ExtensionBadgeIcon(extension),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
@@ -237,7 +240,10 @@ class BrowserBottomAppBar extends HookConsumerWidget {
|
||||
WebExtensionActionType.browser,
|
||||
);
|
||||
},
|
||||
leadingIcon: ExtensionBadgeIcon(extension),
|
||||
leadingIcon: Padding(
|
||||
padding: const EdgeInsets.only(top: 4.0),
|
||||
child: ExtensionBadgeIcon(extension),
|
||||
),
|
||||
child: Text(extension.title ?? ''),
|
||||
),
|
||||
),
|
||||
|
||||
+4
-1
@@ -40,7 +40,10 @@ class ExtensionShortcutMenu extends HookConsumerWidget {
|
||||
WebExtensionActionType.browser,
|
||||
);
|
||||
},
|
||||
leadingIcon: ExtensionBadgeIcon(extension),
|
||||
leadingIcon: Padding(
|
||||
padding: const EdgeInsets.only(top: 4.0),
|
||||
child: ExtensionBadgeIcon(extension),
|
||||
),
|
||||
child: Text(extension.title ?? ''),
|
||||
),
|
||||
),
|
||||
|
||||
@@ -79,7 +79,7 @@ class SelectableChips<T extends S, S, K> extends StatelessWidget {
|
||||
itemBuilder: (context, index) {
|
||||
final item = items[index];
|
||||
final child = Padding(
|
||||
padding: const EdgeInsets.only(right: 8.0),
|
||||
padding: const EdgeInsets.only(right: 8.0, top: 4.0),
|
||||
child: _BadgeWrapper(
|
||||
count: itemBadgeCount?.call(item),
|
||||
child: FilterChip(
|
||||
|
||||
Reference in New Issue
Block a user