You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i have installed the package and integrate it in my code:
EasyDateTimeLinePicker.itemBuilder(
firstDate: DateTime(2025, 1, 1),
lastDate: DateTime(2030, 3, 18),
focusedDate: DateTime.now(),
itemExtent: 64.0,
itemBuilder:
(context, date, isSelected, isDisabled, isToday, onTap) {
return InkResponse(
onTap: onTap,
child: CircleAvatar(
backgroundColor: isSelected ? Colors.blue : null,
child: Text(date.day.toString()),
),
);
},
onDateChange: (date) {
// setState(() {
// _selectedDate = date;
// });
},
),
Now i get following error message:
Error (Xcode): ../../.pub-cache/hosted/pub.dev/easy_date_timeline-2.0.6/lib/src/easy_date_time_line_picker/picker/picker_button/picker_button.dart:62:54: Error: The method 'withValues' isn't defined for the class 'Color'.
Could not build the application for the simulator.
Error launching application on iPhone 16 Pro.
Can you help me?
The text was updated successfully, but these errors were encountered:
@TechSchuppen-SH@ZontarZon@kewitschka
Hi, this issue occurs because withValues is compatible only with the latest Flutter version (27.0.1). If you're not using this version, you can use easy_date_timeline 2.0.4, which should work for you.
i have installed the package and integrate it in my code:
EasyDateTimeLinePicker.itemBuilder(
firstDate: DateTime(2025, 1, 1),
lastDate: DateTime(2030, 3, 18),
focusedDate: DateTime.now(),
itemExtent: 64.0,
itemBuilder:
(context, date, isSelected, isDisabled, isToday, onTap) {
return InkResponse(
onTap: onTap,
child: CircleAvatar(
backgroundColor: isSelected ? Colors.blue : null,
child: Text(date.day.toString()),
),
);
},
onDateChange: (date) {
// setState(() {
// _selectedDate = date;
// });
},
),
Now i get following error message:
Error (Xcode): ../../.pub-cache/hosted/pub.dev/easy_date_timeline-2.0.6/lib/src/easy_date_time_line_picker/picker/picker_button/picker_button.dart:62:54: Error: The method 'withValues' isn't defined for the class 'Color'.
Could not build the application for the simulator.
Error launching application on iPhone 16 Pro.
Can you help me?
The text was updated successfully, but these errors were encountered: