Showing
2 changed files
with
3 additions
and
3 deletions
@@ -76,12 +76,12 @@ class Calendar extends StatelessWidget { | @@ -76,12 +76,12 @@ class Calendar extends StatelessWidget { | ||
76 | PdfColor color = PdfColors.grey300; | 76 | PdfColor color = PdfColors.grey300; |
77 | 77 | ||
78 | if (currentDay) { | 78 | if (currentDay) { |
79 | - style = TextStyle(color: PdfColors.red); | 79 | + style = const TextStyle(color: PdfColors.red); |
80 | color = PdfColors.lightBlue50; | 80 | color = PdfColors.lightBlue50; |
81 | } | 81 | } |
82 | 82 | ||
83 | if (!currentMonth) { | 83 | if (!currentMonth) { |
84 | - style = TextStyle(color: PdfColors.grey); | 84 | + style = const TextStyle(color: PdfColors.grey); |
85 | color = PdfColors.grey100; | 85 | color = PdfColors.grey100; |
86 | } | 86 | } |
87 | 87 |
@@ -37,7 +37,7 @@ Uint8List buildPdf() { | @@ -37,7 +37,7 @@ Uint8List buildPdf() { | ||
37 | child: FittedBox( | 37 | child: FittedBox( |
38 | child: Text( | 38 | child: Text( |
39 | 'Hello!', | 39 | 'Hello!', |
40 | - style: TextStyle(color: PdfColors.blueGrey), | 40 | + style: const TextStyle(color: PdfColors.blueGrey), |
41 | ), | 41 | ), |
42 | ), | 42 | ), |
43 | ); | 43 | ); |
-
Please register or login to post a comment