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