mirror of
https://github.com/foss42/apidash.git
synced 2025-08-06 13:51:20 +08:00
Update textfield_outlined.dart
This commit is contained in:
@ -5,6 +5,7 @@ class ADOutlinedTextField extends StatelessWidget {
|
|||||||
const ADOutlinedTextField({
|
const ADOutlinedTextField({
|
||||||
super.key,
|
super.key,
|
||||||
this.keyId,
|
this.keyId,
|
||||||
|
this.controller,
|
||||||
this.readOnly = false,
|
this.readOnly = false,
|
||||||
this.enabled,
|
this.enabled,
|
||||||
this.maxLines = 1,
|
this.maxLines = 1,
|
||||||
@ -25,6 +26,7 @@ class ADOutlinedTextField extends StatelessWidget {
|
|||||||
});
|
});
|
||||||
|
|
||||||
final String? keyId;
|
final String? keyId;
|
||||||
|
final TextEditingController? controller;
|
||||||
final bool readOnly;
|
final bool readOnly;
|
||||||
final bool? enabled;
|
final bool? enabled;
|
||||||
final int? maxLines;
|
final int? maxLines;
|
||||||
@ -48,6 +50,7 @@ class ADOutlinedTextField extends StatelessWidget {
|
|||||||
var clrScheme = colorScheme ?? Theme.of(context).colorScheme;
|
var clrScheme = colorScheme ?? Theme.of(context).colorScheme;
|
||||||
return TextFormField(
|
return TextFormField(
|
||||||
key: keyId != null ? Key(keyId!) : null,
|
key: keyId != null ? Key(keyId!) : null,
|
||||||
|
controller: controller,
|
||||||
readOnly: readOnly,
|
readOnly: readOnly,
|
||||||
enabled: enabled,
|
enabled: enabled,
|
||||||
maxLines: maxLines,
|
maxLines: maxLines,
|
||||||
|
Reference in New Issue
Block a user