@@ -114,13 +114,6 @@ class _TransactionSearchViewState
114114 var _selectedFromDate = DateTime (2007 );
115115 var _selectedToDate = DateTime .now ();
116116
117- TextStyle get _datePickerTextStyleBase => GoogleFonts .inter (
118- color: baseColor,
119- fontSize: 12 ,
120- fontWeight: FontWeight .w400,
121- letterSpacing: 0.5 ,
122- );
123-
124117 MaterialRoundedDatePickerStyle _buildDatePickerStyle () {
125118 return MaterialRoundedDatePickerStyle (
126119 backgroundPicker: Theme .of (context).extension < StackColors > ()! .popupBG,
@@ -129,30 +122,56 @@ class _TransactionSearchViewState
129122 colorArrowNext: Theme .of (context).extension < StackColors > ()! .textSubtitle1,
130123 colorArrowPrevious:
131124 Theme .of (context).extension < StackColors > ()! .textSubtitle1,
132- textStyleButtonNegative: _datePickerTextStyleBase.copyWith (
133- fontSize: 16 , fontWeight: FontWeight .w600),
134- textStyleButtonPositive: _datePickerTextStyleBase.copyWith (
135- fontSize: 16 , fontWeight: FontWeight .w600),
136- textStyleCurrentDayOnCalendar: _datePickerTextStyleBase.copyWith (
137- color: Theme .of (context).extension < StackColors > ()! .accentColorDark),
138- textStyleDayHeader: _datePickerTextStyleBase.copyWith (
125+ textStyleButtonNegative: GoogleFonts .inter (
126+ letterSpacing: 0.5 ,
127+ color: baseColor,
128+ fontSize: 16 ,
129+ fontWeight: FontWeight .w600,
130+ ),
131+ textStyleButtonPositive: GoogleFonts .inter (
132+ letterSpacing: 0.5 ,
133+ color: baseColor,
134+ fontSize: 16 ,
135+ fontWeight: FontWeight .w600,
136+ ),
137+ textStyleCurrentDayOnCalendar: GoogleFonts .inter (
138+ letterSpacing: 0.5 ,
139+ color: Theme .of (context).extension < StackColors > ()! .accentColorDark,
140+ fontWeight: FontWeight .w400,
141+ fontSize: 12 ,
142+ ),
143+ textStyleDayHeader: GoogleFonts .inter (
144+ letterSpacing: 0.5 ,
139145 color: Theme .of (context).extension < StackColors > ()! .accentColorDark,
140146 fontSize: 16 ,
141147 fontWeight: FontWeight .w600,
142148 ),
143- textStyleDayOnCalendar: _datePickerTextStyleBase,
144- textStyleDayOnCalendarDisabled: _datePickerTextStyleBase.copyWith (
149+ textStyleDayOnCalendar: GoogleFonts .inter (
150+ letterSpacing: 0.5 ,
151+ color: baseColor,
152+ fontSize: 12 ,
153+ fontWeight: FontWeight .w400,
154+ ),
155+ textStyleDayOnCalendarDisabled: GoogleFonts .inter (
156+ letterSpacing: 0.5 ,
145157 color: Theme .of (context).extension < StackColors > ()! .textSubtitle3,
158+ fontWeight: FontWeight .w400,
159+ fontSize: 12 ,
146160 ),
147- textStyleDayOnCalendarSelected: _datePickerTextStyleBase.copyWith (
161+ textStyleDayOnCalendarSelected: GoogleFonts .inter (
162+ letterSpacing: 0.5 ,
148163 color: Theme .of (context).extension < StackColors > ()! .textWhite,
164+ fontWeight: FontWeight .w400,
165+ fontSize: 12 ,
149166 ),
150- textStyleMonthYearHeader: _datePickerTextStyleBase.copyWith (
167+ textStyleMonthYearHeader: GoogleFonts .inter (
168+ letterSpacing: 0.5 ,
151169 color: Theme .of (context).extension < StackColors > ()! .textSubtitle1,
152170 fontSize: 16 ,
153171 fontWeight: FontWeight .w600,
154172 ),
155- textStyleYearButton: _datePickerTextStyleBase.copyWith (
173+ textStyleYearButton: GoogleFonts .inter (
174+ letterSpacing: 0.5 ,
156175 color: Theme .of (context).extension < StackColors > ()! .textWhite,
157176 fontSize: 16 ,
158177 fontWeight: FontWeight .w600,
@@ -164,12 +183,14 @@ class _TransactionSearchViewState
164183 MaterialRoundedYearPickerStyle _buildYearPickerStyle () {
165184 return MaterialRoundedYearPickerStyle (
166185 backgroundPicker: Theme .of (context).extension < StackColors > ()! .popupBG,
167- textStyleYear: _datePickerTextStyleBase.copyWith (
186+ textStyleYear: GoogleFonts .inter (
187+ letterSpacing: 0.5 ,
168188 color: Theme .of (context).extension < StackColors > ()! .textSubtitle2,
169189 fontWeight: FontWeight .w600,
170190 fontSize: 16 ,
171191 ),
172- textStyleYearSelected: _datePickerTextStyleBase.copyWith (
192+ textStyleYearSelected: GoogleFonts .inter (
193+ letterSpacing: 0.5 ,
173194 color: Theme .of (context).extension < StackColors > ()! .accentColorDark,
174195 fontWeight: FontWeight .w600,
175196 fontSize: 18 ,
0 commit comments