mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-03-20 22:28:46 +00:00
feat: improve address page txt field
This commit is contained in:
parent
256c48d61a
commit
0a30e6d9e1
1 changed files with 73 additions and 79 deletions
|
@ -12,7 +12,8 @@ class CurrencyInputField extends StatelessWidget {
|
||||||
required this.onTapPicker,
|
required this.onTapPicker,
|
||||||
required this.selectedCurrency,
|
required this.selectedCurrency,
|
||||||
this.focusNode,
|
this.focusNode,
|
||||||
required this.controller, required this.isLight,
|
required this.controller,
|
||||||
|
required this.isLight,
|
||||||
});
|
});
|
||||||
|
|
||||||
final Function() onTapPicker;
|
final Function() onTapPicker;
|
||||||
|
@ -28,14 +29,11 @@ class CurrencyInputField extends StatelessWidget {
|
||||||
color: Theme.of(context).extension<DashboardPageTheme>()!.textColor,
|
color: Theme.of(context).extension<DashboardPageTheme>()!.textColor,
|
||||||
height: 8,
|
height: 8,
|
||||||
);
|
);
|
||||||
final _width = MediaQuery.of(context).size.width;
|
|
||||||
|
|
||||||
return Column(
|
return SizedBox(
|
||||||
children: [
|
height: 42,
|
||||||
Padding(
|
child: Align(
|
||||||
padding: EdgeInsets.only(top: 20),
|
alignment: Alignment.center,
|
||||||
child: SizedBox(
|
|
||||||
height: 40,
|
|
||||||
child: BaseTextFormField(
|
child: BaseTextFormField(
|
||||||
focusNode: focusNode,
|
focusNode: focusNode,
|
||||||
controller: controller,
|
controller: controller,
|
||||||
|
@ -53,11 +51,7 @@ class CurrencyInputField extends StatelessWidget {
|
||||||
textStyle: TextStyle(
|
textStyle: TextStyle(
|
||||||
color: Theme.of(context).extension<DashboardPageTheme>()!.textColor,
|
color: Theme.of(context).extension<DashboardPageTheme>()!.textColor,
|
||||||
),
|
),
|
||||||
prefixIcon: Padding(
|
prefixIcon: Container(
|
||||||
padding: EdgeInsets.only(
|
|
||||||
left: _width / 4,
|
|
||||||
),
|
|
||||||
child: Container(
|
|
||||||
padding: EdgeInsets.only(right: 8),
|
padding: EdgeInsets.only(right: 8),
|
||||||
child: InkWell(
|
child: InkWell(
|
||||||
onTap: onTapPicker,
|
onTap: onTapPicker,
|
||||||
|
@ -82,7 +76,8 @@ class CurrencyInputField extends StatelessWidget {
|
||||||
padding: const EdgeInsets.only(right: 3.0),
|
padding: const EdgeInsets.only(right: 3.0),
|
||||||
child: Container(
|
child: Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: Theme.of(context).extension<SendPageTheme>()!.textFieldButtonColor,
|
color:
|
||||||
|
Theme.of(context).extension<SendPageTheme>()!.textFieldButtonColor,
|
||||||
borderRadius: BorderRadius.all(
|
borderRadius: BorderRadius.all(
|
||||||
Radius.circular(6),
|
Radius.circular(6),
|
||||||
),
|
),
|
||||||
|
@ -93,14 +88,16 @@ class CurrencyInputField extends StatelessWidget {
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
color: Theme.of(context).extension<SendPageTheme>()!.textFieldButtonIconColor,
|
color: Theme.of(context)
|
||||||
|
.extension<SendPageTheme>()!
|
||||||
|
.textFieldButtonIconColor,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.only(bottom: 3.0),
|
padding: const EdgeInsets.only(bottom: 4.0),
|
||||||
child: Text(
|
child: Text(
|
||||||
':',
|
':',
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
|
@ -115,9 +112,6 @@ class CurrencyInputField extends StatelessWidget {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue