fix: don't pop from language selection page when not possible

This commit is contained in:
ggurdin 2026-02-04 13:58:28 -05:00
parent e83e0200ac
commit 04cd818406
No known key found for this signature in database
GPG key ID: A01CB41737CBB478

View file

@ -111,9 +111,11 @@ class LanguageSelectionPageState extends State<LanguageSelectionPage> {
child: Row(
spacing: 12.0,
children: [
BackButton(
onPressed: Navigator.of(context).pop,
),
Navigator.of(context).canPop()
? BackButton(
onPressed: Navigator.of(context).maybePop,
)
: const SizedBox(width: 40.0),
Expanded(
child: LayoutBuilder(
builder: (context, constraints) {