An open-source cross-platform alternative to AirDrop
feat: add a Cancel button to the device name dialog (#3609)
Shlomoa1bb8e4c5a78
diff --git a/app/lib/widget/dialogs/text_field_with_actions.dart b/app/lib/widget/dialogs/text_field_with_actions.dartindex b0e56f51..b74b5826 100644--- a/app/lib/widget/dialogs/text_field_with_actions.dart+++ b/app/lib/widget/dialogs/text_field_with_actions.dart@@ -69,6 +69,10 @@ class _TextFieldWithActionsState extends State<TextFieldWithActions> {],),actions: [+ TextButton(+ onPressed: () => dialogContext.pop(),+ child: Text(t.general.cancel),+ ),ValueListenableBuilder<TextEditingValue>(valueListenable: widget.controller,builder: (context, value, child) => ElevatedButton(