@@ -24,7 +24,7 @@ class FocusScreen extends StatelessWidget {
2424 return AlertDialog (
2525 backgroundColor: Colors .white,
2626 shape: RoundedRectangleBorder (borderRadius: BorderRadius .circular (20 )),
27- title: const Text ('Settings ' , style: TextStyle (fontWeight: FontWeight .bold, color: Color (0xFF2C3E50 ))),
27+ title: const Text ('Cài đặt ' , style: TextStyle (fontWeight: FontWeight .bold, color: Color (0xFF2C3E50 ))),
2828 content: SingleChildScrollView (
2929 child: Column (
3030 mainAxisSize: MainAxisSize .min,
@@ -34,27 +34,27 @@ class FocusScreen extends StatelessWidget {
3434 mainAxisAlignment: MainAxisAlignment .spaceBetween,
3535 children: [
3636 const Text ('Pomodoro' , style: TextStyle (fontWeight: FontWeight .bold, fontSize: 14 )),
37- Text ('${currentPomodoro .toInt ()} min ' , style: const TextStyle (color: AppColors .primaryBlue, fontWeight: FontWeight .bold)),
37+ Text ('${currentPomodoro .toInt ()} phút ' , style: const TextStyle (color: AppColors .primaryBlue, fontWeight: FontWeight .bold)),
3838 ],
3939 ),
4040 Slider (value: currentPomodoro, min: 5 , max: 60 , divisions: 55 , activeColor: AppColors .primaryBlue, onChanged: (val) => setStateDialog (() => currentPomodoro = val)),
4141 const SizedBox (height: 5 ),
4242 Row (
4343 mainAxisAlignment: MainAxisAlignment .spaceBetween,
4444 children: [
45- const Text ('Short Break ' , style: TextStyle (fontWeight: FontWeight .bold, fontSize: 14 )),
46- Text ('${currentBreak .toInt ()} min ' , style: const TextStyle (color: Colors .orange, fontWeight: FontWeight .bold)),
45+ const Text ('Nghỉ ngắn ' , style: TextStyle (fontWeight: FontWeight .bold, fontSize: 14 )),
46+ Text ('${currentBreak .toInt ()} phút ' , style: const TextStyle (color: Colors .orange, fontWeight: FontWeight .bold)),
4747 ],
4848 ),
4949 Slider (value: currentBreak, min: 1 , max: 30 , divisions: 29 , activeColor: Colors .orange, onChanged: (val) => setStateDialog (() => currentBreak = val)),
5050 const Divider (height: 30 ),
5151 SwitchListTile (
52- title: const Text ('Vibrate ' , style: TextStyle (fontWeight: FontWeight .bold, fontSize: 14 )),
52+ title: const Text ('Rung ' , style: TextStyle (fontWeight: FontWeight .bold, fontSize: 14 )),
5353 value: currentVibrate, activeColor: AppColors .primaryBlue, contentPadding: EdgeInsets .zero,
5454 onChanged: (val) => setStateDialog (() => currentVibrate = val),
5555 ),
5656 const SizedBox (height: 10 ),
57- const Text ('Sound ' , style: TextStyle (fontWeight: FontWeight .bold, fontSize: 14 )),
57+ const Text ('Âm thanh ' , style: TextStyle (fontWeight: FontWeight .bold, fontSize: 14 )),
5858 const SizedBox (height: 10 ),
5959 Container (
6060 padding: const EdgeInsets .symmetric (horizontal: 15 ),
@@ -64,9 +64,9 @@ class FocusScreen extends StatelessWidget {
6464 isExpanded: true ,
6565 value: currentRingtone,
6666 items: const [
67- DropdownMenuItem (value: 1 , child: Text ('Alarm (Loud )' )),
68- DropdownMenuItem (value: 2 , child: Text ('Notification (Soft )' )),
69- DropdownMenuItem (value: 3 , child: Text ('Ringtone ' )),
67+ DropdownMenuItem (value: 1 , child: Text ('Chuông (Lớn )' )),
68+ DropdownMenuItem (value: 2 , child: Text ('Thông báo (Nhỏ )' )),
69+ DropdownMenuItem (value: 3 , child: Text ('Nhạc chuông ' )),
7070 ],
7171 onChanged: (val) {
7272 if (val != null ) setStateDialog (() => currentRingtone = val);
@@ -78,14 +78,14 @@ class FocusScreen extends StatelessWidget {
7878 ),
7979 ),
8080 actions: [
81- TextButton (onPressed: () => Navigator .pop (context), child: const Text ('Cancel ' , style: TextStyle (color: Colors .grey))),
81+ TextButton (onPressed: () => Navigator .pop (context), child: const Text ('Hủy ' , style: TextStyle (color: Colors .grey))),
8282 ElevatedButton (
8383 onPressed: () {
8484 vm.updateSettings (newPomodoroMinutes: currentPomodoro.toInt (), newBreakMinutes: currentBreak.toInt (), vibrate: currentVibrate, ringtone: currentRingtone);
8585 Navigator .pop (context);
8686 },
8787 style: ElevatedButton .styleFrom (backgroundColor: AppColors .primaryBlue, shape: RoundedRectangleBorder (borderRadius: BorderRadius .circular (10 ))),
88- child: const Text ('Save ' , style: TextStyle (color: Colors .white)),
88+ child: const Text ('Lưu ' , style: TextStyle (color: Colors .white)),
8989 ),
9090 ],
9191 );
@@ -112,7 +112,7 @@ class FocusScreen extends StatelessWidget {
112112 children: [
113113 CircleAvatar (radius: 22 , backgroundImage: NetworkImage ('https://i.pravatar.cc/150?u=a042581f4e29026704d' )),
114114 SizedBox (width: 15 ),
115- Text ('Focus ' , style: TextStyle (fontSize: 24 , fontWeight: FontWeight .bold, color: Color (0xFF2C3E50 ))),
115+ Text ('Tập trung ' , style: TextStyle (fontSize: 24 , fontWeight: FontWeight .bold, color: Color (0xFF2C3E50 ))),
116116 ],
117117 ),
118118 GestureDetector (
0 commit comments