improve mobile ui

This commit is contained in:
wgh19
2024-05-14 16:43:41 +08:00
parent 0ec700c835
commit c4b50a3fb1
10 changed files with 212 additions and 111 deletions

View File

@@ -307,7 +307,7 @@ class SideBarRoute<T> extends PopupRoute<T> {
final Widget child;
@override
Color? get barrierColor => const Color.fromARGB(64, 205, 205, 205);
Color? get barrierColor => Colors.transparent;
@override
bool get barrierDismissible => true;
@@ -331,7 +331,8 @@ class SideBarRoute<T> extends PopupRoute<T> {
color: FluentTheme.of(context).micaBackgroundColor.withOpacity(0.98),
borderRadius: const BorderRadius.only(topLeft: Radius.circular(4), bottomLeft: Radius.circular(4))
),
constraints: const BoxConstraints(maxWidth: _kSideBarWidth),
constraints: BoxConstraints(maxWidth: min(_kSideBarWidth,
MediaQuery.of(context).size.width)),
width: double.infinity,
child: child,
),