mirror of
https://github.com/koloideal/Casha.git
synced 2026-08-08 17:51:14 +03:00
first google play release for internal testing
This commit is contained in:
@@ -2,9 +2,7 @@ import 'package:flutter/material.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import '../../../core/constants.dart';
|
||||
import '../../../core/l10n/locale_provider.dart';
|
||||
import '../../../core/services/haptic_service.dart';
|
||||
import '../../../shared/providers/current_user_provider.dart';
|
||||
import '../../../shared/models/user_model.dart';
|
||||
|
||||
class PremiumSection extends ConsumerWidget {
|
||||
const PremiumSection({super.key});
|
||||
@@ -66,16 +64,6 @@ class PremiumSection extends ConsumerWidget {
|
||||
],
|
||||
),
|
||||
),
|
||||
Switch(
|
||||
value: user.isVip,
|
||||
onChanged: (value) async {
|
||||
HapticService.light();
|
||||
await ref.read(currentUserProvider.notifier).setPlan(
|
||||
value ? UserPlan.vip : UserPlan.free,
|
||||
);
|
||||
},
|
||||
activeThumbColor: const Color(0xFF7C6DED),
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user