Comments (6)
The workaround that worked for me was keeping the input value not empty.
- Use a controller to always make sure there is a space in the input value:
TextEditingController controller = TextEditingController();
- Set the value in initState:
void initState() {
controller.text = " ";
}
- Make sure it won't be empty by adding the following in the
onChanged
function from thePinCodeTextField
widget:
onChanged: (String value) {
if(value.isEmpty) {
controller.text = " ";
}
}
from pin_code_fields.
I'm experiencing the same error when using 2.3.0+3
Can confirm that keyboard input on web works for version 2.3.0+2
, so it looks like 2.3.0+3
introduced the breaking change.
@Fluics for the time being, you can specify pin_code_fields: 2.3.0+2
in your pubspec.yaml
from pin_code_fields.
Hello guys, I'm on vacation right now. I've not tested on web yet. I'll check next week hopefully.
from pin_code_fields.
I'm currently using the latest version 3.0.1
with Chrome and the keyboard doesn't work. Is web support planned or in progress?
from pin_code_fields.
Have to note, the space gets removed again by adding the following to the inputFormatters
parameter of the PinCodeTextField
widget:
BlacklistingTextInputFormatter(new RegExp('[ ]'))
This makes sure the input doesn't overflow. However this fix doesn't work for Chrome on Android. It starts bugging on third char.
from pin_code_fields.
Added support for Flutter-web!
from pin_code_fields.
Related Issues (20)
- pub.dev version is causing errors HOT 1
- Add errorText String as a parameter of PinCodeTextField constructor HOT 1
- how to clear otp HOT 2
- Border radius does not work with Underline shape HOT 1
- Looking up a deactivated widget's ancestor is unsafe.
- How can it inspected with Appium and try to automate entering numbers in the field HOT 2
- Feature Request: Custom decorations for the TextFields HOT 1
- Bug: Wrong code prefix for Italy
- Change space between pins HOT 1
- Cursor animation HOT 1
- same issue with flutter version3.10.2 HOT 1
- Pincode field box flickers when moving to next box HOT 1
- If the keyboard is dimissed it never shows again even on tap! HOT 1
- How to change `helperStyle` for "Enter X digits code" text for Dark Background? HOT 3
- Prefix text look HOT 1
- fill color with input is taking app theme. HOT 1
- Flutter integration Test Hangs with `pumpAndSettle()` when using `PinCodeTextField` HOT 3
- PinCodeFieldShape.circle how add custom radius
- Unable to Input text using Selenium for automation HOT 1
- How to change focus by click HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pin_code_fields.