-
Notifications
You must be signed in to change notification settings - Fork 212
Closed
Description
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
Labels
No labels