|
@@ -78,6 +78,8 @@ class FBorderInput extends StatelessWidget implements FWidget {
|
|
|
this.enableInteractiveSelection,
|
|
|
this.textInputAction,
|
|
|
this.onSubmitted,
|
|
|
+ this.textStyle,
|
|
|
+ this.hintStyle,
|
|
|
}) : super(key: key);
|
|
|
|
|
|
final TextEditingController? controller;
|
|
@@ -103,6 +105,8 @@ class FBorderInput extends StatelessWidget implements FWidget {
|
|
|
final TextInputAction? textInputAction;
|
|
|
final ValueChanged? onSubmitted;
|
|
|
final EdgeInsetsGeometry? margin;
|
|
|
+ final TextStyle? textStyle;
|
|
|
+ final TextStyle? hintStyle;
|
|
|
|
|
|
@override
|
|
|
Widget build(BuildContext context) {
|
|
@@ -119,7 +123,7 @@ class FBorderInput extends StatelessWidget implements FWidget {
|
|
|
final decoration = InputDecoration(
|
|
|
hintText: hintText,
|
|
|
hintStyle: hintText != null
|
|
|
- ? TextStyle(color: Colors.grey, fontSize: hintSize)
|
|
|
+ ? hintStyle ?? TextStyle(color: Colors.grey, fontSize: hintSize)
|
|
|
: null,
|
|
|
filled: fillColor != null || enabled == false,
|
|
|
fillColor: enabled == false ? Colors.grey[100]! : fillColor,
|
|
@@ -156,7 +160,8 @@ class FBorderInput extends StatelessWidget implements FWidget {
|
|
|
textInputAction: textInputAction,
|
|
|
onSubmitted: onSubmitted,
|
|
|
obscuringCharacter: '・',
|
|
|
- style: TextStyle(color: FInput.txtColor, fontSize: contentSize),
|
|
|
+ style:
|
|
|
+ textStyle ?? TextStyle(color: FInput.txtColor, fontSize: contentSize),
|
|
|
);
|
|
|
// ignore: sized_box_for_whitespace
|
|
|
final result = Container(
|