1.3 KiB
1.3 KiB
TODO - Evaporasi Date Picker Feature
Status: COMPLETED ✅
Steps:
- 1. Add table_calendar package to pubspec.yaml
- 2. Update EvaporasiState - add selectedDate and EvaporasiViewMode
- 3. Update EvaporasiEvent - add EvaporasiDateSelected and EvaporasiViewModeChanged
- 4. Update EvaporasiBloc - handle date selection + view mode
- 5. Add toSpecificDate function to TimeSeriesMapper
- 6. Create EvaporasiDatePicker widget (WhatsApp-style calendar)
- 7. Update EvaporasiPeriodSelector - add date picker button
- 8. Update EvaporasiScreen - integrate date picker + show selected date
- 9. Update EvaporasiChartWidget - handle custom date display (already supports "Tanggal Khusus")
Summary:
Feature implemented successfully:
- Date Picker Button: Added next to period tabs (Hari Ini, Minggu Ini, Bulan Ini)
- WhatsApp-style Calendar: Using table_calendar with Indonesian format
- Custom Date Display: Shows selected date above the period selector
- 24-hour Chart: For custom date, shows hourly data (same as "Hari Ini")
- Period Mode: Users can switch back to period mode by clicking any period tab
Notes:
- Using table_calendar: ^3.1.2
- Date format: Indonesian locale (id_ID)
- Similar to WhatsApp chat date picker functionality