Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions app/lib/presentation/navigation/routers.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:app/main/init.dart';
import 'package:app/presentation/ui/pages/home/home_page.dart';
import 'package:app/presentation/ui/pages/login/login_page.dart';
import 'package:app/presentation/ui/pages/sign_up/sign_up_page.dart';
import 'package:app/presentation/ui/pages/main/home/home_page.dart';
import 'package:app/presentation/ui/pages/auth/login/login_page.dart';
import 'package:app/presentation/ui/pages/auth/sign_up/sign_up_page.dart';
import 'package:app/presentation/ui/pages/splash/splash_page.dart';
import 'package:common/core/resource.dart';
import 'package:domain/bloc/auth/auth_cubit.dart';
Expand Down
14 changes: 14 additions & 0 deletions app/lib/presentation/resources/dim.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,18 @@ part of 'resources.dart';
class Dimen {
static const primaryButtonHeight = 48.0;
static const loadingSpinnerSize = 32.0;
static const loadingSpinnerSizeS = 16.0;

static const double loginFormMaxWidth = 400.0;

static const spacingXxs = 2.0;
static const spacingXs = 4.0;
static const spacingS = 8.0;
static const spacingM = 16.0;
static const spacingL = 24.0;
static const spacingXl = 32.0;
static const spacingXxl = 40.0;
static const spacingXxxl = 48.0;

static const double buttonHeightM = 48.0;
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ MessageLookupByLibrary? _findExact(String localeName) {
/// User programs should call this before using [localeName] for messages.
Future<bool> initializeMessages(String localeName) {
var availableLocale = Intl.verifiedLocale(
localeName, (locale) => _deferredLibraries[locale] != null,
onFailure: (_) => null);
localeName,
(locale) => _deferredLibraries[locale] != null,
onFailure: (_) => null,
);
if (availableLocale == null) {
return new SynchronousFuture(false);
}
Expand All @@ -60,8 +62,11 @@ bool _messagesExistFor(String locale) {
}

MessageLookupByLibrary? _findGeneratedMessagesFor(String locale) {
var actualLocale =
Intl.verifiedLocale(locale, _messagesExistFor, onFailure: (_) => null);
var actualLocale = Intl.verifiedLocale(
locale,
_messagesExistFor,
onFailure: (_) => null,
);
if (actualLocale == null) return null;
return _findExact(actualLocale);
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,50 @@ class MessageLookup extends MessageLookupByLibrary {

final messages = _notInlinedMessages(_notInlinedMessages);
static Map<String, Function> _notInlinedMessages(_) => <String, Function>{
"appName": MessageLookupByLibrary.simpleMessage("Flutter Target"),
"cookiesAcceptCTA": MessageLookupByLibrary.simpleMessage("Accept"),
"cookiesBody": MessageLookupByLibrary.simpleMessage(
"We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services."),
"cookiesTitle":
MessageLookupByLibrary.simpleMessage("This website uses cookies"),
"noConnection": MessageLookupByLibrary.simpleMessage("No connection"),
"pleaseTryAgainLaterWeArenworkingToFixTheIssue":
MessageLookupByLibrary.simpleMessage(
"Please try again later, we are\nworking to fix the issue."),
"retry": MessageLookupByLibrary.simpleMessage("Retry"),
"sorryWeDidntFindAnyProduct": MessageLookupByLibrary.simpleMessage(
"Sorry we didn\'t find any product")
};
"appName": MessageLookupByLibrary.simpleMessage("Flutter Target"),
"cookiesAcceptCTA": MessageLookupByLibrary.simpleMessage("Accept"),
"cookiesBody": MessageLookupByLibrary.simpleMessage(
"We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.",
),
"cookiesTitle": MessageLookupByLibrary.simpleMessage(
"This website uses cookies",
),
"ctaLogin": MessageLookupByLibrary.simpleMessage("Login"),
"errorEmailInvalid": MessageLookupByLibrary.simpleMessage(
"Please enter a valid email address.",
),
"errorEmailRequired": MessageLookupByLibrary.simpleMessage(
"Email is required.",
),
"errorPasswordRequired": MessageLookupByLibrary.simpleMessage(
"Password is required.",
),
"errorPasswordWeak": MessageLookupByLibrary.simpleMessage(
"Password is too weak.",
),
"labelAgreeToTerms": MessageLookupByLibrary.simpleMessage(
"I agree to the Terms and Conditions",
),
"labelEmail": MessageLookupByLibrary.simpleMessage("Email"),
"labelPassword": MessageLookupByLibrary.simpleMessage("Password"),
"loginErrorInvalidCredentials": MessageLookupByLibrary.simpleMessage(
"Invalid email or password.",
),
"noConnection": MessageLookupByLibrary.simpleMessage("No connection"),
"passwordInstructions": MessageLookupByLibrary.simpleMessage(
"Min 8 characters long: 1 uppercase letter, 1 lowercase letter, 1 number, and 1 special character.",
),
"pleaseTryAgainLaterWeArenworkingToFixTheIssue":
MessageLookupByLibrary.simpleMessage(
"Please try again later, we are\nworking to fix the issue.",
),
"retry": MessageLookupByLibrary.simpleMessage("Retry"),
"sorryWeDidntFindAnyProduct": MessageLookupByLibrary.simpleMessage(
"Sorry we didn\'t find any product",
),
"titleLogin": MessageLookupByLibrary.simpleMessage("Login"),
"titleLoginSubtitle": MessageLookupByLibrary.simpleMessage(
"Use your email and password to login to your account.",
),
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,50 @@ class MessageLookup extends MessageLookupByLibrary {

final messages = _notInlinedMessages(_notInlinedMessages);
static Map<String, Function> _notInlinedMessages(_) => <String, Function>{
"appName": MessageLookupByLibrary.simpleMessage("Flutter Target"),
"cookiesAcceptCTA": MessageLookupByLibrary.simpleMessage("Accept"),
"cookiesBody": MessageLookupByLibrary.simpleMessage(
"We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services."),
"cookiesTitle":
MessageLookupByLibrary.simpleMessage("This website uses cookies"),
"noConnection": MessageLookupByLibrary.simpleMessage("No connection"),
"pleaseTryAgainLaterWeArenworkingToFixTheIssue":
MessageLookupByLibrary.simpleMessage(
"Please try again later, we are\nworking to fix the issue."),
"retry": MessageLookupByLibrary.simpleMessage("Retry"),
"sorryWeDidntFindAnyProduct": MessageLookupByLibrary.simpleMessage(
"Sorry we didn\'t find any product")
};
"appName": MessageLookupByLibrary.simpleMessage("Flutter Target"),
"cookiesAcceptCTA": MessageLookupByLibrary.simpleMessage("Aceptar"),
"cookiesBody": MessageLookupByLibrary.simpleMessage(
"Usamos cookies para personalizar el contenido y los anuncios, ofrecer funciones de redes sociales y analizar nuestro tráfico. También compartimos información sobre el uso de nuestro sitio con nuestros socios de redes sociales, publicidad y análisis, quienes pueden combinarla con otra información que les hayas proporcionado o que hayan recopilado a partir del uso de sus servicios.",
),
"cookiesTitle": MessageLookupByLibrary.simpleMessage(
"Este sitio web utiliza cookies",
),
"ctaLogin": MessageLookupByLibrary.simpleMessage("Iniciar sesión"),
"errorEmailInvalid": MessageLookupByLibrary.simpleMessage(
"Por favor ingresa una dirección de correo válida.",
),
"errorEmailRequired": MessageLookupByLibrary.simpleMessage(
"El correo electrónico es obligatorio.",
),
"errorPasswordRequired": MessageLookupByLibrary.simpleMessage(
"La contraseña es obligatoria.",
),
"errorPasswordWeak": MessageLookupByLibrary.simpleMessage(
"La contraseña es demasiado débil.",
),
"labelAgreeToTerms": MessageLookupByLibrary.simpleMessage(
"Acepto los Términos y Condiciones",
),
"labelEmail": MessageLookupByLibrary.simpleMessage("Correo electrónico"),
"labelPassword": MessageLookupByLibrary.simpleMessage("Contraseña"),
"loginErrorInvalidCredentials": MessageLookupByLibrary.simpleMessage(
"Correo o contraseña inválidos.",
),
"noConnection": MessageLookupByLibrary.simpleMessage("Sin conexión"),
"passwordInstructions": MessageLookupByLibrary.simpleMessage(
"Mínimo 8 caracteres: 1 mayúscula, 1 minúscula, 1 número y 1 carácter especial.",
),
"pleaseTryAgainLaterWeArenworkingToFixTheIssue":
MessageLookupByLibrary.simpleMessage(
"Por favor, inténtalo más tarde,\nestamos trabajando para resolver el problema.",
),
"retry": MessageLookupByLibrary.simpleMessage("Reintentar"),
"sorryWeDidntFindAnyProduct": MessageLookupByLibrary.simpleMessage(
"Lo sentimos, no hemos encontrado ningún producto",
),
"titleLogin": MessageLookupByLibrary.simpleMessage("Iniciar sesión"),
"titleLoginSubtitle": MessageLookupByLibrary.simpleMessage(
"Usa tu correo y contraseña para iniciar sesión en tu cuenta.",
),
};
}
140 changes: 115 additions & 25 deletions app/lib/presentation/resources/locale/generated/l10n.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading