CAKE-28 | reworked exchange confirm page; applied light and dark themes to exchange confirm page, currency picker, picker, base alert dialog, alert with one action; applied maximum characters parameter to crypto currency text field in the exchange card

This commit is contained in:
Oleksandr Sobol 2020-08-25 21:12:14 +03:00
parent 40aeacfb4b
commit ecf7a5ba78
15 changed files with 404 additions and 341 deletions

View file

@ -21,7 +21,8 @@ class BaseTextFormField extends StatelessWidget {
this.enabled = true,
this.validator,
this.textStyle,
this.placeholderTextStyle});
this.placeholderTextStyle,
this.maxLength});
final TextEditingController controller;
final TextInputType keyboardType;
@ -42,6 +43,7 @@ class BaseTextFormField extends StatelessWidget {
final FormFieldValidator<String> validator;
final TextStyle placeholderTextStyle;
final TextStyle textStyle;
final int maxLength;
@override
Widget build(BuildContext context) {
@ -54,6 +56,7 @@ class BaseTextFormField extends StatelessWidget {
maxLines: maxLines,
inputFormatters: inputFormatters,
enabled: enabled,
maxLength: maxLength,
style: textStyle ?? TextStyle(
fontSize: 16.0,
color: textColor ?? Theme.of(context).primaryTextTheme.title.color),