Adaptive app bar leading

This commit is contained in:
2024-07-12 22:37:58 +08:00
parent a2db9a7ae4
commit 156e6f1075
14 changed files with 19 additions and 13 deletions

View File

@@ -22,7 +22,7 @@ class CenteredShell extends StatelessWidget {
return Scaffold(
appBar: showAppBar
? AppBar(
leading: const AppBarLeadingButton(),
leading: AppBarLeadingButton.adaptive(context),
title: AppBarTitle(state.topRoute?.name?.tr ?? 'page'.tr),
centerTitle: false,
toolbarHeight: SolianTheme.toolbarHeight(context),

View File

@@ -44,7 +44,7 @@ class SidebarShell extends StatelessWidget {
return Scaffold(
appBar: showAppBar
? AppBar(
leading: const AppBarLeadingButton(),
leading: AppBarLeadingButton.adaptive(context),
title: AppBarTitle(state.topRoute?.name?.tr ?? 'page'.tr),
centerTitle: false,
toolbarHeight: SolianTheme.toolbarHeight(context),

View File

@@ -22,7 +22,7 @@ class TitleShell extends StatelessWidget {
return Scaffold(
appBar: showAppBar
? AppBar(
leading: const AppBarLeadingButton(),
leading: AppBarLeadingButton.adaptive(context),
title: AppBarTitle(state.topRoute?.name?.tr ?? 'page'.tr),
centerTitle: false,
toolbarHeight: SolianTheme.toolbarHeight(context),