mirror of
https://github.com/foss42/apidash.git
synced 2025-05-28 20:27:04 +08:00
Merge pull request #253 from opxdelwin/issue-252-updated
[feat] Implement Press Enter to Send Request in URL Input Field
This commit is contained in:
@ -7,11 +7,13 @@ class URLField extends StatelessWidget {
|
||||
required this.selectedId,
|
||||
this.initialValue,
|
||||
this.onChanged,
|
||||
this.onFieldSubmitted,
|
||||
});
|
||||
|
||||
final String selectedId;
|
||||
final String? initialValue;
|
||||
final void Function(String)? onChanged;
|
||||
final void Function(String)? onFieldSubmitted;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@ -29,6 +31,7 @@ class URLField extends StatelessWidget {
|
||||
border: InputBorder.none,
|
||||
),
|
||||
onChanged: onChanged,
|
||||
onFieldSubmitted: onFieldSubmitted,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user