Skip to content

Commit

Permalink
feat(screens): Decrease widget padding in Homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
realth000 committed Dec 4, 2023
1 parent 074f16e commit 0cd6bc7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/screens/homepage/homepage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class _HomePageState extends ConsumerState<HomePage> {
// TODO: Optimize layout build jank.
// TODO: Optimize page when not login (no cookie or cookie invalid).
WelcomeSection(),
sizedBoxW20H20,
sizedBoxW5H5,
PinSection(),
],
),
Expand Down
4 changes: 2 additions & 2 deletions lib/screens/homepage/pin_section.dart
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ class PinSection extends ConsumerWidget {
gridDelegate: const SliverGridDelegateWithMaxCrossAxisExtent(
maxCrossAxisExtent: 800,
// Set to at least 552 to ensure not overflow when scaling window size down.
mainAxisSpacing: 20,
mainAxisSpacing: 5,
mainAxisExtent: 552,
crossAxisSpacing: 20,
crossAxisSpacing: 5,
),
children: ret,
);
Expand Down
2 changes: 1 addition & 1 deletion lib/screens/homepage/welcome_section.dart
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ class WelcomeSection extends ConsumerWidget {
children: [
Expanded(
child: _buildKahrpbaSwiper(context, picUrlList, picHrefList)),
sizedBoxW20H20,
sizedBoxW5H5,
Expanded(
child: Card(
margin: EdgeInsets.zero,
Expand Down

0 comments on commit 0cd6bc7

Please sign in to comment.