nepali_date_picker
nepali_date_picker copied to clipboard
Material Style Date Picker with Bikram Sambat(Nepali) Calendar Support. Supports both Android and ios.
date not converted properly here is sample code final DateTime? picked = await showDatePicker( context: context, initialDate:DateTime.now(), firstDate: DateTime(2010), lastDate: DateTime(2100), ); final nep= picked!.toNepaliDateTime(); final d= NepaliDateTime.now(); log("date eng-----------...
  Flutter Version 3.19 Testing device Google pixel 3a Can't change the calendar date to Nepali
════════ 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!)'...
` await picker .showMaterialDatePicker( context: context, initialDate: selectedDate?.toNepaliDateTime() ?? NepaliDateTime.now(), firstDate: NepaliDateTime(2000), lastDate: disallowFutureDate == true ? NepaliDateTime.now() : NepaliDateTime(2090), initialEntryMode: DatePickerEntryMode.calendarOnly, ) ` [  ](url)
* Give user option to add custom styles and color to the calendar * Changed name to NepaliCalender of a widget as it was confusing to the inbuilt widget of...
Year Picker को code त पहिले नै थियो मात्र normal userलाई accessible थिएन, त्यो बनाई दिएको छु| मलाई Month Picker पनी चाहिएको थियो, अरु लाई पनी काम लाग्न सक्छ भनेर...
The previous code snippet did not allow selecting an initial date past the end date. Also, there was an issue with the null check where the method was called after...
import 'package:flutter_test/flutter_test.dart'; import 'package:nepali_date_picker/nepali_date_picker.dart'; void main(){ test("Date test", () { expect(NepaliDateTime.now().toString().substring(0,10), "2081-03-28"); }); } The expected today date is this but it is showing: ``` package:matcher expect package:flutter_test/src/widget_tester.dart 474:18 expect...
For testing out the fused date picker: ```yaml nepali_date_picker: git: url: https://github.com/sarbagyastha/nepali_date_picker.git ref: fused ```