Merge branch 'release/0.1.33'
-fix(subscription): Subscription update issue fixe
This commit is contained in:
commit
4b281aae77
|
|
@ -32,7 +32,7 @@ class LearnLessonView extends StackedView<LearnLessonViewModel> {
|
|||
await _showSheet(context: context, viewModel: viewModel);
|
||||
}*/
|
||||
if (index > 1) {
|
||||
if (viewModel.user?.subscriptionStatus?.toLowerCase() == 'subscribed') {
|
||||
if (viewModel.user?.subscriptionStatus?.toLowerCase() == 'active') {
|
||||
if (lesson.access?.isAccessible ?? false) {
|
||||
await viewModel.navigateToLearnPractice(lesson.id ?? 0);
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ class LearnLessonDetailView extends StackedView<LearnLessonDetailViewModel> {
|
|||
await viewModel.navigateToLearnPractice(lesson.id ?? 0);
|
||||
*/
|
||||
if (index > 1) {
|
||||
if (viewModel.user?.subscriptionStatus?.toLowerCase() == 'subscribed') {
|
||||
if (viewModel.user?.subscriptionStatus?.toLowerCase() == 'active') {
|
||||
await viewModel.pause();
|
||||
await viewModel.navigateToLearnPractice(lesson.id ?? 0);
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ import 'package:yimaru_app/services/status_checker_service.dart';
|
|||
import 'package:yimaru_app/ui/common/enmus.dart';
|
||||
|
||||
import '../../../app/app.locator.dart';
|
||||
import '../../../models/progress_summary.dart';
|
||||
|
||||
class ProgressViewModel extends ReactiveViewModel {
|
||||
// Dependency injection
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
name: yimaru_app
|
||||
version: 0.1.32+34
|
||||
publish_to: 'none'
|
||||
version: 0.1.33+35
|
||||
description: A new Flutter project.
|
||||
|
||||
environment:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user