Skip to content

Commit

Permalink
change offset values
Browse files Browse the repository at this point in the history
  • Loading branch information
Salman S committed Sep 18, 2020
1 parent a3cb4ab commit 42aeb8f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions lib/main.dart
Expand Up @@ -84,10 +84,10 @@ class _TokopediaState extends State<Tokopedia> with TickerProviderStateMixin {

_initScroll() {
_scrollController.addListener(() {
double startAnimationAfterOffset = kToolbarHeight;
double scrollOffsetBackground = 200;
double scrollOffsetInput = 200;
double scrollOffsetIcon = 150;
double startAnimationAfterOffset = 75;
double scrollOffsetBackground = 150;
double scrollOffsetInput = 150;
double scrollOffsetIcon = 120;

// delay animation to start animate only after scrolling
// as far as startAnimationAfterOffset value
Expand Down Expand Up @@ -141,11 +141,11 @@ class _TokopediaState extends State<Tokopedia> with TickerProviderStateMixin {
onPressed: (){},
),
IconButton(
icon: Icon(Icons.notifications_active, color: _animationIcon.value),
icon: Icon(Icons.mail, color: _animationIcon.value),
onPressed: (){},
),
IconButton(
icon: Icon(Icons.add_shopping_cart, color: _animationIcon.value),
icon: Icon(Icons.notifications_active, color: _animationIcon.value),
onPressed: (){},
),
],
Expand Down
2 changes: 1 addition & 1 deletion pubspec.lock
Expand Up @@ -49,7 +49,7 @@ packages:
name: curved_animation_controller
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.0"
version: "1.0.1"
fake_async:
dependency: transitive
description:
Expand Down

0 comments on commit 42aeb8f

Please sign in to comment.