mirror of
https://github.com/foss42/apidash.git
synced 2025-05-31 22:33:59 +08:00
fix: collection pane scroll padding
This commit is contained in:
@ -109,14 +109,21 @@ const kP8CollectionPane = EdgeInsets.only(
|
||||
//right: 4.0,
|
||||
// bottom: 8.0,
|
||||
);
|
||||
const kPt28 = EdgeInsets.only(top: 28);
|
||||
const kPt32 = EdgeInsets.only(top: 32);
|
||||
const kPt28 = EdgeInsets.only(
|
||||
top: 28,
|
||||
);
|
||||
const kPt32 = EdgeInsets.only(
|
||||
top: 32,
|
||||
);
|
||||
const kPb10 = EdgeInsets.only(
|
||||
bottom: 10,
|
||||
);
|
||||
const kPb15 = EdgeInsets.only(
|
||||
bottom: 15,
|
||||
);
|
||||
const kPb70 = EdgeInsets.only(
|
||||
bottom: 70,
|
||||
);
|
||||
const kHSpacer4 = SizedBox(width: 4);
|
||||
const kHSpacer5 = SizedBox(width: 5);
|
||||
const kHSpacer10 = SizedBox(width: 10);
|
||||
|
@ -27,9 +27,10 @@ class CollectionPane extends ConsumerWidget {
|
||||
backgroundColor: Theme.of(context).colorScheme.surface,
|
||||
surfaceTintColor: kColorTransparent,
|
||||
child: Padding(
|
||||
padding: !context.isMediumWindow && kIsMacOS
|
||||
? kP24CollectionPane
|
||||
: kP8CollectionPane,
|
||||
padding: (!context.isMediumWindow && kIsMacOS
|
||||
? kP24CollectionPane
|
||||
: kP8CollectionPane) +
|
||||
(context.isMediumWindow ? kPb70 : EdgeInsets.zero),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||
children: [
|
||||
@ -113,6 +114,7 @@ class CollectionPane extends ConsumerWidget {
|
||||
const Expanded(
|
||||
child: RequestList(),
|
||||
),
|
||||
kVSpacer5
|
||||
],
|
||||
),
|
||||
),
|
||||
|
@ -33,9 +33,7 @@ class PageBase extends ConsumerWidget {
|
||||
return Stack(
|
||||
children: [
|
||||
Container(
|
||||
padding: (context.isMediumWindow
|
||||
? const EdgeInsets.only(bottom: 70)
|
||||
: EdgeInsets.zero) +
|
||||
padding: (context.isMediumWindow ? kPb70 : EdgeInsets.zero) +
|
||||
(kIsWindows || kIsMacOS ? kPt28 : EdgeInsets.zero),
|
||||
color: Theme.of(context).colorScheme.surface,
|
||||
child: scaffold,
|
||||
|
Reference in New Issue
Block a user