Commit 6e54e24
committed
refactor: simplify SettingsScreen UI and clean up code
- Remove header card with emoji and description from SettingsScreen
- Move save button to top-right corner as simple "SAVE" button
- Simplify GetBabyNameUseCase to single expression function
- Remove commented sync code from MainScreenViewModel
- Update TextField label from "My Baby's Name" to "Name"
- Remove save button loading state and full-width styling1 parent fb4f32c commit 6e54e24
3 files changed
Lines changed: 27 additions & 62 deletions
File tree
- app/src/main/java/com/dpconde/sofiatracker
- domain/usecase
- presentation
- main
- settings
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
13 | 13 | | |
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
35 | 33 | | |
36 | 34 | | |
37 | 35 | | |
| |||
Lines changed: 24 additions & 57 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| 7 | + | |
| 8 | + | |
6 | 9 | | |
7 | 10 | | |
8 | 11 | | |
9 | 12 | | |
| 13 | + | |
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
| |||
21 | 25 | | |
22 | 26 | | |
23 | 27 | | |
24 | | - | |
| 28 | + | |
25 | 29 | | |
26 | 30 | | |
27 | | - | |
28 | | - | |
| 31 | + | |
| 32 | + | |
29 | 33 | | |
30 | 34 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
43 | 44 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
| 45 | + | |
63 | 46 | | |
64 | 47 | | |
65 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
66 | 51 | | |
67 | 52 | | |
68 | 53 | | |
| |||
81 | 66 | | |
82 | 67 | | |
83 | 68 | | |
84 | | - | |
| 69 | + | |
85 | 70 | | |
86 | 71 | | |
87 | 72 | | |
88 | | - | |
| 73 | + | |
89 | 74 | | |
90 | 75 | | |
91 | 76 | | |
| |||
98 | 83 | | |
99 | 84 | | |
100 | 85 | | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
| 86 | + | |
120 | 87 | | |
121 | 88 | | |
122 | 89 | | |
| |||
134 | 101 | | |
135 | 102 | | |
136 | 103 | | |
137 | | - | |
| 104 | + | |
0 commit comments