fix(ui): hide AppBar back button on Android/iOS
Mobile platforms provide OS-level back navigation (swipe gesture), so the redundant AppBar back button only clutters the toolbar. Desktop keeps it since there is no system back gesture. Closes #69 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
53757595c4
commit
3802ca57ed
@@ -57,8 +57,12 @@ class _EmailDetailScreenState extends ConsumerState<EmailDetailScreen> {
|
||||
final header = detail.valueOrNull?.$1;
|
||||
final body = detail.valueOrNull?.$2;
|
||||
|
||||
final isMobile = defaultTargetPlatform == TargetPlatform.android ||
|
||||
defaultTargetPlatform == TargetPlatform.iOS;
|
||||
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
automaticallyImplyLeading: !isMobile,
|
||||
title: Text(
|
||||
header?.subject ?? '(loading…)',
|
||||
overflow: TextOverflow.ellipsis,
|
||||
|
||||
Reference in New Issue
Block a user