sarbagyastha / nepali_date_picker

Material Style Date Picker with Bikram Sambat(Nepali) Calendar Support. Supports both Android and ios.
BSD 3-Clause "New" or "Revised" License
40 stars 29 forks source link

initialStartDate must be on or before initialEndDate #24

Open innovatoraakash opened 8 months ago

innovatoraakash commented 8 months ago

════════ Exception caught by widgets library ═══════════════════════════════════ initialStartDate must be on or before initialEndDate. 'package:nepali_date_picker/src/material/date_picker.dart': Failed assertion: line 1266 pos 9: 'this.initialStartDate == null || this.initialEndDate == null || !this.initialStartDate!.isAfter(initialEndDate!)'

When we select 2 dates it becomes a range. Now if we click on third date to change the initial one it gives this error. This error is introduced after version 6.0.0

Nabinda commented 5 months ago

Any updates on this