Temporary disable more options button on ionia gift card details screen.

This commit is contained in:
M 2022-09-14 18:22:31 -04:00
parent 3f931ed8f2
commit cb8cf8e77c

View file

@ -133,19 +133,19 @@ class IoniaGiftCardDetailPage extends BasePage {
if (!viewModel.giftCard.isEmpty) { if (!viewModel.giftCard.isEmpty) {
return Column( return Column(
children: [ children: [
PrimaryButton( //PrimaryButton(
onPressed: () async { // onPressed: () async {
final amount = await Navigator.of(context) // final amount = await Navigator.of(context)
.pushNamed(Routes.ioniaMoreOptionsPage, arguments: [viewModel.giftCard]) as String; // .pushNamed(Routes.ioniaMoreOptionsPage, arguments: [viewModel.giftCard]) as String;
if (amount != null) { // if (amount != null) {
viewModel.updateRemaining(double.parse(amount)); // viewModel.updateRemaining(double.parse(amount));
} // }
}, // },
text: S.of(context).more_options, // text: S.of(context).more_options,
color: Theme.of(context).accentTextTheme.caption.color, // color: Theme.of(context).accentTextTheme.caption.color,
textColor: Theme.of(context).primaryTextTheme.title.color, // textColor: Theme.of(context).primaryTextTheme.title.color,
), //),
SizedBox(height: 12), //SizedBox(height: 12),
LoadingPrimaryButton( LoadingPrimaryButton(
isLoading: viewModel.redeemState is IsExecutingState, isLoading: viewModel.redeemState is IsExecutingState,
onPressed: () => viewModel.redeem().then( onPressed: () => viewModel.redeem().then(