Commit 87da5d4
authored
feat(text-editor): add inputLetterSpacing and inputShadows to TextEditorStyle (#788)
Instead of hard-coding letterSpacing: 0 and shadows: [] in the text
input copyWith, move these values into TextEditorStyle as configurable
properties with the same defaults:
- inputLetterSpacing (default: 0) — fixes font alignment issues
- inputShadows (default: []) — prevents unwanted shadow rendering
This preserves the existing behavior by default while allowing users
to override these values (e.g. set to null) when they need the font's
native letter spacing or shadows.
Both hintStyle and style in TextEditorInput now read from these
style properties.1 parent 3f3128e commit 87da5d4
2 files changed
Lines changed: 22 additions & 3 deletions
File tree
- lib
- core/models/styles
- features/text_editor/widgets
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
78 | 80 | | |
79 | 81 | | |
80 | 82 | | |
| |||
129 | 131 | | |
130 | 132 | | |
131 | 133 | | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
132 | 146 | | |
133 | 147 | | |
134 | 148 | | |
| |||
166 | 180 | | |
167 | 181 | | |
168 | 182 | | |
| 183 | + | |
| 184 | + | |
169 | 185 | | |
170 | 186 | | |
171 | 187 | | |
| |||
192 | 208 | | |
193 | 209 | | |
194 | 210 | | |
| 211 | + | |
| 212 | + | |
195 | 213 | | |
196 | 214 | | |
197 | 215 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
203 | | - | |
| 203 | + | |
| 204 | + | |
204 | 205 | | |
205 | 206 | | |
206 | 207 | | |
207 | 208 | | |
208 | 209 | | |
209 | | - | |
| 210 | + | |
| 211 | + | |
210 | 212 | | |
211 | | - | |
212 | 213 | | |
213 | 214 | | |
214 | 215 | | |
| |||
0 commit comments