Skip to content

Commit 02c3657

Browse files
Merge pull request #17 from Cleveroad/v1.1.3+1
v1.1.3+1, Added an example of customizing page background colors
2 parents 3820bdb + 1aff39b commit 02c3657

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 1.1.3+1
2+
3+
- Added an example of customizing page background colors
4+
15
# 1.1.3
26

37
- Fixed Android Embedding

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ In the `pubspec.yaml` of your flutter project, add the following dependency:
2727
```yaml
2828
dependencies:
2929
...
30-
flutter_sliding_tutorial: "^1.1.3"
30+
flutter_sliding_tutorial: "^1.1.3+1"
3131
```
3232
3333
In your library add the following import:

example/lib/sliding_tutorial.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@ class _SlidingTutorial extends State<SlidingTutorial> {
3838
return AnimatedBackgroundColor(
3939
pageController: _pageController,
4040
pageCount: widget.pageCount,
41+
42+
/// You can use your own color list for page background
43+
colors: [
44+
Colors.red,
45+
Colors.yellow,
46+
Colors.blueAccent,
47+
],
4148
child: Container(
4249
child: Stack(
4350
children: [

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_sliding_tutorial
22
description: Applied parallax effects will make your product presentation look like Google apps tutorial.
3-
version: 1.1.3
3+
version: 1.1.3+1
44
homepage: https://github.com/Cleveroad/flutter_sliding_tutorial
55

66
environment:

0 commit comments

Comments
 (0)