fix Provider bug with reloading message panes
This commit is contained in:
parent
1ad7a607cf
commit
950e7edb38
|
@ -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),
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue