reused changenotifiers should use changenotifierprovider.value

This commit is contained in:
erinn 2021-02-10 17:17:31 -08:00
parent fe4a4c9f75
commit bfb7f7f429
1 changed files with 2 additions and 2 deletions

View File

@ -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(),
);
},