1import 'package:connect/core/localization/app_localizations.dart';
2import 'package:flutter/gestures.dart';
3import 'package:flutter/material.dart';
4import 'package:flutter_screenutil/flutter_screenutil.dart';
6import '/core/ui/widgets/custom_card.dart';
8import '/features/settings/presentation/settings_screen/widgets/privacy_policy.dart';
9import '/features/settings/presentation/settings_screen/widgets/terms_of_use.dart';
15 required this.onCheckStatuschanged,
22 Widget
build(BuildContext context) {
27 onChanged: onCheckStatuschanged,
28 shape: RoundedRectangleBorder(
29 borderRadius: BorderRadius.circular(80),
35 style: Theme.of(context).textTheme.bodySmall?.copyWith(
36 color: Theme.of(context).hintColor,
40 "${AppLocalizations.of(context).translate('I have read and accept the')} ",
44 "${AppLocalizations.of(context).translate('Terms of use')} \n",
45 style: Theme.of(context).textTheme.bodySmall?.copyWith(
46 color: Theme.of(context).colorScheme.secondary,
49 recognizer: TapGestureRecognizer()
60 text:
" ${AppLocalizations.of(context).translate('and')} "),
64 style: Theme.of(context).textTheme.bodySmall?.copyWith(
65 color: Theme.of(context).colorScheme.secondary,
68 recognizer: TapGestureRecognizer()
78 const TextSpan(
text:
"."),
89 required BuildContext context,
92 return showModalBottomSheet(
94 isScrollControlled:
true,
96 builder: (context) => Padding(
String translate(String key)
static AppLocalizations of(BuildContext context)
class CustomCard extends StatelessWidget GlassCustomCard({ super.key, required this.child, this.padding, })
final Color backgroundColor