Skip to content

Commit 76d69c5

Browse files
committed
bumped to version 2.2.0
1 parent eae8094 commit 76d69c5

File tree

8 files changed

+9
-11
lines changed

8 files changed

+9
-11
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 2.2.0
4+
5+
* **New Feature**: Support for custom slide indicators added.
6+
37
## 2.1.2
48

59
* **Documentation**: Updated the documentation to display the sceenshots.

README.md

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ A customizable carousel slider widget in Flutter which supports infinite scrolli
1919
- [flutter\_carousel\_widget](#flutter_carousel_widget)
2020
- [Table of Contents](#table-of-contents)
2121
- [Features](#features)
22-
- [Screenshots](#screenshots)
2322
- [Demo](#demo)
2423
- [Installation](#installation)
2524
- [Usage](#usage)
@@ -33,7 +32,7 @@ A customizable carousel slider widget in Flutter which supports infinite scrolli
3332
- [`.previousPage({Duration duration, Curve curve})`](#previouspageduration-duration-curve-curve)
3433
- [`.jumpToPage(int page)`](#jumptopageint-page)
3534
- [`.animateToPage(int page, {Duration duration, Curve curve})`](#animatetopageint-page-duration-duration-curve-curve)
36-
- [Slide indicators](#slide-indicators)
35+
- [Custom Slide Indicators](#custom-slide-indicators)
3736
- [Contributing](#contributing)
3837
- [License](#license)
3938
- [Sponsor Me](#sponsor-me)
@@ -51,16 +50,10 @@ A customizable carousel slider widget in Flutter which supports infinite scrolli
5150
- Expandable Carousel Widget.
5251
- Auto-sized child support.
5352

54-
## Screenshots
55-
56-
![Screenshot 1](https://raw.githubusercontent.com/nixrajput/flutter_carousel_widget/master/screenshots/screenshot-1.png)
57-
![Screenshot 2](https://raw.githubusercontent.com/nixrajput/flutter_carousel_widget/master/screenshots/screenshot-2.png)
58-
![Screenshot 3](https://raw.githubusercontent.com/nixrajput/flutter_carousel_widget/master/screenshots/screenshot-3.png)
59-
![Screenshot 4](https://raw.githubusercontent.com/nixrajput/flutter_carousel_widget/master/screenshots/screenshot-4.png)
60-
![Screenshot 5](https://raw.githubusercontent.com/nixrajput/flutter_carousel_widget/master/screenshots/screenshot-5.png)
61-
6253
## Demo
6354

55+
![Demo](https://raw.githubusercontent.com/nixrajput/flutter_carousel_widget/master/screenshots/flutter_carousel_widget_demo.gif)
56+
6457
[View Demo](https://nixrajput.github.io/flutter_carousel_widget)
6558

6659
## Installation
@@ -242,13 +235,14 @@ Jump to the given page.
242235

243236
Animate to the given page.
244237

245-
## Slide indicators
238+
## Custom Slide Indicators
246239

247240
The `flutter_carousel_widget` package comes with a few [predefined slide indicators](https://github.com/nixrajput/flutter_carousel_widget/tree/master/lib/src/indicators) with their own unique behaviors. This helps drastically and brings focus towards the actual implementation of your carousel widget.
248241

249242
However, there might be cases where you want to control the look or behavior of the slide indicator or implement a totally new one. You can do that by implementing the `SlideIndicator` contract.
250243

251244
The following example implements an indicator which tells the percentage of the slide the user is on:
245+
252246
```dart
253247
class SlidePercentageIndicator implements SlideIndicator {
254248
SlidePercentageIndicator({
1.54 MB
Loading

screenshots/screenshot-1.png

-55.9 KB
Binary file not shown.

screenshots/screenshot-2.png

-57.6 KB
Binary file not shown.

screenshots/screenshot-3.png

-55.8 KB
Binary file not shown.

screenshots/screenshot-4.png

-53.5 KB
Binary file not shown.

screenshots/screenshot-5.png

-56.1 KB
Binary file not shown.

0 commit comments

Comments
 (0)