💄 Optimize publisher name display

This commit is contained in:
2025-10-23 00:38:37 +08:00
parent 1ae81794b1
commit 8bec18813d
7 changed files with 31 additions and 15 deletions

View File

@@ -370,12 +370,18 @@ class PageBackButton extends StatelessWidget {
final Color? color;
final List<Shadow>? shadows;
final VoidCallback? onWillPop;
const PageBackButton({super.key, this.shadows, this.onWillPop, this.color});
final String? backTo;
const PageBackButton({
super.key,
this.shadows,
this.onWillPop,
this.color,
this.backTo,
});
@override
Widget build(BuildContext context) {
final hasPageAction =
!kIsWeb && Platform.isMacOS;
final hasPageAction = !kIsWeb && Platform.isMacOS;
if (hasPageAction && isWideScreen(context)) return const SizedBox.shrink();
@@ -385,7 +391,7 @@ class PageBackButton extends StatelessWidget {
if (context.canPop()) {
context.pop();
} else {
context.go('/');
context.go(backTo ?? '/');
}
},
icon: Icon(