29class _SettingScreenState
extends State<SettingScreen> {
31 Widget
build(BuildContext context) {
32 return CustomScaffold(
34 isLeadingVisible:
false,
35 body: SingleChildScrollView(
36 padding: EdgeInsets.symmetric(horizontal: 15.sp, vertical: 10.sp),
38 crossAxisAlignment: CrossAxisAlignment.start,
59 HugeIcons.strokeRoundedDarkMode,
60 color: Theme.of(context).colorScheme.onSurface,
64 padding: EdgeInsets.all(5.sp),
66 body: ThemeSwitcherDialog(),
74 HugeIcons.strokeRoundedLanguageCircle,
75 color: Theme.of(context).colorScheme.onSurface,
79 padding: EdgeInsets.zero,
81 body: LanguageSelectorDialog(),
89 HugeIcons.strokeRoundedNotification03,
90 color: Theme.of(context).colorScheme.onSurface,
95 padding: EdgeInsets.zero,
96 body: NotificationEnablerDialog(),
103 SizedBox(height: 10.sp),
112 HugeIcons.strokeRoundedAlert01,
113 color: Theme.of(context).colorScheme.onSurface,
116 CustomSnackBar.display(
118 ColorPalette.lightGreen,
119 AppLocalizations.of(context).translate(
120 'Hang tight! this feature will is coming soon'),
132 HugeIcons.strokeRoundedMessageQuestion,
133 color: Theme.of(context).colorScheme.onSurface,
137 padding: EdgeInsets.all(5.sp),
146 SizedBox(height: 10.sp),
156 HugeIcons.strokeRoundedShieldUser,
157 color: Theme.of(context).colorScheme.onSurface,
161 padding: EdgeInsets.all(15.sp),
162 body: PrivacyPolicyDisplayer(),
171 HugeIcons.strokeRoundedPolicy,
172 color: Theme.of(context).colorScheme.onSurface,
176 padding: EdgeInsets.all(15.sp),
177 body: TermsOfUseDisplayer(),
185 SizedBox(height: 10.sp),
193 HugeIcons.strokeRoundedLogout03,
194 color: Theme.of(context).colorScheme.error,
196 color: Theme.of(context).colorScheme.error,
198 context.read<AuthenticationBloc>().add(SignOutEvent());
248 required String
label,
252 required BuildContext context,
254 return ElevatedButton(
255 onPressed: onPressed,
256 style: ElevatedButton.styleFrom(
258 overlayColor:
color?.withOpacity(0.11) ??
259 Theme.of(context).primaryColor.withOpacity(0.11),
265 mainAxisAlignment: MainAxisAlignment.spaceBetween,
269 style: Theme.of(context).textTheme.bodySmall?.copyWith(
271 Theme.of(context).colorScheme.onSurface.withOpacity(0.7),
276 HugeIcons.strokeRoundedArrowRight02,
279 Theme.of(context).colorScheme.onSurface.withOpacity(0.5),
const CustomCard({ super.key, required this.child, this.padding, this.bgColor, })
_buildSettingsButton({ required String label, Widget? suffix, Color? color, required Function()? onPressed, required BuildContext context, })