11import 'package:flutter/material.dart' ;
22import 'package:get/get.dart' ;
33import 'package:google_fonts/google_fonts.dart' ;
4+ import 'package:taskwarrior/app/utils/app_settings/app_settings.dart' ;
45import 'package:taskwarrior/app/utils/constants/constants.dart' ;
6+ import 'package:taskwarrior/app/utils/language/sentence_manager.dart' ;
57import 'package:taskwarrior/app/utils/themes/theme_extension.dart' ;
68import 'package:url_launcher/url_launcher.dart' ;
79import '../controllers/manage_task_champion_creds_controller.dart' ;
@@ -24,7 +26,9 @@ class ManageTaskChampionCredsView
2426 crossAxisAlignment: CrossAxisAlignment .start,
2527 children: [
2628 Text (
27- "Configure TaskChampion" ,
29+ SentenceManager (currentLanguage: AppSettings .selectedLanguage)
30+ .sentences
31+ .configureTaskchampion,
2832 style: GoogleFonts .poppins (
2933 color: TaskWarriorColors .white,
3034 fontSize: TaskWarriorFonts .fontSizeLarge,
@@ -65,7 +69,10 @@ class ManageTaskChampionCredsView
6569 style: TextStyle (color: tColors.primaryTextColor),
6670 controller: controller.encryptionSecretController,
6771 decoration: InputDecoration (
68- labelText: 'Encryption Secret' ,
72+ labelText: SentenceManager (
73+ currentLanguage: AppSettings .selectedLanguage)
74+ .sentences
75+ .encryptionSecret,
6976 labelStyle: TextStyle (color: tColors.primaryTextColor),
7077 border: const OutlineInputBorder (),
7178 ),
@@ -75,7 +82,10 @@ class ManageTaskChampionCredsView
7582 style: TextStyle (color: tColors.primaryTextColor),
7683 controller: controller.clientIdController,
7784 decoration: InputDecoration (
78- labelText: 'Client ID' ,
85+ labelText: SentenceManager (
86+ currentLanguage: AppSettings .selectedLanguage)
87+ .sentences
88+ .ccsyncClientId,
7989 labelStyle: TextStyle (color: tColors.primaryTextColor),
8090 border: const OutlineInputBorder (),
8191 ),
@@ -85,7 +95,10 @@ class ManageTaskChampionCredsView
8595 style: TextStyle (color: tColors.primaryTextColor),
8696 controller: controller.ccsyncBackendUrlController,
8797 decoration: InputDecoration (
88- labelText: 'CCSync Backend URL' ,
98+ labelText: SentenceManager (
99+ currentLanguage: AppSettings .selectedLanguage)
100+ .sentences
101+ .ccsyncBackendUrl,
89102 labelStyle: TextStyle (color: tColors.primaryTextColor),
90103 border: const OutlineInputBorder (),
91104 ),
@@ -95,8 +108,14 @@ class ManageTaskChampionCredsView
95108 onPressed: () async {
96109 await controller.saveCredentials ();
97110 Get .snackbar (
98- 'Success' ,
99- 'Credentials saved successfully' ,
111+ SentenceManager (
112+ currentLanguage: AppSettings .selectedLanguage)
113+ .sentences
114+ .success,
115+ SentenceManager (
116+ currentLanguage: AppSettings .selectedLanguage)
117+ .sentences
118+ .credentialsSavedSuccessfully,
100119 snackPosition: SnackPosition .BOTTOM ,
101120 duration: Duration (seconds: 2 ),
102121 );
@@ -105,7 +124,10 @@ class ManageTaskChampionCredsView
105124 ),
106125 const SizedBox (height: 10 ),
107126 Text (
108- 'Tip: Click on the info icon in the top right corner to get your credentials' ,
127+ SentenceManager (
128+ currentLanguage: AppSettings .selectedLanguage)
129+ .sentences
130+ .tip,
109131 style: TextStyle (
110132 fontSize: 15 ,
111133 color: tColors.primaryTextColor,
0 commit comments