@@ -5,13 +5,15 @@ import 'package:flutter/material.dart';
5
5
import 'package:get/get.dart' ;
6
6
import 'package:google_fonts/google_fonts.dart' ;
7
7
import 'package:taskwarrior/app/modules/settings/views/settings_page_body.dart' ;
8
+ import 'package:taskwarrior/app/routes/app_pages.dart' ;
8
9
import 'package:taskwarrior/app/utils/constants/taskwarrior_fonts.dart' ;
9
10
11
+ import 'package:taskwarrior/app/utils/language/sentences.dart' ;
12
+
10
13
import '../controllers/settings_controller.dart' ;
11
14
12
15
import 'package:taskwarrior/app/utils/constants/palette.dart' ;
13
16
import 'package:taskwarrior/app/utils/constants/taskwarrior_colors.dart' ;
14
- import 'package:taskwarrior/app/utils/theme/app_settings.dart' ;
15
17
16
18
class SettingsView extends GetView <SettingsController > {
17
19
const SettingsView ({super .key});
@@ -25,35 +27,42 @@ class SettingsView extends GetView<SettingsController> {
25
27
mainAxisAlignment: MainAxisAlignment .start,
26
28
crossAxisAlignment: CrossAxisAlignment .start,
27
29
children: [
28
- Text (
29
- 'Settings' ,
30
- style: GoogleFonts .poppins (
31
- color: TaskWarriorColors .white,
32
- fontSize: TaskWarriorFonts .fontSizeLarge,
30
+ Obx (
31
+ () => Text (
32
+ SentenceManager (
33
+ currentLanguage: controller.selectedLanguage.value)
34
+ .sentences
35
+ .settingsPageTitle,
36
+ style: GoogleFonts .poppins (
37
+ color: TaskWarriorColors .white,
38
+ fontSize: TaskWarriorFonts .fontSizeLarge,
39
+ ),
33
40
),
34
41
),
35
- Text (
36
- 'Configure your preferences' ,
37
- style: GoogleFonts .poppins (
38
- color: TaskWarriorColors .white,
39
- fontSize: TaskWarriorFonts .fontSizeSmall,
42
+ Obx (
43
+ () => Text (
44
+ SentenceManager (
45
+ currentLanguage: controller.selectedLanguage.value)
46
+ .sentences
47
+ .settingsPageSubtitle,
48
+ style: GoogleFonts .poppins (
49
+ color: TaskWarriorColors .white,
50
+ fontSize: TaskWarriorFonts .fontSizeSmall,
51
+ ),
40
52
),
41
53
),
42
54
],
43
55
),
44
56
leading: GestureDetector (
45
57
onTap: () {
46
- Navigator . pop (context );
58
+ Get . offAllNamed ( Routes . SPLASH );
47
59
},
48
60
child: Icon (
49
61
Icons .chevron_left,
50
62
color: TaskWarriorColors .white,
51
63
),
52
64
),
53
65
),
54
- backgroundColor: AppSettings .isDarkMode
55
- ? TaskWarriorColors .kprimaryBackgroundColor
56
- : TaskWarriorColors .white,
57
66
body: SettingsPageBody (controller: controller),
58
67
);
59
68
}
0 commit comments