settings page

This commit is contained in:
nyne
2024-10-11 21:47:50 +08:00
parent f228c7ee17
commit a26e5e20de
21 changed files with 1515 additions and 26 deletions

View File

@@ -83,7 +83,7 @@ class _AppbarState extends State<Appbar> {
message: "Back".tl,
child: IconButton(
icon: const Icon(Icons.arrow_back),
onPressed: () => Navigator.pop(context),
onPressed: () => Navigator.maybePop(context),
),
),
const SizedBox(
@@ -187,7 +187,7 @@ class _MySliverAppBarDelegate extends SliverPersistentHeaderDelegate {
message: "Back".tl,
child: IconButton(
icon: const Icon(Icons.arrow_back),
onPressed: () => Navigator.pop(context),
onPressed: () => Navigator.maybePop(context),
),
)
: const SizedBox()),
@@ -322,7 +322,9 @@ class _FilledTabBarState extends State<FilledTabBar> {
scrollDirection: Axis.horizontal,
padding: EdgeInsets.zero,
controller: controller,
physics: physics,
physics: physics is BouncingScrollPhysics
? const ClampingScrollPhysics()
: physics,
child: CustomPaint(
painter: painter,
child: _TabRow(