reused changenotifiers should use changenotifierprovider.value
This commit is contained in:
parent
fe4a4c9f75
commit
bfb7f7f429
|
@ -105,8 +105,8 @@ class _ProfileMgrViewState extends State<ProfileMgrView> {
|
||||||
Widget _buildProfileManager() {
|
Widget _buildProfileManager() {
|
||||||
final tiles = Provider.of<ProfileListState>(context).onions.map(
|
final tiles = Provider.of<ProfileListState>(context).onions.map(
|
||||||
(ProfileInfoState profile) {
|
(ProfileInfoState profile) {
|
||||||
return ChangeNotifierProvider<ProfileInfoState>(
|
return ChangeNotifierProvider<ProfileInfoState>.value(
|
||||||
create: (context) => profile,
|
value: profile,
|
||||||
builder: (context, child) => ProfileRow(),
|
builder: (context, child) => ProfileRow(),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue