mirror of
https://github.com/foss42/apidash.git
synced 2025-12-02 18:57:05 +08:00
feat: add readOnly and obscureText properties to EnvironmentTriggerField
This commit is contained in:
@@ -58,8 +58,11 @@ class _AuthFieldState extends State<EnvAuthField> {
|
||||
const SizedBox(height: 6),
|
||||
EnvironmentTriggerField(
|
||||
keyId: "auth-${widget.title ?? widget.hintText}-${Random.secure()}",
|
||||
onChanged: widget.readOnly ? null : widget.onChanged,
|
||||
onChanged: widget.onChanged,
|
||||
initialValue: widget.initialValue,
|
||||
readOnly: widget.readOnly,
|
||||
// TODO: Needs some new implementation
|
||||
// obscureText: widget.isObscureText,
|
||||
style: kCodeStyle.copyWith(
|
||||
color: Theme.of(context).colorScheme.onSurface,
|
||||
fontSize: Theme.of(context).textTheme.bodyMedium?.fontSize,
|
||||
|
||||
Reference in New Issue
Block a user