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

LateInitializationError: Field 'contextCustom' has not been initialized. EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK #217

Open
TK9404 opened this issue Sep 11, 2024 · 1 comment

Comments

@TK9404
Copy link

TK9404 commented Sep 11, 2024

Version Information

  • Flutter version: 3.24.1
  • flutter_smart_dialog version: ^4.9.7+7

Describe the bug/requirement

EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK in integration test on attempt to open smart dialogue

Problem demo

══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞════════════════════════════════════════════════════
The following LateError was thrown running a test:
LateInitializationError: Field 'contextCustom' has not been initialized.
When the exception was thrown, this was the stack:
#0 DialogProxy.contextCustom (package:flutter_smart_dialog/src/helper/dialog_proxy.dart)
#1 DialogProxy.timelyContextCustom (package:flutter_smart_dialog/src/helper/dialog_proxy.dart:66:50)
#2 CustomDialog._pushDialog. (package:flutter_smart_dialog/src/custom/custom_dialog.dart:266:25)
#3 ViewUtils.addSafeUse (package:flutter_smart_dialog/src/kit/view_utils.dart:10:15)
#4 CustomDialog._pushDialog (package:flutter_smart_dialog/src/custom/custom_dialog.dart:264:15)
#5 CustomDialog._handleMustOperate (package:flutter_smart_dialog/src/custom/custom_dialog.dart:246:7)
#6 CustomDialog.show (package:flutter_smart_dialog/src/custom/custom_dialog.dart:53:24)
#7 DialogProxy.show (package:flutter_smart_dialog/src/helper/dialog_proxy.dart:139:19)

@xdd666t
Copy link
Member

xdd666t commented Sep 16, 2024

  • Try the new version
dependencies:
  flutter_smart_dialog: ^4.9.8+2

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

2 participants