refactor: add intl localization

This commit is contained in:
mso7nueh
2024-09-11 17:39:00 +03:00
parent 69472f422e
commit 6c69bbbf41
29 changed files with 1468 additions and 312 deletions

View File

@@ -1,6 +1,6 @@
import 'package:eatvio_app/features/registration/models/user_registration_model.dart';
import 'package:eatvio_app/features/registration/presentation/bloc/registration_cubit/registration_cubit.dart';
import 'package:eatvio_app/localization/app_localization.dart';
import 'package:eatvio_app/generated/l10n.dart';
import 'package:eatvio_app/widgets/custom_text_form_field.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
@@ -31,13 +31,14 @@ class _CredentialsScreenState extends State<CredentialsScreen> {
@override
Widget build(BuildContext context) {
final s = S.of(context);
return SingleChildScrollView(
padding: EdgeInsets.only(bottom: 80, top: 16, left: 16, right: 16),
child: Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text("email".tr),
Text(s.email),
SizedBox(height: 4),
CustomTextFormField(
controller: emailController,
@@ -51,7 +52,7 @@ class _CredentialsScreenState extends State<CredentialsScreen> {
},
),
SizedBox(height: 16),
Text("password".tr),
Text(s.password),
SizedBox(height: 4),
CustomTextFormField(
obscureText: true,
@@ -64,7 +65,7 @@ class _CredentialsScreenState extends State<CredentialsScreen> {
},
),
SizedBox(height: 16),
Text("password_confirmation".tr),
Text(s.password_confirmation),
SizedBox(height: 4),
CustomTextFormField(
obscureText: true,