Committed by
David PHAM-VAN
Add color to DropdownMenuItem in pageFormat list
Showing
1 changed file
with
5 additions
and
1 deletions
| @@ -302,7 +302,11 @@ class _PdfPreviewState extends State<PdfPreview> { | @@ -302,7 +302,11 @@ class _PdfPreviewState extends State<PdfPreview> { | ||
| 302 | final key = keys[index]; | 302 | final key = keys[index]; |
| 303 | final val = _pageFormats[key]; | 303 | final val = _pageFormats[key]; |
| 304 | return DropdownMenuItem<PdfPageFormat>( | 304 | return DropdownMenuItem<PdfPageFormat>( |
| 305 | - child: Text(key), | 305 | + child: Text(key, |
| 306 | + style: TextStyle( | ||
| 307 | + color: theme.accentIconTheme.color | ||
| 308 | + ) | ||
| 309 | + ), | ||
| 306 | value: val, | 310 | value: val, |
| 307 | ); | 311 | ); |
| 308 | }, | 312 | }, |
-
Please register or login to post a comment