From debd3b6725463b138b828cd4dfada4598ed0c1f7 Mon Sep 17 00:00:00 2001 From: phuoc Date: Fri, 20 Oct 2023 16:53:24 +0700 Subject: [PATCH] remove set cursor when build textfield Signed-off-by: phuoc --- lib/screen/onboarding/import_address/import_seeds.dart | 5 ----- lib/view/au_text_field.dart | 2 -- 2 files changed, 7 deletions(-) diff --git a/lib/screen/onboarding/import_address/import_seeds.dart b/lib/screen/onboarding/import_address/import_seeds.dart index 93120de33..09691da6a 100644 --- a/lib/screen/onboarding/import_address/import_seeds.dart +++ b/lib/screen/onboarding/import_address/import_seeds.dart @@ -27,11 +27,6 @@ class _ImportSeedsPageState extends State { final TextEditingController _phraseTextController = TextEditingController(); bool _isSubmissionEnabled = false; - @override - void initState() { - super.initState(); - } - @override Widget build(BuildContext context) { return Scaffold( diff --git a/lib/view/au_text_field.dart b/lib/view/au_text_field.dart index 01f477677..c7b3e8c3e 100644 --- a/lib/view/au_text_field.dart +++ b/lib/view/au_text_field.dart @@ -49,8 +49,6 @@ class AuTextField extends StatelessWidget { Widget build(BuildContext context) { final theme = Theme.of(context); final isEmpty = controller.text.isEmpty; - controller.selection = - TextSelection.collapsed(offset: controller.text.length); return Semantics( label: labelSemantics, child: Container(