Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Library card size #1477

Merged
merged 2 commits into from
Feb 15, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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