Skip to content

Commit

Permalink
Unselect all text field
Browse files Browse the repository at this point in the history
  • Loading branch information
lazyrainynight committed Nov 10, 2021
1 parent a0238bb commit f1b8be9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/shared/SystemConsts.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
mixin SystemConsts {
static String version = '1.0.3';
static String version = '1.0.4';
}
1 change: 1 addition & 0 deletions lib/shared/my_converter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ class _MyConverterState extends State<MyConverter> {
border: const OutlineInputBorder(),
),
onTap: () {
clearSelection();
txtValue.selection = TextSelection(baseOffset: 0, extentOffset: txtValue.value.text.length);
},
onChanged: (t) {
Expand Down

0 comments on commit f1b8be9

Please sign in to comment.