File tree Expand file tree Collapse file tree 4 files changed +16
-5
lines changed Expand file tree Collapse file tree 4 files changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -40,9 +40,11 @@ class _MobileDashboardState extends ConsumerState<MobileDashboard> {
4040 ),
4141 if (context.isMediumWindow)
4242 AnimatedPositioned (
43- bottom: isLeftDrawerOpen
43+ bottom: railIdx > 1
4444 ? 0
45- : - (72 + MediaQuery .paddingOf (context).bottom),
45+ : isLeftDrawerOpen
46+ ? 0
47+ : - (72 + MediaQuery .paddingOf (context).bottom),
4648 left: 0 ,
4749 right: 0 ,
4850 height: 70 + MediaQuery .paddingOf (context).bottom,
Original file line number Diff line number Diff line change 11import 'package:flutter/material.dart' ;
22import 'package:flutter_riverpod/flutter_riverpod.dart' ;
3- import 'package:apidash/extensions/extensions.dart' ;
43import 'package:apidash/providers/providers.dart' ;
54
65class BottomNavBar extends ConsumerWidget {
Original file line number Diff line number Diff line change @@ -135,7 +135,9 @@ class RequestPageBottombar extends ConsumerWidget {
135135 builder: (context) => const PageBase (
136136 title: 'View Code' ,
137137 scaffoldBody: CodePane (),
138+ addBottomPadding: false ,
138139 ),
140+ fullscreenDialog: true ,
139141 ),
140142 );
141143 },
Original file line number Diff line number Diff line change @@ -6,9 +6,15 @@ import 'package:apidash/providers/providers.dart';
66import 'package:apidash/widgets/window_caption.dart' ;
77
88class PageBase extends ConsumerWidget {
9+ const PageBase ({
10+ super .key,
11+ required this .title,
12+ required this .scaffoldBody,
13+ this .addBottomPadding = true ,
14+ });
915 final String title;
1016 final Widget scaffoldBody;
11- const PageBase ({ super .key, required this .title, required this .scaffoldBody}) ;
17+ final bool addBottomPadding ;
1218
1319 @override
1420 Widget build (BuildContext context, WidgetRef ref) {
@@ -33,7 +39,9 @@ class PageBase extends ConsumerWidget {
3339 return Stack (
3440 children: [
3541 Container (
36- padding: (context.isMediumWindow ? kPb70 : EdgeInsets .zero) +
42+ padding: (addBottomPadding && context.isMediumWindow
43+ ? kPb70
44+ : EdgeInsets .zero) +
3745 (kIsWindows || kIsMacOS ? kPt28 : EdgeInsets .zero),
3846 color: Theme .of (context).colorScheme.surface,
3947 child: scaffold,
You can’t perform that action at this time.
0 commit comments