mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-08 20:09:24 +00:00
Replace removed code
This commit is contained in:
parent
8d482464d9
commit
d3eb22e1d4
1 changed files with 25 additions and 12 deletions
|
@ -67,7 +67,10 @@ class IoniaBuyGiftCardPage extends BasePage {
|
||||||
Container(
|
Container(
|
||||||
padding: EdgeInsets.symmetric(horizontal: 25),
|
padding: EdgeInsets.symmetric(horizontal: 25),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
borderRadius: BorderRadius.only(bottomLeft: Radius.circular(24), bottomRight: Radius.circular(24)),
|
borderRadius: BorderRadius.only(
|
||||||
|
bottomLeft: Radius.circular(24),
|
||||||
|
bottomRight: Radius.circular(24),
|
||||||
|
),
|
||||||
gradient: LinearGradient(colors: [
|
gradient: LinearGradient(colors: [
|
||||||
Theme.of(context).primaryTextTheme!.subtitle1!.color!,
|
Theme.of(context).primaryTextTheme!.subtitle1!.color!,
|
||||||
Theme.of(context).primaryTextTheme!.subtitle1!.decorationColor!,
|
Theme.of(context).primaryTextTheme!.subtitle1!.decorationColor!,
|
||||||
|
@ -78,31 +81,37 @@ class IoniaBuyGiftCardPage extends BasePage {
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
SizedBox(height: 150),
|
SizedBox(height: 150),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: 200,
|
width: 200,
|
||||||
child: BaseTextFormField(
|
child: BaseTextFormField(
|
||||||
controller: TextEditingController(),
|
controller: _amountController,
|
||||||
|
focusNode: _amountFieldFocus,
|
||||||
keyboardType: TextInputType.numberWithOptions(signed: false, decimal: true),
|
keyboardType: TextInputType.numberWithOptions(signed: false, decimal: true),
|
||||||
|
inputFormatters: [
|
||||||
|
FilteringTextInputFormatter.deny(RegExp('[\-|\ ]')),
|
||||||
|
FilteringTextInputFormatter.allow(
|
||||||
|
RegExp(r'^\d+(\.|\,)?\d{0,2}'),
|
||||||
|
),
|
||||||
|
],
|
||||||
hintText: '1000',
|
hintText: '1000',
|
||||||
placeholderTextStyle: TextStyle(
|
placeholderTextStyle: TextStyle(
|
||||||
color: Theme.of(context).primaryTextTheme.headline5!.color!,
|
color: Theme.of(context).primaryTextTheme.headline5!.color!,
|
||||||
fontWeight: FontWeight.w600,
|
fontWeight: FontWeight.w600,
|
||||||
fontSize: 36,
|
fontSize: 36,
|
||||||
),
|
),
|
||||||
prefixIcon: Text(
|
prefixIcon: Text(
|
||||||
'USD: ',
|
'USD: ',
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
fontWeight: FontWeight.w600,
|
fontWeight: FontWeight.w600,
|
||||||
fontSize: 36,
|
fontSize: 36,
|
||||||
),
|
|
||||||
),
|
),
|
||||||
|
),
|
||||||
textColor: Colors.white,
|
textColor: Colors.white,
|
||||||
textStyle: TextStyle(
|
textStyle: TextStyle(
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
fontSize: 36,
|
fontSize: 36,
|
||||||
),
|
),
|
||||||
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Divider(
|
Divider(
|
||||||
|
@ -136,7 +145,11 @@ class IoniaBuyGiftCardPage extends BasePage {
|
||||||
padding: const EdgeInsets.all(24.0),
|
padding: const EdgeInsets.all(24.0),
|
||||||
child: CardItem(
|
child: CardItem(
|
||||||
title: merchant.legalName,
|
title: merchant.legalName,
|
||||||
backgroundColor: Theme.of(context).accentTextTheme!.headline1!.backgroundColor!.withOpacity(0.1),
|
backgroundColor: Theme.of(context)
|
||||||
|
.accentTextTheme!
|
||||||
|
.headline1!
|
||||||
|
.backgroundColor!
|
||||||
|
.withOpacity(0.1),
|
||||||
discount: merchant.discount,
|
discount: merchant.discount,
|
||||||
titleColor: Theme.of(context).accentTextTheme!.headline1!.backgroundColor!,
|
titleColor: Theme.of(context).accentTextTheme!.headline1!.backgroundColor!,
|
||||||
subtitleColor: Theme.of(context).hintColor,
|
subtitleColor: Theme.of(context).hintColor,
|
||||||
|
|
Loading…
Reference in a new issue