cursor position change when click in flutter textfield in samsung devices code example
Example: flutter textfield cursor position
controller.text = someString;
controller.selection = TextSelection.fromPosition(TextPosition(offset: controller.text.length));