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() {
|
||||
final tiles = Provider.of<ProfileListState>(context).onions.map(
|
||||
(ProfileInfoState profile) {
|
||||
return ChangeNotifierProvider<ProfileInfoState>(
|
||||
create: (context) => profile,
|
||||
return ChangeNotifierProvider<ProfileInfoState>.value(
|
||||
value: profile,
|
||||
builder: (context, child) => ProfileRow(),
|
||||
);
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue