Skip to content

Commit

Permalink
fix: Library card size (#1477)
Browse files Browse the repository at this point in the history
  • Loading branch information
thePeras authored Feb 15, 2025
2 parents 9b56549 + e69c35d commit 2a231c1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/uni_ui/lib/cards/library_occupation_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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: 3),
child: Column(
children: [
Row(
Expand All @@ -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,
Expand All @@ -66,23 +66,23 @@ 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(
'${(occupation / capacity * 100).round()}%',
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: 20),
const SizedBox(width: 10),
Expanded(
child: Column(
children: occupationWidgetsList,
Expand Down

0 comments on commit 2a231c1

Please sign in to comment.