Skip to content

Commit 2eebe33

Browse files
committed
fix: collection pane scroll padding
1 parent 6051961 commit 2eebe33

File tree

3 files changed

+15
-8
lines changed

3 files changed

+15
-8
lines changed

lib/consts.dart

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,14 +109,21 @@ const kP8CollectionPane = EdgeInsets.only(
109109
//right: 4.0,
110110
// bottom: 8.0,
111111
);
112-
const kPt28 = EdgeInsets.only(top: 28);
113-
const kPt32 = EdgeInsets.only(top: 32);
112+
const kPt28 = EdgeInsets.only(
113+
top: 28,
114+
);
115+
const kPt32 = EdgeInsets.only(
116+
top: 32,
117+
);
114118
const kPb10 = EdgeInsets.only(
115119
bottom: 10,
116120
);
117121
const kPb15 = EdgeInsets.only(
118122
bottom: 15,
119123
);
124+
const kPb70 = EdgeInsets.only(
125+
bottom: 70,
126+
);
120127
const kHSpacer4 = SizedBox(width: 4);
121128
const kHSpacer5 = SizedBox(width: 5);
122129
const kHSpacer10 = SizedBox(width: 10);

lib/screens/home_page/collection_pane.dart

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,10 @@ class CollectionPane extends ConsumerWidget {
2727
backgroundColor: Theme.of(context).colorScheme.surface,
2828
surfaceTintColor: kColorTransparent,
2929
child: Padding(
30-
padding: !context.isMediumWindow && kIsMacOS
31-
? kP24CollectionPane
32-
: kP8CollectionPane,
30+
padding: (!context.isMediumWindow && kIsMacOS
31+
? kP24CollectionPane
32+
: kP8CollectionPane) +
33+
(context.isMediumWindow ? kPb70 : EdgeInsets.zero),
3334
child: Column(
3435
crossAxisAlignment: CrossAxisAlignment.stretch,
3536
children: [
@@ -113,6 +114,7 @@ class CollectionPane extends ConsumerWidget {
113114
const Expanded(
114115
child: RequestList(),
115116
),
117+
kVSpacer5
116118
],
117119
),
118120
),

lib/screens/mobile/widgets/page_base.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@ class PageBase extends ConsumerWidget {
3333
return Stack(
3434
children: [
3535
Container(
36-
padding: (context.isMediumWindow
37-
? const EdgeInsets.only(bottom: 70)
38-
: EdgeInsets.zero) +
36+
padding: (context.isMediumWindow ? kPb70 : EdgeInsets.zero) +
3937
(kIsWindows || kIsMacOS ? kPt28 : EdgeInsets.zero),
4038
color: Theme.of(context).colorScheme.surface,
4139
child: scaffold,

0 commit comments

Comments
 (0)