@@ -1180,7 +1180,7 @@ class SfDateRangePicker extends StatelessWidget {
11801180 /// controller: _pickerController,
11811181 /// view: DateRangePickerView.month,
11821182 /// selectionMode: DateRangePickerSelectionMode.range,
1183- /// rangeSelectionColor: Colors.red.withOpacity( 0.4),
1183+ /// rangeSelectionColor: Colors.red.withValues(alpha: 0.4),
11841184 /// ),
11851185 /// ),
11861186 /// );
@@ -1389,7 +1389,7 @@ class SfDateRangePicker extends StatelessWidget {
13891389 /// width: 1),
13901390 /// shape: BoxShape.circle),
13911391 /// disabledDatesDecoration: BoxDecoration(
1392- /// color: const Color(0xFFDFDFDF).withOpacity( 0.2),
1392+ /// color: const Color(0xFFDFDFDF).withValues(alpha: 0.2),
13931393 /// border: Border.all(color: const Color(0xFFB6B6B6),
13941394 /// width: 1),
13951395 /// shape: BoxShape.circle),
@@ -1477,7 +1477,7 @@ class SfDateRangePicker extends StatelessWidget {
14771477 /// width: 1),
14781478 /// shape: BoxShape.circle),
14791479 /// disabledDatesDecoration: BoxDecoration(
1480- /// color: const Color(0xFFDFDFDF).withOpacity( 0.2),
1480+ /// color: const Color(0xFFDFDFDF).withValues(alpha: 0.2),
14811481 /// border: Border.all(color: const Color(0xFFB6B6B6),
14821482 /// width: 1),
14831483 /// shape: BoxShape.circle),
@@ -3831,7 +3831,7 @@ class SfHijriDateRangePicker extends StatelessWidget {
38313831 /// controller: _pickerController,
38323832 /// view: HijriDatePickerView.month,
38333833 /// selectionMode: DateRangePickerSelectionMode.range,
3834- /// rangeSelectionColor: Colors.red.withOpacity( 0.4),
3834+ /// rangeSelectionColor: Colors.red.withValues(alpha: 0.4),
38353835 /// ),
38363836 /// ),
38373837 /// );
@@ -4026,7 +4026,7 @@ class SfHijriDateRangePicker extends StatelessWidget {
40264026 /// fontWeight: FontWeight.w500,
40274027 /// color: Colors.red),
40284028 /// disabledDatesDecoration: BoxDecoration(
4029- /// color: const Color(0xFFDFDFDF).withOpacity( 0.2),
4029+ /// color: const Color(0xFFDFDFDF).withValues(alpha: 0.2),
40304030 /// border: Border.all(color: const Color(0xFFB6B6B6),
40314031 /// width: 1),
40324032 /// shape: BoxShape.circle),
@@ -4104,7 +4104,7 @@ class SfHijriDateRangePicker extends StatelessWidget {
41044104 /// fontWeight: FontWeight.w500,
41054105 /// color: Colors.red),
41064106 /// disabledDatesDecoration: BoxDecoration(
4107- /// color: const Color(0xFFDFDFDF).withOpacity( 0.2),
4107+ /// color: const Color(0xFFDFDFDF).withValues(alpha: 0.2),
41084108 /// border: Border.all(color: const Color(0xFFB6B6B6),
41094109 /// width: 1),
41104110 /// shape: BoxShape.circle),
@@ -5902,14 +5902,14 @@ class _SfDateRangePickerState extends State<_SfDateRangePicker>
59025902 effectiveThemeData.weekNumberBackgroundColor,
59035903 viewHeaderTextStyle: themeData.textTheme.bodyMedium!
59045904 .copyWith(
5905- color: colorScheme.onSurface.withOpacity( 0.87),
5905+ color: colorScheme.onSurface.withValues(alpha: 0.87),
59065906 fontSize: 14,
59075907 )
59085908 .merge(pickerTheme.viewHeaderTextStyle)
59095909 .merge(widget.monthViewSettings.viewHeaderStyle.textStyle),
59105910 headerTextStyle: themeData.textTheme.bodyLarge!
59115911 .copyWith(
5912- color: colorScheme.onSurface.withOpacity( 0.87),
5912+ color: colorScheme.onSurface.withValues(alpha: 0.87),
59135913 fontSize: 16,
59145914 fontWeight: FontWeight.w400,
59155915 )
@@ -5919,7 +5919,7 @@ class _SfDateRangePickerState extends State<_SfDateRangePicker>
59195919 (widget.monthCellStyle is DateRangePickerMonthCellStyle)
59205920 ? themeData.textTheme.bodyMedium!
59215921 .copyWith(
5922- color: colorScheme.onSurface.withOpacity( 0.54),
5922+ color: colorScheme.onSurface.withValues(alpha: 0.54),
59235923 fontSize: 13,
59245924 )
59255925 .merge(pickerTheme.trailingDatesTextStyle)
@@ -5929,22 +5929,22 @@ class _SfDateRangePickerState extends State<_SfDateRangePicker>
59295929 (widget.yearCellStyle is DateRangePickerYearCellStyle)
59305930 ? themeData.textTheme.bodyMedium!
59315931 .copyWith(
5932- color: colorScheme.onSurface.withOpacity( 0.54),
5932+ color: colorScheme.onSurface.withValues(alpha: 0.54),
59335933 fontSize: 13,
59345934 )
59355935 .merge(pickerTheme.leadingCellTextStyle)
59365936 .merge(widget.yearCellStyle.leadingDatesTextStyle)
59375937 : null,
59385938 activeDatesTextStyle: themeData.textTheme.bodyMedium!
59395939 .copyWith(
5940- color: colorScheme.onSurface.withOpacity( 0.87),
5940+ color: colorScheme.onSurface.withValues(alpha: 0.87),
59415941 fontSize: 13,
59425942 )
59435943 .merge(pickerTheme.activeDatesTextStyle)
59445944 .merge(widget.monthCellStyle.textStyle),
59455945 cellTextStyle: themeData.textTheme.bodyMedium!
59465946 .copyWith(
5947- color: colorScheme.onSurface.withOpacity( 0.87),
5947+ color: colorScheme.onSurface.withValues(alpha: 0.87),
59485948 fontSize: 13,
59495949 )
59505950 .merge(pickerTheme.cellTextStyle)
@@ -5953,29 +5953,29 @@ class _SfDateRangePickerState extends State<_SfDateRangePicker>
59535953 (widget.monthCellStyle is DateRangePickerMonthCellStyle)
59545954 ? themeData.textTheme.bodyMedium!
59555955 .copyWith(
5956- color: colorScheme.onSurface.withOpacity( 0.54),
5956+ color: colorScheme.onSurface.withValues(alpha: 0.54),
59575957 fontSize: 13,
59585958 )
59595959 .merge(pickerTheme.leadingDatesTextStyle)
59605960 .merge(widget.monthCellStyle.leadingDatesTextStyle)
59615961 : null,
59625962 rangeSelectionTextStyle: themeData.textTheme.bodyMedium!
59635963 .copyWith(
5964- color: colorScheme.onSurface.withOpacity( 0.87),
5964+ color: colorScheme.onSurface.withValues(alpha: 0.87),
59655965 fontSize: 13,
59665966 )
59675967 .merge(pickerTheme.rangeSelectionTextStyle)
59685968 .merge(widget.rangeTextStyle),
59695969 disabledDatesTextStyle: themeData.textTheme.bodyMedium!
59705970 .copyWith(
5971- color: colorScheme.onSurface.withOpacity( 0.38),
5971+ color: colorScheme.onSurface.withValues(alpha: 0.38),
59725972 fontSize: 13,
59735973 )
59745974 .merge(pickerTheme.disabledDatesTextStyle)
59755975 .merge(widget.monthCellStyle.disabledDatesTextStyle),
59765976 disabledCellTextStyle: themeData.textTheme.bodyMedium!
59775977 .copyWith(
5978- color: colorScheme.onSurface.withOpacity( 0.38),
5978+ color: colorScheme.onSurface.withValues(alpha: 0.38),
59795979 fontSize: 13,
59805980 )
59815981 .merge(pickerTheme.disabledCellTextStyle)
@@ -5989,7 +5989,7 @@ class _SfDateRangePickerState extends State<_SfDateRangePicker>
59895989 .merge(widget.selectionTextStyle),
59905990 weekNumberTextStyle: themeData.textTheme.bodyMedium!
59915991 .copyWith(
5992- color: colorScheme.onSurface.withOpacity( 0.87),
5992+ color: colorScheme.onSurface.withValues(alpha: 0.87),
59935993 fontSize: 13,
59945994 )
59955995 .merge(pickerTheme.weekNumberTextStyle)
@@ -6019,7 +6019,7 @@ class _SfDateRangePickerState extends State<_SfDateRangePicker>
60196019 ? pickerTheme.blackoutDatesTextStyle
60206020 : themeData.textTheme.bodyMedium!
60216021 .copyWith(
6022- color: colorScheme.onSurface.withOpacity( 0.87),
6022+ color: colorScheme.onSurface.withValues(alpha: 0.87),
60236023 fontSize: 13,
60246024 )
60256025 .merge(pickerTheme.blackoutDatesTextStyle)
@@ -6030,7 +6030,7 @@ class _SfDateRangePickerState extends State<_SfDateRangePicker>
60306030 ? pickerTheme.specialDatesTextStyle
60316031 : themeData.textTheme.bodyMedium!
60326032 .copyWith(
6033- color: colorScheme.onSurface.withOpacity( 0.87),
6033+ color: colorScheme.onSurface.withValues(alpha: 0.87),
60346034 fontSize: 13,
60356035 )
60366036 .merge(pickerTheme.specialDatesTextStyle)
@@ -6041,7 +6041,7 @@ class _SfDateRangePickerState extends State<_SfDateRangePicker>
60416041 ? pickerTheme.weekendDatesTextStyle
60426042 : themeData.textTheme.bodyMedium!
60436043 .copyWith(
6044- color: colorScheme.onSurface.withOpacity( 0.87),
6044+ color: colorScheme.onSurface.withValues(alpha: 0.87),
60456045 fontSize: 13,
60466046 )
60476047 .merge(pickerTheme.weekendDatesTextStyle)
@@ -8031,7 +8031,7 @@ class _PickerHeaderViewState extends State<_PickerHeaderView> {
80318031 }
80328032
80338033 Color arrowColor = widget.datePickerTheme.headerTextStyle!.color!;
8034- arrowColor = arrowColor.withOpacity( arrowColor.opacity * 0.6);
8034+ arrowColor = arrowColor.withValues(alpha: arrowColor.a * 0.6);
80358035 Color prevArrowColor = arrowColor;
80368036 Color nextArrowColor = arrowColor;
80378037 final List<dynamic> dates = widget.visibleDates.value;
@@ -8043,7 +8043,7 @@ class _PickerHeaderViewState extends State<_PickerHeaderView> {
80438043 dates,
80448044 widget.enableMultiView,
80458045 widget.isHijri)) {
8046- nextArrowColor = nextArrowColor.withOpacity( arrowColor.opacity * 0.5);
8046+ nextArrowColor = nextArrowColor.withValues(alpha: arrowColor.a * 0.5);
80478047 }
80488048
80498049 if (showNavigationArrow &&
@@ -8054,7 +8054,7 @@ class _PickerHeaderViewState extends State<_PickerHeaderView> {
80548054 dates,
80558055 widget.enableMultiView,
80568056 widget.isHijri)) {
8057- prevArrowColor = prevArrowColor.withOpacity( arrowColor.opacity * 0.5);
8057+ prevArrowColor = prevArrowColor.withValues(alpha: arrowColor.a * 0.5);
80588058 }
80598059
80608060 final Widget headerText = _getHeaderText(headerWidth, isMobilePlatform);
0 commit comments