From 9e66071cb093140b18ddf4c629defe8a6dcf9ea4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?lollipopkit=F0=9F=8F=B3=EF=B8=8F=E2=80=8D=E2=9A=A7?= =?UTF-8?q?=EF=B8=8F?= <10864310+lollipopkit@users.noreply.github.com> Date: Fri, 25 Apr 2025 18:32:29 +0800 Subject: [PATCH] opt. --- lib/view/page/container.dart | 2 +- lib/view/page/home/home.dart | 2 +- lib/view/page/setting/entry.dart | 2 +- pubspec.lock | 8 ++++++++ 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/lib/view/page/container.dart b/lib/view/page/container.dart index 15566123..7faa8109 100644 --- a/lib/view/page/container.dart +++ b/lib/view/page/container.dart @@ -60,7 +60,7 @@ class _ContainerPageState extends State { builder: (_, __) => Consumer( builder: (_, ___, __) { return Scaffold( - appBar: AppBar( + appBar: CustomAppBar( centerTitle: true, title: TwoLineText(up: l10n.container, down: widget.spi.name), actions: [ diff --git a/lib/view/page/home/home.dart b/lib/view/page/home/home.dart index 5e37483d..195feac5 100644 --- a/lib/view/page/home/home.dart +++ b/lib/view/page/home/home.dart @@ -177,7 +177,7 @@ class _HomePageState extends State builder: (context, child) => AdaptiveScaffold.standardNavigationRail( extended: extended, - padding: EdgeInsets.zero, + padding: EdgeInsets.only(top: CustomAppBar.sysStatusBarHeight), selectedIndex: _selectIndex.value, destinations: AppTab.navRailDestinations, onDestinationSelected: _onDestinationSelected, diff --git a/lib/view/page/setting/entry.dart b/lib/view/page/setting/entry.dart index 7793ef4d..4fd407e3 100644 --- a/lib/view/page/setting/entry.dart +++ b/lib/view/page/setting/entry.dart @@ -55,7 +55,7 @@ class _SettingsPageState extends State @override Widget build(BuildContext context) { return Scaffold( - appBar: AppBar( + appBar: CustomAppBar( title: Text(libL10n.setting, style: const TextStyle(fontSize: 20)), bottom: TabBar( controller: _tabCtrl, diff --git a/pubspec.lock b/pubspec.lock index b89afd14..18ad1178 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -488,6 +488,14 @@ packages: description: flutter source: sdk version: "0.0.0" + flutter_adaptive_scaffold: + dependency: "direct main" + description: + name: flutter_adaptive_scaffold + sha256: "7279d74da2f2531a16d21c2ec327308778c3aedd672dfe4eaf3bf416463501f8" + url: "https://pub.dev" + source: hosted + version: "0.3.2" flutter_displaymode: dependency: "direct main" description: