Skip to content

Commit 8311cbf

Browse files
committed
improve theme colors and text styles
1 parent dff57df commit 8311cbf

File tree

9 files changed

+361
-12
lines changed

9 files changed

+361
-12
lines changed

app/lib/presentation/navigation/routers.dart

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import 'package:app/presentation/ui/custom/debug_banner.dart';
33
import 'package:app/presentation/ui/pages/main/home/home_page.dart';
44
import 'package:app/presentation/ui/pages/auth/login/login_page.dart';
55
import 'package:app/presentation/ui/pages/auth/sign_up/sign_up_page.dart';
6+
import 'package:app/presentation/ui/pages/onboarding/onboarding_page.dart';
67
import 'package:app/presentation/ui/pages/splash/splash_page.dart';
78
import 'package:common/core/resource.dart';
89
import 'package:domain/bloc/auth/auth_cubit.dart';
@@ -14,6 +15,7 @@ import 'package:go_router/go_router.dart';
1415

1516
enum Routes {
1617
auth,
18+
onboarding,
1719
login,
1820
signup,
1921
app,
@@ -50,7 +52,7 @@ class Routers {
5052
initialLocation: initialLocation ??
5153
(getIt<AuthCubit>().isLoggedIn()
5254
? Routes.app.path
53-
: Routes.auth.path),
55+
: Routes.onboarding.path),
5456
routes: [
5557
GoRoute(
5658
path: '/',
@@ -79,7 +81,7 @@ class Routers {
7981
return;
8082
}
8183
debugPrint('Navigating to auth route');
82-
Routes.auth.go(context);
84+
Routes.onboarding.go(context);
8385
break;
8486
case _:
8587
}
@@ -93,6 +95,11 @@ class Routers {
9395
builder: (context, state, child) =>
9496
kDebugMode ? DebugBanner(child: child) : child,
9597
routes: [
98+
GoRoute(
99+
name: Routes.onboarding.name,
100+
path: Routes.onboarding.path,
101+
builder: (context, state) => const OnboardingPage(),
102+
),
96103
GoRoute(
97104
name: Routes.auth.name,
98105
path: Routes.auth.path,

app/lib/presentation/resources/locale/generated/intl/messages_en.dart

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,25 @@ class MessageLookup extends MessageLookupByLibrary {
7070
"Invalid email or password.",
7171
),
7272
"noConnection": MessageLookupByLibrary.simpleMessage("No connection"),
73+
"onboardingBack": MessageLookupByLibrary.simpleMessage("Back"),
74+
"onboardingNext": MessageLookupByLibrary.simpleMessage("Next"),
75+
"onboardingPage1Description": MessageLookupByLibrary.simpleMessage(
76+
"This is the first page of the onboarding flow",
77+
),
78+
"onboardingPage1Title": MessageLookupByLibrary.simpleMessage("Welcome"),
79+
"onboardingPage2Description": MessageLookupByLibrary.simpleMessage(
80+
"This is the second page of the onboarding flow",
81+
),
82+
"onboardingPage2Title": MessageLookupByLibrary.simpleMessage("Discover"),
83+
"onboardingPage3Description": MessageLookupByLibrary.simpleMessage(
84+
"This is the third page of the onboarding flow",
85+
),
86+
"onboardingPage3Title": MessageLookupByLibrary.simpleMessage("Connect"),
87+
"onboardingPage4Description": MessageLookupByLibrary.simpleMessage(
88+
"This is the fourth page of the onboarding flow",
89+
),
90+
"onboardingPage4Title": MessageLookupByLibrary.simpleMessage("Get Started"),
91+
"onboardingStart": MessageLookupByLibrary.simpleMessage("Start"),
7392
"passwordInstructions": MessageLookupByLibrary.simpleMessage(
7493
"Min 8 characters long: 1 uppercase letter, 1 lowercase letter, 1 number, and 1 special character.",
7594
),

app/lib/presentation/resources/locale/generated/intl/messages_es.dart

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,25 @@ class MessageLookup extends MessageLookupByLibrary {
7272
"Correo electrónico o contraseña incorrectos.",
7373
),
7474
"noConnection": MessageLookupByLibrary.simpleMessage("Sin conexión"),
75+
"onboardingBack": MessageLookupByLibrary.simpleMessage("Atrás"),
76+
"onboardingNext": MessageLookupByLibrary.simpleMessage("Siguiente"),
77+
"onboardingPage1Description": MessageLookupByLibrary.simpleMessage(
78+
"Esta es la primera página del flujo de incorporación",
79+
),
80+
"onboardingPage1Title": MessageLookupByLibrary.simpleMessage("Bienvenido"),
81+
"onboardingPage2Description": MessageLookupByLibrary.simpleMessage(
82+
"Esta es la segunda página del flujo de incorporación",
83+
),
84+
"onboardingPage2Title": MessageLookupByLibrary.simpleMessage("Descubrir"),
85+
"onboardingPage3Description": MessageLookupByLibrary.simpleMessage(
86+
"Esta es la tercera página del flujo de incorporación",
87+
),
88+
"onboardingPage3Title": MessageLookupByLibrary.simpleMessage("Conectar"),
89+
"onboardingPage4Description": MessageLookupByLibrary.simpleMessage(
90+
"Esta es la cuarta página del flujo de incorporación",
91+
),
92+
"onboardingPage4Title": MessageLookupByLibrary.simpleMessage("Comenzar"),
93+
"onboardingStart": MessageLookupByLibrary.simpleMessage("Comenzar"),
7594
"passwordInstructions": MessageLookupByLibrary.simpleMessage(
7695
"Mínimo 8 caracteres: 1 mayúscula, 1 minúscula, 1 número y 1 carácter especial.",
7796
),

app/lib/presentation/resources/locale/generated/l10n.dart

Lines changed: 95 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/lib/presentation/resources/locale/intl_en.arb

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,16 @@
3030
"debugModeResetAppTitle": "Reset App",
3131
"debugModeResetAppMessage": "Are you sure you want to reset the app?",
3232
"debugModeCancel": "Cancel",
33-
"debugModeConfirm": "Confirm"
34-
}
33+
"debugModeConfirm": "Confirm",
34+
"onboardingBack": "Back",
35+
"onboardingNext": "Next",
36+
"onboardingStart": "Start",
37+
"onboardingPage1Title": "Welcome",
38+
"onboardingPage1Description": "This is the first page of the onboarding flow",
39+
"onboardingPage2Title": "Discover",
40+
"onboardingPage2Description": "This is the second page of the onboarding flow",
41+
"onboardingPage3Title": "Connect",
42+
"onboardingPage3Description": "This is the third page of the onboarding flow",
43+
"onboardingPage4Title": "Get Started",
44+
"onboardingPage4Description": "This is the fourth page of the onboarding flow"
45+
}

app/lib/presentation/resources/locale/intl_es.arb

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,16 @@
3030
"debugModeResetAppTitle": "Resetear App",
3131
"debugModeResetAppMessage": "¿Estás seguro de que deseas resetear la aplicación?",
3232
"debugModeCancel": "Cancelar",
33-
"debugModeConfirm": "Confirmar"
33+
"debugModeConfirm": "Confirmar",
34+
"onboardingBack": "Atrás",
35+
"onboardingNext": "Siguiente",
36+
"onboardingStart": "Comenzar",
37+
"onboardingPage1Title": "Bienvenido",
38+
"onboardingPage1Description": "Esta es la primera página del flujo de incorporación",
39+
"onboardingPage2Title": "Descubrir",
40+
"onboardingPage2Description": "Esta es la segunda página del flujo de incorporación",
41+
"onboardingPage3Title": "Conectar",
42+
"onboardingPage3Description": "Esta es la tercera página del flujo de incorporación",
43+
"onboardingPage4Title": "Comenzar",
44+
"onboardingPage4Description": "Esta es la cuarta página del flujo de incorporación"
3445
}

app/lib/presentation/ui/pages/auth/login/login_form.dart

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,18 +72,13 @@ class _LoginFormState extends State<LoginForm> {
7272
obscureText: true,
7373
controller: passwordController,
7474
validator: (value) {
75-
if (!FormValidator.isStrongPassword(value)) {
76-
return S.of(context).errorPasswordWeak;
75+
if (value?.trim().isEmpty ?? true) {
76+
return S.of(context).errorPasswordRequired;
7777
}
7878
return null;
7979
},
8080
),
8181
const Gap(Dimen.spacingM),
82-
Text(
83-
S.of(context).passwordInstructions,
84-
style: Theme.of(context).textTheme.bodySmall,
85-
),
86-
const Gap(Dimen.spacingM),
8782
TermsServicesCheck(
8883
agreeToTerms: agreeToTerms,
8984
onChanged: (value) {

0 commit comments

Comments
 (0)