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:
commit
2230e0857e
1 changed files with 5 additions and 3 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue