Skip to content

Commit

Permalink
fix: add small padding to logos
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilfedio committed Sep 27, 2024
1 parent 845114a commit c03502a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions lib/config/ui_config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ abstract class DepartmentsConfig {
static const defaultColorSecond = "#999898";

static const listSeparatorSize = 16.0;
static const logoMicroPadding = 10.0;

static const departmentsViewGridDelegate =
SliverGridDelegateWithMaxCrossAxisExtent(
Expand Down
11 changes: 7 additions & 4 deletions lib/features/departments_view/widgets/department_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,13 @@ class DepartmentCard extends StatelessWidget {
dimension: WideTileCardConfig.imageSize,
child: Opacity(
opacity: .5,
child: OptimizedDirectusImage(
department.logo?.filename_disk,
boxFit: BoxFit.scaleDown,
noShimmeringLoading: true,
child: Padding(
padding: const EdgeInsets.all(DepartmentsConfig.logoMicroPadding),
child: OptimizedDirectusImage(
department.logo?.filename_disk,
boxFit: BoxFit.scaleDown,
noShimmeringLoading: true,
),
),
),
),
Expand Down

0 comments on commit c03502a

Please sign in to comment.