mirror of
https://github.com/foss42/apidash.git
synced 2025-12-10 07:08:08 +08:00
wip: mobile support
This commit is contained in:
34
lib/screens/mobile/left_drawer.dart
Normal file
34
lib/screens/mobile/left_drawer.dart
Normal file
@@ -0,0 +1,34 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class LeftDrawer extends StatelessWidget {
|
||||
final Widget drawerContent;
|
||||
const LeftDrawer({super.key, required this.drawerContent});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Container(
|
||||
padding: EdgeInsets.only(top: MediaQuery.of(context).padding.top),
|
||||
color: Theme.of(context).colorScheme.onInverseSurface,
|
||||
child: Drawer(
|
||||
backgroundColor: Colors.transparent,
|
||||
surfaceTintColor: Colors.transparent,
|
||||
child: Padding(
|
||||
padding:
|
||||
EdgeInsets.only(right: MediaQuery.of(context).size.width * 0.03),
|
||||
child: Container(
|
||||
padding: EdgeInsets.only(
|
||||
bottom: 70 + MediaQuery.of(context).padding.bottom),
|
||||
clipBehavior: Clip.hardEdge,
|
||||
decoration: BoxDecoration(
|
||||
color: Theme.of(context).colorScheme.surface,
|
||||
borderRadius:
|
||||
const BorderRadius.only(topRight: Radius.circular(8)),
|
||||
),
|
||||
child: drawerContent,
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user