We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
SmartDialog.show<T>
SmartDialog.show<T>指定范型为非空类型时,点击空白处关闭弹窗报错
E/flutter (30979): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: type 'Null' is not a subtype of type 'FutureOr<bool>' E/flutter (30979): #0 _AsyncCompleter.complete (dart:async/future_impl.dart:36:41) E/flutter (30979): #1 MainDialog._handleAwaitOver main_dialog.dart:183 E/flutter (30979): #2 MainDialog.dismiss main_dialog.dart:207 E/flutter (30979): <asynchronous suspension> E/flutter (30979): #3 CustomDialog._closeSingle custom_dialog.dart:396 E/flutter (30979): <asynchronous suspension>
void _show() async { SmartDialog.show<bool>(builder: (_) { // 添加范型并指定为bool return Container( height: 80, width: 180, decoration: BoxDecoration( color: Colors.black, borderRadius: BorderRadius.circular(10), ), alignment: Alignment.center, child: Text( 'easy custom dialog', style: TextStyle(color: Colors.white), ), ); }); }
The text was updated successfully, but these errors were encountered:
show<T>
showAttach<T>
Fix #105
84d09de
dependencies: flutter_smart_dialog: ^4.8.2+4
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
版本信息
描述bug
SmartDialog.show<T>
指定范型为非空类型时,点击空白处关闭弹窗报错问题demo
The text was updated successfully, but these errors were encountered: