Skip to content

Commit

Permalink
v1.1.3+1, Added an example of customizing page background colors
Browse files Browse the repository at this point in the history
  • Loading branch information
nazar-litvin-cr committed Jan 10, 2022
1 parent 3820bdb commit ae06010
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 1.1.3+1

- Added an example of customizing page background colors

# 1.1.3

- Fixed Android Embedding
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ In the `pubspec.yaml` of your flutter project, add the following dependency:
```yaml
dependencies:
...
flutter_sliding_tutorial: "^1.1.3"
flutter_sliding_tutorial: "^1.1.3+1"
```
In your library add the following import:
Expand Down Expand Up @@ -75,7 +75,7 @@ If you have any questions regarding the use of this tutorial, please contact us
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

[changelog history]: /CHANGELOG.md
[changelog history]: /CHANGELOG.md˜

[Quick Start]: https://github.com/Cleveroad/flutter_sliding_tutorial/wiki/Quick-Start

Expand Down
7 changes: 7 additions & 0 deletions example/lib/sliding_tutorial.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ class _SlidingTutorial extends State<SlidingTutorial> {
return AnimatedBackgroundColor(
pageController: _pageController,
pageCount: widget.pageCount,

/// You can use your own color list for page background
colors: [
Colors.red,
Colors.yellow,
Colors.blueAccent,
],
child: Container(
child: Stack(
children: [
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_sliding_tutorial
description: Applied parallax effects will make your product presentation look like Google apps tutorial.
version: 1.1.3
version: 1.1.3+1
homepage: https://github.com/Cleveroad/flutter_sliding_tutorial

environment:
Expand Down

0 comments on commit ae06010

Please sign in to comment.