From bfb7f7f429f435757956b69cd984f4db6aeafac7 Mon Sep 17 00:00:00 2001 From: erinn Date: Wed, 10 Feb 2021 17:17:31 -0800 Subject: [PATCH] reused changenotifiers should use changenotifierprovider.value --- lib/views/profilemgrview.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/views/profilemgrview.dart b/lib/views/profilemgrview.dart index 4a7ec63..f075eb2 100644 --- a/lib/views/profilemgrview.dart +++ b/lib/views/profilemgrview.dart @@ -105,8 +105,8 @@ class _ProfileMgrViewState extends State { Widget _buildProfileManager() { final tiles = Provider.of(context).onions.map( (ProfileInfoState profile) { - return ChangeNotifierProvider( - create: (context) => profile, + return ChangeNotifierProvider.value( + value: profile, builder: (context, child) => ProfileRow(), ); },