From 99b97119eb7f0c1d20742b7380289316469cd701 Mon Sep 17 00:00:00 2001 From: Pedro Castro Date: Wed, 12 Feb 2025 11:54:22 +0000 Subject: [PATCH 1/2] changed some dimensions at the library card --- packages/uni_ui/lib/cards/library_occupation_card.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/uni_ui/lib/cards/library_occupation_card.dart b/packages/uni_ui/lib/cards/library_occupation_card.dart index 1cdb6ddf5..565b9613a 100644 --- a/packages/uni_ui/lib/cards/library_occupation_card.dart +++ b/packages/uni_ui/lib/cards/library_occupation_card.dart @@ -20,7 +20,7 @@ class FloorOccupationWidget extends StatelessWidget { @override Widget build(BuildContext context) { return Container( - padding: const EdgeInsets.symmetric(vertical: 5), + padding: const EdgeInsets.symmetric(vertical: 4), child: Column( children: [ Row( @@ -66,12 +66,12 @@ class LibraryOccupationCard extends StatelessWidget { Widget build(BuildContext context) { return GenericCard( key: key, - padding: const EdgeInsets.symmetric(vertical: 25, horizontal: 15), + padding: const EdgeInsets.symmetric(vertical: 20, horizontal: 10), tooltip: '', child: Row( children: [ CircularPercentIndicator( - radius: 100, + radius: 90, lineWidth: 12, percent: occupation / capacity, center: Text( @@ -82,7 +82,7 @@ class LibraryOccupationCard extends StatelessWidget { backgroundColor: Theme.of(context).colorScheme.surface, progressColor: Theme.of(context).primaryColor, ), - const SizedBox(width: 20), + const SizedBox(width: 10), Expanded( child: Column( children: occupationWidgetsList, From e69c35d327be756c54d88ecd2fc6eed5585a9cf3 Mon Sep 17 00:00:00 2001 From: Pedro Castro Date: Thu, 13 Feb 2025 11:36:35 +0000 Subject: [PATCH 2/2] updated percent indicator background color --- packages/uni_ui/lib/cards/library_occupation_card.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/uni_ui/lib/cards/library_occupation_card.dart b/packages/uni_ui/lib/cards/library_occupation_card.dart index 565b9613a..70e538e6e 100644 --- a/packages/uni_ui/lib/cards/library_occupation_card.dart +++ b/packages/uni_ui/lib/cards/library_occupation_card.dart @@ -20,7 +20,7 @@ class FloorOccupationWidget extends StatelessWidget { @override Widget build(BuildContext context) { return Container( - padding: const EdgeInsets.symmetric(vertical: 4), + padding: const EdgeInsets.symmetric(vertical: 3), child: Column( children: [ Row( @@ -39,7 +39,7 @@ class FloorOccupationWidget extends StatelessWidget { LinearPercentIndicator( lineHeight: 8.0, percent: occupation / capacity, - backgroundColor: Theme.of(context).colorScheme.surface, + backgroundColor: const Color.fromRGBO(177, 77, 84, 0.25), progressColor: Theme.of(context).primaryColor, barRadius: const Radius.circular(10), padding: EdgeInsets.zero, @@ -79,7 +79,7 @@ class LibraryOccupationCard extends StatelessWidget { style: Theme.of(context).textTheme.displayMedium, ), circularStrokeCap: CircularStrokeCap.round, - backgroundColor: Theme.of(context).colorScheme.surface, + backgroundColor: const Color.fromRGBO(177, 77, 84, 0.25), progressColor: Theme.of(context).primaryColor, ), const SizedBox(width: 10),