Untitled

mail@pastecode.io avatar
unknown
dart
a year ago
699 B
1
Indexable
Never
DrawerLinkWidget(
              icon: SvgPicture.asset(
                'assets/svg/icHeart.svg',
                color: themeNotifier.getTheme().hoverColor,
              ),
              text: playListNotifier.playerProps!.bookInfo.data!.first.isFav!
                  ? 'Remove from favourite'
                  : 'Add to favourite'.tr(),
              onTap: () {
                playListNotifier.favouriteValue(
                    playListNotifier.playerProps!.bookInfo.data!.first.isFav!);
                playListNotifier.addToWhishListORFav(
                  playListNotifier.playerProps!.bookInfo.data!.first.id,
                  'fav',
                );
              },
            ),