add required provider to groupsettingsview so leave action can trigger
continuous-integration/drone/pr Build is pending
Details
continuous-integration/drone/pr Build is pending
Details
This commit is contained in:
parent
8de3f8dc42
commit
1ea285de51
|
@ -154,7 +154,8 @@ class _MessageViewState extends State<MessageView> {
|
||||||
builder: (BuildContext bcontext) {
|
builder: (BuildContext bcontext) {
|
||||||
if (Provider.of<ContactInfoState>(context, listen: false).isGroup == true) {
|
if (Provider.of<ContactInfoState>(context, listen: false).isGroup == true) {
|
||||||
return MultiProvider(
|
return MultiProvider(
|
||||||
providers: [ChangeNotifierProvider.value(value: Provider.of<ContactInfoState>(context))],
|
providers: [ChangeNotifierProvider.value(value: Provider.of<ContactInfoState>(context)),
|
||||||
|
ChangeNotifierProvider.value(value: Provider.of<ProfileInfoState>(context))],
|
||||||
child: GroupSettingsView(),
|
child: GroupSettingsView(),
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue