From 8a3e93ba082b9ef37ef6ed3415079ef6c1053d2e Mon Sep 17 00:00:00 2001 From: Rakshitha Salian <rakshitha.salian@niveus.com> Date: Thu, 30 May 2024 10:02:33 +0530 Subject: [PATCH] Add string constants and routes --- lib/appLocalization/language_key.dart | 13 ++++++++++++- lib/appLocalization/languages.dart | 26 ++++++++++++++++++++++++-- lib/res/app_color_text_size.dart | 3 ++- lib/routes/routes_name.dart | 1 + 4 files changed, 39 insertions(+), 4 deletions(-) diff --git a/lib/appLocalization/language_key.dart b/lib/appLocalization/language_key.dart index 76a2962..56ae0da 100644 --- a/lib/appLocalization/language_key.dart +++ b/lib/appLocalization/language_key.dart @@ -1,3 +1,14 @@ const String message = "message"; -const String name = "name"; \ No newline at end of file +const String name = "name"; + +///Verify otp texts +const String otpTitle = "otpTitle"; +const String otpSubTitle = "otpSubTitle"; +const String enterOtp = "enterOtp"; +const String resendOtp = "resendOtp"; +const String verify = "verify"; +const String back = "back"; +const String verifySuccessTitle = "verifySuccessTitle"; +const String verifySuccessSubTitle = "verifySuccessSubTitle"; +const String seconds = "seconds"; \ No newline at end of file diff --git a/lib/appLocalization/languages.dart b/lib/appLocalization/languages.dart index 4da9200..0c3942d 100644 --- a/lib/appLocalization/languages.dart +++ b/lib/appLocalization/languages.dart @@ -12,12 +12,34 @@ class Languages extends Translations { /// English language constants Map<String, String> englishConstants = { message: "What is the project name?", - name: "Exide CRR" + name: "Exide CRR", + + ///Verify otp screen + otpTitle:"Verify OTP", + otpSubTitle:"Please verify the OTP which have been sent your registered mobile number.", + enterOtp:"Enter OTP", + resendOtp: "Resend OTP in ", + seconds: "seconds.", + verify: "Verify", + back: "Back", + verifySuccessTitle:"Verification Successful", + verifySuccessSubTitle:"You have verified your OTP successfully." }; /// Hindi language constants Map<String, String> hindiConstants = { message: "प्रोजेक्ट का नाम क्या है?", - name: "एक्साइड सीआरआर" + name: "एक्साइड सीआरआर", + + ///Verify otp screen + otpTitle:"ओटीपी सत्यापित करें", + otpSubTitle:"कृपया उस ओटीपी को सत्यापित करें जो आपके पंजीकृत मोबाइल नंबर पर भेजा गया है।", + enterOtp:"ओटीपी दर्ज करें", + resendOtp:"ओटीपी दोबारा भेजें", + seconds:"सेकंड में ", + verify: "सत्यापित करें", + back: "पीछे", + verifySuccessTitle:"सत्यापन सफल", + verifySuccessSubTitle:"आपने अपना ओटीपी सफलतापूर्वक सत्यापित कर लिया है।" }; } \ No newline at end of file diff --git a/lib/res/app_color_text_size.dart b/lib/res/app_color_text_size.dart index 20f6dd9..5476924 100644 --- a/lib/res/app_color_text_size.dart +++ b/lib/res/app_color_text_size.dart @@ -33,7 +33,8 @@ class AppColor { static const textFieldHintColor = Color(0xff9B9B9B); static const primarySecColor = Color(0xFF3A88F4); static Color redLight = const Color(0xffFF1717); - static const inActiveButtonColor = Color(0xff808080); + static const inActiveButtonColor = Color(0xffF9BBBF); + static const slateGray = Color(0xff454A4F); static const MaterialColor primaryColorSwatch = MaterialColor(primaryColorHexValue, <int, Color>{ diff --git a/lib/routes/routes_name.dart b/lib/routes/routes_name.dart index 4072a39..0ab593b 100644 --- a/lib/routes/routes_name.dart +++ b/lib/routes/routes_name.dart @@ -4,5 +4,6 @@ class RoutesName { static const String splashScreen = "/"; static const String loginScreen = "/login"; static const String homeScreen = "/home"; + static const String verifyOtp = "/verifyOtp"; } \ No newline at end of file -- GitLab