mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-11-11 08:44:02 +01:00
Flutter upgrade
This commit is contained in:
@@ -7,7 +7,7 @@ class BaseTextFormField extends StatelessWidget {
|
||||
this.keyboardType = TextInputType.text,
|
||||
this.textInputAction = TextInputAction.done,
|
||||
this.textAlign = TextAlign.start,
|
||||
this.autovalidate = false,
|
||||
this.autovalidateMode,
|
||||
this.hintText = '',
|
||||
this.maxLines = 1,
|
||||
this.inputFormatters,
|
||||
@@ -29,30 +29,30 @@ class BaseTextFormField extends StatelessWidget {
|
||||
this.initialValue,
|
||||
this.borderWidth = 1.0});
|
||||
|
||||
final TextEditingController controller;
|
||||
final TextInputType keyboardType;
|
||||
final TextInputAction textInputAction;
|
||||
final TextEditingController? controller;
|
||||
final TextInputType? keyboardType;
|
||||
final TextInputAction? textInputAction;
|
||||
final TextAlign textAlign;
|
||||
final bool autovalidate;
|
||||
final String hintText;
|
||||
final int maxLines;
|
||||
final List<TextInputFormatter> inputFormatters;
|
||||
final Color textColor;
|
||||
final Color hintColor;
|
||||
final Color borderColor;
|
||||
final Widget prefix;
|
||||
final Widget prefixIcon;
|
||||
final Widget suffix;
|
||||
final Widget suffixIcon;
|
||||
final bool enabled;
|
||||
final FormFieldValidator<String> validator;
|
||||
final TextStyle placeholderTextStyle;
|
||||
final TextStyle textStyle;
|
||||
final int maxLength;
|
||||
final FocusNode focusNode;
|
||||
final AutovalidateMode? autovalidateMode;
|
||||
final String? hintText;
|
||||
final int? maxLines;
|
||||
final List<TextInputFormatter>? inputFormatters;
|
||||
final Color? textColor;
|
||||
final Color? hintColor;
|
||||
final Color? borderColor;
|
||||
final Widget? prefix;
|
||||
final Widget? prefixIcon;
|
||||
final Widget? suffix;
|
||||
final Widget? suffixIcon;
|
||||
final bool? enabled;
|
||||
final FormFieldValidator<String>? validator;
|
||||
final TextStyle? placeholderTextStyle;
|
||||
final TextStyle? textStyle;
|
||||
final int? maxLength;
|
||||
final FocusNode? focusNode;
|
||||
final bool readOnly;
|
||||
final bool enableInteractiveSelection;
|
||||
final String initialValue;
|
||||
final bool? enableInteractiveSelection;
|
||||
final String? initialValue;
|
||||
final double borderWidth;
|
||||
|
||||
@override
|
||||
@@ -66,7 +66,7 @@ class BaseTextFormField extends StatelessWidget {
|
||||
keyboardType: keyboardType,
|
||||
textInputAction: textInputAction,
|
||||
textAlign: textAlign,
|
||||
autovalidate: autovalidate,
|
||||
autovalidateMode: autovalidateMode,
|
||||
maxLines: maxLines,
|
||||
inputFormatters: inputFormatters,
|
||||
enabled: enabled,
|
||||
@@ -75,7 +75,7 @@ class BaseTextFormField extends StatelessWidget {
|
||||
TextStyle(
|
||||
fontSize: 16.0,
|
||||
color:
|
||||
textColor ?? Theme.of(context).primaryTextTheme.title.color),
|
||||
textColor ?? Theme.of(context).primaryTextTheme!.headline6!.color!),
|
||||
decoration: InputDecoration(
|
||||
prefix: prefix,
|
||||
prefixIcon: prefixIcon,
|
||||
@@ -89,17 +89,17 @@ class BaseTextFormField extends StatelessWidget {
|
||||
focusedBorder: UnderlineInputBorder(
|
||||
borderSide: BorderSide(
|
||||
color: borderColor ??
|
||||
Theme.of(context).primaryTextTheme.title.backgroundColor,
|
||||
Theme.of(context).primaryTextTheme!.headline6!.backgroundColor!,
|
||||
width: borderWidth)),
|
||||
disabledBorder: UnderlineInputBorder(
|
||||
borderSide: BorderSide(
|
||||
color: borderColor ??
|
||||
Theme.of(context).primaryTextTheme.title.backgroundColor,
|
||||
Theme.of(context).primaryTextTheme!.headline6!.backgroundColor!,
|
||||
width: borderWidth)),
|
||||
enabledBorder: UnderlineInputBorder(
|
||||
borderSide: BorderSide(
|
||||
color: borderColor ??
|
||||
Theme.of(context).primaryTextTheme.title.backgroundColor,
|
||||
Theme.of(context).primaryTextTheme!.headline6!.backgroundColor!,
|
||||
width: borderWidth))),
|
||||
validator: validator,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user