style: balance shell gutters and sidebar minimum widths

This commit is contained in:
Haitao Pan 2026-03-30 11:52:15 +08:00
parent f4fb200e14
commit dbe9b4449c
2 changed files with 4 additions and 4 deletions

View File

@ -21,7 +21,7 @@ class AppShell extends StatefulWidget {
}
class _AppShellState extends State<AppShell> {
static const _sidebarMinWidth = 56.0;
static const _sidebarMinWidth = 280.0;
static const _sidebarViewportPadding = 72.0;
static const _mainContentMinWidth = 640.0;
static const _sidebarExpandedBaseWidth = 336.0;
@ -357,7 +357,7 @@ class _AppShellState extends State<AppShell> {
),
Expanded(
child: Padding(
padding: const EdgeInsets.only(top: 4, right: 4),
padding: const EdgeInsets.fromLTRB(4, 4, 4, 0),
child: AnimatedPadding(
duration: const Duration(milliseconds: 220),
curve: Curves.easeOutCubic,

View File

@ -21,7 +21,7 @@ class AppShell extends StatefulWidget {
}
class _AppShellState extends State<AppShell> {
static const _sidebarMinWidth = 56.0;
static const _sidebarMinWidth = 280.0;
static const _sidebarViewportPadding = 72.0;
static const _mainContentMinWidth = 760.0;
static const _sidebarExpandedBaseWidth = 336.0;
@ -360,7 +360,7 @@ class _WebShellBody extends StatelessWidget {
Widget build(BuildContext context) {
final palette = context.palette;
return Padding(
padding: const EdgeInsets.only(top: 4, right: 4),
padding: const EdgeInsets.fromLTRB(4, 4, 4, 0),
child: DecoratedBox(
decoration: BoxDecoration(color: palette.canvas),
child: child,