Fix for hidden logout option
This commit is contained in:
parent
f6ca0b199f
commit
4721fe9e64
|
|
@ -1425,7 +1425,12 @@ void _showAbout(BuildContext context) async {
|
||||||
.replaceFirst(':value', state.appVersion));
|
.replaceFirst(':value', state.appVersion));
|
||||||
},
|
},
|
||||||
onLongPress: () async {
|
onLongPress: () async {
|
||||||
if (kReleaseMode) {
|
if (!kReleaseMode && supportsInAppPurchase()) {
|
||||||
|
showDialog<void>(
|
||||||
|
context: context,
|
||||||
|
builder: (context) => UpgradeDialog(),
|
||||||
|
);
|
||||||
|
} else {
|
||||||
showMessageDialog(
|
showMessageDialog(
|
||||||
message: FLUTTER_VERSION['channel']!.toUpperCase() +
|
message: FLUTTER_VERSION['channel']!.toUpperCase() +
|
||||||
' • ' +
|
' • ' +
|
||||||
|
|
@ -1436,11 +1441,6 @@ void _showAbout(BuildContext context) async {
|
||||||
onPressed: () => store.dispatch(UserLogout()),
|
onPressed: () => store.dispatch(UserLogout()),
|
||||||
),
|
),
|
||||||
]);
|
]);
|
||||||
} else {
|
|
||||||
showDialog<void>(
|
|
||||||
context: context,
|
|
||||||
builder: (context) => UpgradeDialog(),
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue