Skip to content

StoreProvider not found  #35

@lockerfish

Description

@lockerfish

I am getting StoreProvider not found when I try connecting from another class. Hoping the code below helps understanding the issue.

 return new StoreProvider<AppState>(
      store: store,
      child: new MaterialApp(
        title: title,
        theme: new ThemeData(
          primaryColor: Colors.lightBlue,
        ),
        home: new HomePage(), /// <<--- USING STORE_CONNECTOR AS BELOW FAILS WITHIN HOMEPAGE
        // home: new StoreConnector<AppState, int>(
        //   converter: (storexx) => storexx.state.luckyNumber,
        //   builder: (context, count) {
        //     return new Text(count.toString());
        //   },
        // ),
      ),
    );

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