Skip to content

Commit

Permalink
fix premium wallpapers error
Browse files Browse the repository at this point in the history
  • Loading branch information
codenameakshay committed Sep 22, 2021
1 parent e3e6454 commit a2ad3d9
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion lib/ui/widgets/home/wallpapers/wallpaperTile.dart
@@ -1,3 +1,5 @@
import 'dart:developer';

import 'package:Prism/routes/routing_constants.dart';
import 'package:Prism/theme/themeModeProvider.dart';
import 'package:Prism/ui/widgets/home/wallpapers/wallpaperGrid.dart';
Expand Down Expand Up @@ -68,13 +70,21 @@ class WallpaperTile extends StatelessWidget {
onTap: () {
if (Data.subPrismWalls == []) {
} else {
log((globals.isPremiumWall(
globals.premiumCollections,
Data.subPrismWalls![index]["collections"]
as List? ??
[]) ==
true)
.toString());
log(globals.prismUser.premium.toString());
globals.isPremiumWall(
globals.premiumCollections,
Data.subPrismWalls![index]["collections"]
as List? ??
[]) ==
true &&
globals.prismUser.premium == true
globals.prismUser.premium != true
? showGooglePopUp(context, () {
Navigator.pushNamed(
context,
Expand Down

0 comments on commit a2ad3d9

Please sign in to comment.