Skip to content

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

@zhuwei

Description

@zhuwei

应该怎么解决?

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)],
            ),
          ),
        ),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions