Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cursor offset error #80

Closed
tologonkudaiberdiuulu opened this issue Mar 3, 2022 · 1 comment
Closed

Cursor offset error #80

tologonkudaiberdiuulu opened this issue Mar 3, 2022 · 1 comment

Comments

@tologonkudaiberdiuulu
Copy link

Please fix cursor offset when deleting if for trailingSymbol was given string with length more than one. It's jumping to left after every delete symbol.

E.g code:
`
import 'package:flutter/material.dart';
import 'package:flutter_multi_formatter/flutter_multi_formatter.dart';

class Test extends StatelessWidget {
const Test({Key? key}) : super(key: key);

@OverRide
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('Test'),
),
body: Form(
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 20),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
TextFormField(
inputFormatters: [
MoneyInputFormatter(
thousandSeparator: ThousandSeparator.SpaceAndPeriodMantissa,
trailingSymbol: ' USD',
),
],
textAlign: TextAlign.center,
),
const SizedBox(height: 40),
SizedBox(
height: 50,
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 40),
child: ElevatedButton(
child: const Text('Tap'),
onPressed: () {
},
),
),
)
],
),
),
),
);
}
}
`

Type any big value. Say, 123123123. My cursor standing after third 3. After deleting 3, my cursor jumps to between third 1 and 2 rather than just deleting 3 and staying at last position after 2.

@WingCH
Copy link

WingCH commented May 18, 2022

same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants