Merge pull request #5578 from pangeachat/5572-stuck-when-go-back-in-onboarding

fix: don't pop from language selection page when not possible
This commit is contained in:
ggurdin 2026-02-04 13:59:03 -05:00 committed by GitHub
commit 2230e0857e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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) {