Remove obsolete code

This commit is contained in:
Ming Ming 2021-07-03 17:11:18 +08:00
parent c2b06cfeb6
commit 296aa9a99f

View file

@ -125,13 +125,10 @@ class _RootPickerState extends State<RootPicker>
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [ children: [
if (!ModalRoute.of(context).isFirst)
TextButton( TextButton(
onPressed: () => _onSkipPressed(context), onPressed: () => _onSkipPressed(context),
child: Text(AppLocalizations.of(context).skipButtonLabel), child: Text(AppLocalizations.of(context).skipButtonLabel),
) ),
else
Container(),
ElevatedButton( ElevatedButton(
onPressed: () => _onConfirmPressed(context), onPressed: () => _onConfirmPressed(context),
child: Text(AppLocalizations.of(context).confirmButtonLabel), child: Text(AppLocalizations.of(context).confirmButtonLabel),