App review

This commit is contained in:
Hillel Coren 2022-07-04 20:03:37 +03:00
parent 77f395557b
commit 5d3c86fc84
2 changed files with 6 additions and 1 deletions

View File

@ -28,6 +28,11 @@ class _ReviewAppState extends State<ReviewApp> {
final localization = AppLocalization.of(context); final localization = AppLocalization.of(context);
final store = StoreProvider.of<AppState>(context); final store = StoreProvider.of<AppState>(context);
// TODO remove this code
if (!isMobileOS()) {
return SizedBox();
}
return Padding( return Padding(
padding: const EdgeInsets.only(top: 8), padding: const EdgeInsets.only(top: 8),
child: FormCard( child: FormCard(

View File

@ -499,7 +499,7 @@ class DashboardPanels extends StatelessWidget {
return Column( return Column(
children: [ children: [
if (!state.prefState.hideReviewApp && if (!state.prefState.hideReviewApp &&
state.company.daysActive > 60) state.company.daysActive > (isMobileOS() ? 60 : 120))
ReviewApp(), ReviewApp(),
if (state.userCompany.isAdmin && if (state.userCompany.isAdmin &&
state.company.daysActive < 30 && state.company.daysActive < 30 &&