Code Monkey home page Code Monkey logo

Comments (8)

smileShirely avatar smileShirely commented on May 22, 2024

@cuocuo enable 传入 false就可以了

from flutter_ume.

cuocuo avatar cuocuo commented on May 22, 2024

@smileShirely 你说的是初始化的时候,我指的是没一个独立的页面可以主动隐藏。

from flutter_ume.

smileShirely avatar smileShirely commented on May 22, 2024

@cuocuo 可以参考下本仓库中示例工程中的代码:example/lib/main.dart

runApp(MultiProvider(
  providers: [
    ChangeNotifierProvider(
      create: (_) => UMESwitch(),
    ),
  ],
  builder: (ctx, child) {
    return injectUMEWidget(
      child: MyApp(),
      enable: ctx.watch<UMESwitch>().enable,
    );
  },
));

这段代码示例使用了 Provider 进行状态管理,当点击 example 右上角的 icon 按钮后,将切换 enable 状态,移除 UME

from flutter_ume.

cuocuo avatar cuocuo commented on May 22, 2024

@smileShirely 谢谢你详细的回答!这个就关闭了整个调试浮窗。而我的意思是调试浮窗点开之后我再点击某一个调试工具,然后在如何在这个页面点击了一个按钮就隐藏了这个单独的页面,并且回到了浮窗的初始状态。

from flutter_ume.

smileShirely avatar smileShirely commented on May 22, 2024

@cuocuo 明白了你的意思。点开单个调试工具之后,圆形浮窗仍然在屏幕上,再次点击该浮窗即可关闭当前调试工具

from flutter_ume.

cuocuo avatar cuocuo commented on May 22, 2024

@cuocuo 明白了你的意思。点开单个调试工具之后,圆形浮窗仍然在屏幕上,再次点击该浮窗即可关闭当前调试工具

可以开放代码关闭吗?

from flutter_ume.

smileShirely avatar smileShirely commented on May 22, 2024

@cuocuo 建议已采纳,近期改造

from flutter_ume.

cuocuo avatar cuocuo commented on May 22, 2024

你好!请问新版本有加入控制的代码吗?

from flutter_ume.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.