Skip to content

LateInitializationError: Field 'paintingOrderList' has not been initialized. #27

@harryhasai

Description

@harryhasai

首次使用, 使用场景如下:
在弹窗里加了个ConstraintLayout, 弹窗使用的是SmartDialog,代码如下:
Future<bool?> showUContractEnableDialog() {
// var centerLine = cId("centerLine");
return SmartDialog.show(
alignment: Alignment.center,
builder: (context) {
return Container(
width: double.infinity,
height: 300,
margin: const EdgeInsets.only(left: 54, right: 54),
padding: const EdgeInsets.only(left: 17, right: 17),
decoration: BoxDecoration(
color: ColorStyle.minePageCardBg,
borderRadius: BorderRadius.circular(9)),
child: ConstraintLayout(
// width: matchParent,
// height: wrapContent,

 children: [ Text( "阿达斯大所大多", style: TextStyle(fontSize: 15), ).applyConstraint( // id: centerLine, left: parent.left, right: parent.right, ), ], ), ); }, 

);
}

出现如下报错:
image

请问一下大佬如何解决这个问题

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