From 2abb709f9b1f084cda23d0df19ebe35893af86b2 Mon Sep 17 00:00:00 2001 From: Dane Madsen Date: Wed, 24 Apr 2024 16:33:27 +1000 Subject: [PATCH] url setState --- lib/ui/mobile/widgets/parameter_widgets/url_parameter.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ui/mobile/widgets/parameter_widgets/url_parameter.dart b/lib/ui/mobile/widgets/parameter_widgets/url_parameter.dart index d2ccc1bb..4fd8c618 100644 --- a/lib/ui/mobile/widgets/parameter_widgets/url_parameter.dart +++ b/lib/ui/mobile/widgets/parameter_widgets/url_parameter.dart @@ -26,7 +26,9 @@ class _UrlParameterState extends State { onPressed: () async { final model = context.read().model; await model.resetUri(); - controller.text = model.uri; + setState(() { + controller.text = model.uri; + }); }, icon: const Icon(Icons.refresh), ),