mirror of
https://github.com/foss42/apidash.git
synced 2025-06-04 01:13:30 +08:00
fix: widthFactor 1 for urlfield
This commit is contained in:
@ -13,6 +13,7 @@ class EnvironmentTriggerField extends StatefulWidget {
|
||||
this.onFieldSubmitted,
|
||||
this.style,
|
||||
this.decoration,
|
||||
this.optionsWidthFactor,
|
||||
});
|
||||
|
||||
final String keyId;
|
||||
@ -21,6 +22,7 @@ class EnvironmentTriggerField extends StatefulWidget {
|
||||
final void Function(String)? onFieldSubmitted;
|
||||
final TextStyle? style;
|
||||
final InputDecoration? decoration;
|
||||
final double? optionsWidthFactor;
|
||||
|
||||
@override
|
||||
State<EnvironmentTriggerField> createState() =>
|
||||
@ -62,7 +64,7 @@ class _EnvironmentTriggerFieldState extends State<EnvironmentTriggerField> {
|
||||
key: Key(widget.keyId),
|
||||
textEditingController: controller,
|
||||
focusNode: focusNode,
|
||||
optionsWidthFactor: null,
|
||||
optionsWidthFactor: widget.optionsWidthFactor,
|
||||
autocompleteTriggers: [
|
||||
AutocompleteTrigger(
|
||||
trigger: '{',
|
||||
|
@ -33,6 +33,7 @@ class EnvURLField extends StatelessWidget {
|
||||
),
|
||||
onChanged: onChanged,
|
||||
onFieldSubmitted: onFieldSubmitted,
|
||||
optionsWidthFactor: 1,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user