wip: mobile support

This commit is contained in:
DenserMeerkat
2024-02-29 00:19:29 +05:30
parent 993621793a
commit 54508de428
15 changed files with 544 additions and 137 deletions

View 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,
),
),
),
);
;
}
}