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

Error: LateInitializationError: Field 'contextCustom' has not been initialized #138

Closed
yc0524 opened this issue Jun 27, 2023 · 2 comments
Closed

Comments

@yc0524
Copy link

yc0524 commented Jun 27, 2023

版本信息

  • Flutter版本:v3.10.2
  • flutter_smart_dialog版本:4.9.1

描述bug/需求

直接调用demo报错
微信图片_20230627175918

问题demo

void _show() async {
    SmartDialog.show(builder: (_) {
      return Container(
        height: 80,
        width: `180,`
        decoration: BoxDecoration(
          color: Colors.black,
          borderRadius: BorderRadius.circular(10),
        ),
        alignment: Alignment.center,
        child: const Text(
          'easy custom dialog',
          style: TextStyle(color: Colors.white),
        ),
      );
    });
@yc0524 yc0524 closed this as completed Jun 27, 2023
@AnnaBershadska
Copy link

@yc0524 how did you solve it?

@xdd666t
Copy link
Member

xdd666t commented Jul 7, 2023

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

3 participants