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

请问有多个navigatorObservers,会报错。 #9

Open
zhuwei opened this issue Jun 30, 2020 · 1 comment
Open

请问有多个navigatorObservers,会报错。 #9

zhuwei opened this issue Jun 30, 2020 · 1 comment

Comments

@zhuwei
Copy link

zhuwei commented Jun 30, 2020

应该怎么解决?

Offstage(
          offstage: _tabIndex != 0,
          child: TickerMode(
              enabled: _tabIndex == 0,
              child: MaterialApp(
                theme: ThemeData(fontFamily: "Meiryo"),
                home: HomeView(),
                navigatorObservers: [TrackerRouteObserverProvider.of(context)],
              )),
        ),
        Offstage(
          offstage: _tabIndex != 1,
          child: TickerMode(
            enabled: _tabIndex == 1,
            child: MaterialApp(
              theme: ThemeData(fontFamily: "Meiryo"),
              home: LifelogView(),
              navigatorObservers: [TrackerRouteObserverProvider.of(context)],
            ),
          ),
        ),
@SBDavid
Copy link
Owner

SBDavid commented Jul 14, 2020

报了什么错误?

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

2 participants