Skip to content

Getting error like 'dart:ui/painting.dart': Failed assertion: line 1147: '<optimized out>': is not true. #120

Description

@sureace

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; } )

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions