fix Provider bug with reloading message panes

This commit is contained in:
erinn 2021-03-17 12:26:20 -07:00
parent 1ad7a607cf
commit 950e7edb38
1 changed files with 1 additions and 2 deletions

View File

@ -53,8 +53,7 @@ class _ContactRowState extends State<ContactRow> {
builder: (BuildContext builderContext) { builder: (BuildContext builderContext) {
return MultiProvider( return MultiProvider(
providers: [ providers: [
ChangeNotifierProvider<ProfileInfoState>( Provider.value(value: Provider.of<ProfileInfoState>(context)),
create: (_) => Provider.of<ProfileInfoState>(context)),
], ],
child: MessageView(conversationHandle: handle), child: MessageView(conversationHandle: handle),
); );