feat: terms and condition
This commit is contained in:
@@ -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: ' را میپذیرید'),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user