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

关于使用SmartDialog以后,调试变得困难的问题。 #109

Closed
popopopdcvvbf opened this issue Feb 16, 2023 · 3 comments
Closed
Assignees

Comments

@popopopdcvvbf
Copy link

popopopdcvvbf commented Feb 16, 2023

版本信息

  • Flutter版本:3.3.8
  • flutter_smart_dialog版本:^4.8.2+3

描述bug/需求

准确来说不是bug,
我在用AS开发过程中有经常使用Flutter Performance工具栏的Show Debug Paint。
image
正因为在MaterialApp的build中让Smartdialog.init进行了接管,导致每次Show Debug Paint都会有一层蒙版遮盖出现,让我调试会有很大的问题。
image

@the6nnoo
Copy link

切换大号关注一下

@xdd666t xdd666t self-assigned this Feb 17, 2023
xdd666t added a commit that referenced this issue Feb 18, 2023
@xdd666t
Copy link
Member

xdd666t commented Feb 18, 2023

因为弹窗的相关优先级的处理(toast,loading),就目前内部实现来说,有点无解(无法在内部无感去解决)

  • 只能折中了,需要更新下版本
dependencies:
  flutter_smart_dialog: ^4.8.2+5
  • 这边提供了参数,可以让你比较方便的关闭SmartDialog功能(只在debug模式下起效,release自动失效,防止你忘了调回去)
void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: SmartDialogPage(),
      builder: FlutterSmartDialog.init(
        // 需要 'show debug paint' 的时候,设置为true
        useDebugModel: true,
      ),
    );
  }
}

@xdd666t
Copy link
Member

xdd666t commented May 19, 2024

  • 这个问题已经彻底解决,可以试下新版本,同时废弃也不需要useDebugModel参数了
dependencies:
  flutter_smart_dialog: ^4.9.7

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