mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-18 22:33:42 +00:00
style(ui): render the update status as a bordered chip
Pill shape with a brand-green tint, outline and dot so the status reads as a badge next to the title instead of plain text.
This commit is contained in:
1 parent
1b4956b0ec
commit
8c728ffda7
1 file changed
+10
-2
+10
-2
@@ -13,7 +13,14 @@ class ExtensionUpdateStatus extends StatelessWidget {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final palette = AppPalette.of(context);
|
final palette = AppPalette.of(context);
|
||||||
final content = Row(
|
final content = Container(
|
||||||
|
padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 3),
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
color: palette.brandSoft,
|
||||||
|
borderRadius: BorderRadius.circular(999),
|
||||||
|
border: Border.all(color: palette.brand.withValues(alpha: 0.35)),
|
||||||
|
),
|
||||||
|
child: Row(
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
children: [
|
children: [
|
||||||
Container(
|
Container(
|
||||||
@@ -33,6 +40,7 @@ class ExtensionUpdateStatus extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
),
|
||||||
);
|
);
|
||||||
if (onTap == null) return content;
|
if (onTap == null) return content;
|
||||||
return MouseRegion(
|
return MouseRegion(
|
||||||
@@ -41,7 +49,7 @@ class ExtensionUpdateStatus extends StatelessWidget {
|
|||||||
behavior: HitTestBehavior.opaque,
|
behavior: HitTestBehavior.opaque,
|
||||||
onTap: onTap,
|
onTap: onTap,
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 4, vertical: 6),
|
padding: const EdgeInsets.symmetric(horizontal: 2, vertical: 4),
|
||||||
child: content,
|
child: content,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in new issue
Block a user