-
Notifications
You must be signed in to change notification settings - Fork 349
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
Getting error like 'dart:ui/painting.dart': Failed assertion: line 1147: '<optimized out>': is not true. #120
Comments
Hi could you show your flutter doctor info. Which flutter channel and version you're using. |
Hi thanks for prompt response. Error has gone after change the code with below. PinCodeTextField( Flutter doctorDoctor summary (to see all details, run flutter doctor -v): [✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2) |
Glad to hear it. Which change solved the error? |
Solution to the problem. |
Changing |
Caused by Check in this order |
Yeah sounds like a good idea! The recent update looks a bit inconsistent which is causing this error. |
When i migrate to latest version, i getting this error continuously in the logs like infinite. Below is my code.
PinCodeTextField( appContext: context, length: 6, pinTheme: PinTheme( shape: PinCodeFieldShape.box, borderRadius: BorderRadius.circular(10), borderWidth: 1, fieldWidth: SizeConfig.widthMultiplier * 12, fieldHeight: SizeConfig.widthMultiplier * 12, activeColor: Colors.black87, selectedColor: AppTheme.btnGreen, inactiveColor: Colors.grey[300], ), textStyle: TextStyle(fontSize: 14,fontWeight: FontWeight.normal), onChanged: (value){ print(value); setState(() { smsPinEntered = false; smsPin = value; }); }, onCompleted: (status){ print("Completed :$status"); setState(() { smsPinEntered = true; }); }, beforeTextPaste: (text) { print("Allowing to paste $text"); //if you return true then it will show the paste confirmation dialog. Otherwise if false, then nothing will happen. //but you can show anything you want here, like your pop up saying wrong paste format or etc return true; } )
The text was updated successfully, but these errors were encountered: