|
@@ -16,14 +16,19 @@ class FConfigureInput extends FStatelessWidget {
|
|
|
/// 输入框文本输入
|
|
|
final ValueCallback? onChanged;
|
|
|
|
|
|
+ /// 只读
|
|
|
final bool? readOnly;
|
|
|
|
|
|
+ /// 禁用
|
|
|
+ final bool? enabled;
|
|
|
+
|
|
|
FConfigureInput({
|
|
|
this.hintText,
|
|
|
this.inputFormatters,
|
|
|
this.textController,
|
|
|
this.onChanged,
|
|
|
this.readOnly,
|
|
|
+ this.enabled,
|
|
|
});
|
|
|
|
|
|
@override
|
|
@@ -38,6 +43,7 @@ class FConfigureInput extends FStatelessWidget {
|
|
|
borderColor: Color(0xffdcdfe6),
|
|
|
onChanged: (value) => onChanged!(value),
|
|
|
readOnly: readOnly ?? false,
|
|
|
+ enabled: enabled ?? false,
|
|
|
controller: textController,
|
|
|
);
|
|
|
}
|