GaspardMerten / date_range_picker

Date Range Picker is a user-friendly and simple package for Flutter that allows users to select a date range. It's designed to evolve over time, and its components are built to be reusable.
MIT License
12 stars 31 forks source link

Change the first day of the week from Sunday to Monday #9

Closed ghost closed 8 months ago

ghost commented 1 year ago

Could not find in the documentation if there is an option to provide Locale to change the first day of the week from Sunday to Monday.

mauriziopinotti commented 8 months ago

@asapbox I've pushed a PR to add the option: https://github.com/GaspardMerten/date_range_picker/pull/15

DateRangePickerWidget(
    ...
    firstDayOfWeek: 1, // Monday
);

While it's being merged you can use my fork adding the override in pubspec.yaml:

dependency_overrides:
  flutter_date_range_picker:
    git: https://github.com/easyhour/date_range_picker.git
GaspardMerten commented 8 months ago

PR has been merged, thank you.