Giter Site home page Giter Site logo

Comments (16)

shenchunxing avatar shenchunxing commented on June 1, 2024

class DPLoginPresenter extends BasePagePresenter {
Future login(String username, String password) async {
final Map<String, String> params = <String, String>{};
params['username'] = username;
params['saltType'] = '2';
return requestNetwork(
Method.post, url:HttpApi.getsalt,
params: params, onSuccess: (data) {
});
}

from flutter_deer.

simplezhli avatar simplezhli commented on June 1, 2024

加载视图有改动吗?或者有其他改动吗?

from flutter_deer.

shenchunxing avatar shenchunxing commented on June 1, 2024

加载视图有改动吗?或者有其他改动吗?

什么都没改动的,我也觉得很奇怪,查看了传入的context也是保持一致的,我这么使用应该是没问题的吧。刚入手flutter。

from flutter_deer.

shenchunxing avatar shenchunxing commented on June 1, 2024

加载视图有改动吗?或者有其他改动吗?

closeprogress里面的调用Navigator.of(context).pop.这个执行了的,还是无法关闭加载视图。这个和使用的路由框架么关系的吧,我用的是flutter_boost的。

from flutter_deer.

simplezhli avatar simplezhli commented on June 1, 2024

加载视图有改动吗?或者有其他改动吗?

closeprogress里面的调用Navigator.of(context).pop.这个执行了的,还是无法关闭加载视图。这个和使用的路由框架么关系的吧,我用的是flutter_boost的。

如果使用了flutter_boost,路由操作就需要使用BoostNavigator API。具体使用你可以看它的文档。

from flutter_deer.

shenchunxing avatar shenchunxing commented on June 1, 2024

加载视图有改动吗?或者有其他改动吗?

closeprogress里面的调用Navigator.of(context).pop.这个执行了的,还是无法关闭加载视图。这个和使用的路由框架么关系的吧,我用的是flutter_boost的。

如果使用了flutter_boost,路由操作就需要使用BoostNavigator API。具体使用你可以看它的文档。

因为我是在登录页进行的操作,没有涉及到路由跳转,不是路由的原因。我试了还是关不了

from flutter_deer.

shenchunxing avatar shenchunxing commented on June 1, 2024

Uploading 截屏2022-11-19 13.06.34.png…

from flutter_deer.

shenchunxing avatar shenchunxing commented on June 1, 2024

_login() async {
_loginPresenter.login(_unameController.text,_pwdController.text);
}
这是调用的代码,不知道哪里不对

from flutter_deer.

simplezhli avatar simplezhli commented on June 1, 2024

建议你还是仔细阅读flutter_boost的文档,这里不解答其他框架的使用问题。如果你去除了flutter_boost后有同样的问题,欢迎反馈。

from flutter_deer.

shenchunxing avatar shenchunxing commented on June 1, 2024

建议你还是仔细阅读flutter_boost的文档,这里不解答其他框架的使用问题。如果你去除了flutter_boost后有同样的问题,欢迎反馈。

不是,我的意思是这个不是flutter_boost导致的问题,我这边的这个页面是第一个页面,不存在push和pop,就是点击了登录按钮,进行了登录接口的操作,会展示toast,但是接口调用结束,还是关闭不了该toast。

from flutter_deer.

shenchunxing avatar shenchunxing commented on June 1, 2024

代码我发你邮箱?,可以麻烦给我看下吗?

from flutter_deer.

simplezhli avatar simplezhli commented on June 1, 2024

我已经说了是flutter_boost的问题导致dialog无法正常关闭,如果你知道它的原理你就明白我的意思了,你可以去它的项目下面问如何处理,不要在错误的方向上纠结了。

from flutter_deer.

simplezhli avatar simplezhli commented on June 1, 2024

@shenchunxing 帮你看了一下代码,flutter_boost配置有问题。。。你仔细看一下文档:https://github.com/alibaba/flutter_boost/blob/master/docs/install.md#dart部分

Widget appBuilder(Widget home) {
    return MaterialApp(
      home: home,
      debugShowCheckedModeBanner: true,

      ///必须加上builder参数,否则showDialog等会出问题
      builder: (_, __) {
        return home;
      },
    );
  }

加上就好了。。。

from flutter_deer.

shenchunxing avatar shenchunxing commented on June 1, 2024

from flutter_deer.

simplezhli avatar simplezhli commented on June 1, 2024

个人精力有限,不解答此项目外的使用问题,下不为例。🤝

from flutter_deer.

shenchunxing avatar shenchunxing commented on June 1, 2024

from flutter_deer.

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.