From ca05c9429586a590ce3c8864f0bd5b76ff587c6e Mon Sep 17 00:00:00 2001 From: mrhcjones <150591975+mrhcjones@users.noreply.github.com> Date: Tue, 12 Mar 2024 21:11:29 +0000 Subject: [PATCH] Make group cards round --- lib/subscriptions/_groups.dart | 43 ++++++++++++++++++++-------------- 1 file changed, 25 insertions(+), 18 deletions(-) diff --git a/lib/subscriptions/_groups.dart b/lib/subscriptions/_groups.dart index 61bd91d..6ab7556 100644 --- a/lib/subscriptions/_groups.dart +++ b/lib/subscriptions/_groups.dart @@ -47,7 +47,9 @@ class _SubscriptionGroupsState extends State { child: Column( children: [ Container( - color: color != null ? color.withOpacity(0.9) : Theme.of(context).highlightColor, + decoration: BoxDecoration( + color: color != null ? color.withOpacity(0.9) : Theme.of(context).highlightColor, + borderRadius: BorderRadius.only(topLeft: Radius.circular(12), topRight: Radius.circular(12))), width: double.infinity, padding: const EdgeInsets.symmetric(vertical: 12), child: Icon(deserializeIconData(icon), size: 24), @@ -55,7 +57,9 @@ class _SubscriptionGroupsState extends State { Expanded( child: Container( alignment: Alignment.center, - color: color != null ? color.withOpacity(0.4) : Colors.white10, + decoration: BoxDecoration( + color: color != null ? color.withOpacity(0.4) : Colors.white10, + borderRadius: BorderRadius.only(bottomLeft: Radius.circular(12), bottomRight: Radius.circular(12))), width: double.infinity, padding: const EdgeInsets.all(8), child: Text(title, @@ -255,22 +259,25 @@ class _SubscriptionGroupEditDialogState extends State= breakpointScreenWidth2 ? Row(mainAxisAlignment: MainAxisAlignment.center, children: [ - ...buttonsLst1, - ...buttonsLst2, - ]) : screenWidth >= breakpointScreenWidth1 ? Column(mainAxisSize: MainAxisSize.min, children: [ - Row(mainAxisAlignment: MainAxisAlignment.center, children: [ - ...buttonsLst1, - ]), - Row(mainAxisAlignment: MainAxisAlignment.center, children: [ - ...buttonsLst2, - ]), - ]) : Column(mainAxisSize: MainAxisSize.min, children: [ - ...buttonsLst1, - ...buttonsLst2, - ]) - ), + width: screenWidth, + child: screenWidth >= breakpointScreenWidth2 + ? Row(mainAxisAlignment: MainAxisAlignment.center, children: [ + ...buttonsLst1, + ...buttonsLst2, + ]) + : screenWidth >= breakpointScreenWidth1 + ? Column(mainAxisSize: MainAxisSize.min, children: [ + Row(mainAxisAlignment: MainAxisAlignment.center, children: [ + ...buttonsLst1, + ]), + Row(mainAxisAlignment: MainAxisAlignment.center, children: [ + ...buttonsLst2, + ]), + ]) + : Column(mainAxisSize: MainAxisSize.min, children: [ + ...buttonsLst1, + ...buttonsLst2, + ])), ], content: Form( key: _formKey,