Skip to content

Commit

Permalink
docs: update readme mentioning how to reset dates (#17)
Browse files Browse the repository at this point in the history
* docs: update readme mentioning how to reset dates

* chore: bump versions
  • Loading branch information
shan-shaji committed May 10, 2023
1 parent 2acca66 commit 50fcd74
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,6 @@
## 2.2.0
- Allows developers to dynamically select days using the setDaysState method after construction of the SelectWeekDays widget

## 2.1.1
- Fixed the range error issue

Expand Down
9 changes: 5 additions & 4 deletions README.md
Expand Up @@ -21,7 +21,7 @@ Add `day_picker` to your `pubspec.yaml` file.
```dependencies:
flutter:
sdk: flutter
day_picker: 2.1.0
day_picker: 2.2.0
```

import the package:
Expand Down Expand Up @@ -122,13 +122,11 @@ Pass a list of days of type `DayInWeek` into `days` property

```dart
class DayInWeek {
String dayName;
bool isSelected = false;
DayInWeek(this.dayName, {this.isSelected = false});
}
```

`DayInWeek` consist of two Properties [dayName] and [isSelected].
Expand Down Expand Up @@ -162,6 +160,9 @@ void handleOnSelect(List<String> value){
| unSelectedDayTextColor | `Color` | property to change the text color when the days are not selected |
| border | `bool` | Set this property to false if border is not needed around the rounded buttons[by default this property will be true] |

## Contributions
With the implementation of the `setDaysState` method, developers can dynamically modify which days are selected within their application's code, even after the `SelectWeekDays` widget has already been constructed.
By utilizing the Global Key that is passed into the widget, one can easily update the selected dates as desired.


## Contributions
Contributions of any kind are more than welcome😊! Feel free to fork and improve `day_picker` or open an issue.
2 changes: 1 addition & 1 deletion pubspec.yaml
@@ -1,6 +1,6 @@
name: day_picker
description: A Flutter widget library which helps us to select days in a week.
version: 2.1.1
version: 2.2.0
homepage: https://github.com/shan-shaji/day_picker

environment:
Expand Down

0 comments on commit 50fcd74

Please sign in to comment.