feat: terms and condition

This commit is contained in:
2026-07-06 18:27:06 +03:30
parent 3e7e069487
commit 5b0a66bb54
7 changed files with 181 additions and 0 deletions
@@ -3,6 +3,7 @@ import 'package:flutter/services.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:go_router/go_router.dart';
import '../../../../core/theme/app_theme.dart';
import '../../../../core/widgets/game_ui.dart';
import '../bloc/auth_bloc.dart';
import '../bloc/auth_event.dart';
@@ -97,6 +98,27 @@ class _MobileScreenState extends State<MobileScreen> {
LoginOtpEvent(_controller.text.trim()),
),
),
const SizedBox(height: 8),
TextButton(
onPressed: () => context.push('/terms'),
child: const Text.rich(
TextSpan(
text: 'با ورود، ',
style: TextStyle(
color: Colors.white54, fontSize: 12),
children: [
TextSpan(
text: 'شرایط و قوانین',
style: TextStyle(
color: AppColors.gold,
fontSize: 12,
fontWeight: FontWeight.bold),
),
TextSpan(text: ' را می‌پذیرید'),
],
),
),
),
],
),
),