美文网首页
2019-05-02

2019-05-02

作者: 一_贫 | 来源:发表于2019-05-02 23:24 被阅读0次

    dart基础

    https://www.jianshu.com/p/06aebcad0543

    fish-redux

    https://ejin66.github.io/2019/04/09/fish-redux.html

    登录跳转

      if (user == null) {
        return MaterialApp(
          title: 'Fluro',
          debugShowCheckedModeBanner: false,
          theme: ThemeData(
            primarySwatch: Colors.red,
          ),
          home: routes.buildPage('login', null),
          onGenerateRoute: (RouteSettings settings) {
            return MaterialPageRoute<Object>(builder: (BuildContext context) {
              return routes.buildPage(settings.name, settings.arguments);
            });
          },
        );
      } else {
        return MaterialApp(
          title: 'Fluro',
          debugShowCheckedModeBanner: false,
          theme: ThemeData(
            primarySwatch: Colors.red,
          ),
          home: routes.buildPage('home', null),
          onGenerateRoute: (RouteSettings settings) {
            return MaterialPageRoute<Object>(builder: (BuildContext context) {
              return routes.buildPage(settings.name, settings.arguments);
            });
          },
        );
      }
    

    相关文章

      网友评论

          本文标题:2019-05-02

          本文链接:https://www.haomeiwen.com/subject/siuonqtx.html