Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

This project includes custom-made animations using standard Flutter tools such as implicit and explicit animations.

License

Notifications You must be signed in to change notification settings

TBR-Group-software/flutter_custom_animation

Repository files navigation

About the project

Shop app with soft, eye-pleasing design and smooth custom Flutter animations.

This project includes custom-made animations using standard Flutter tools such as implicit and explicit animations.

Features

  • Soft, eye-pleasing design.
  • Animated splash screen.
  • Transition animations.
  • Switch product animation.

Splash screen animation

_secondController = AnimationController(
vsync: this,
duration: const Duration(milliseconds: 500),
);
_mainController = AnimationController(
vsync: this,
duration: const Duration(milliseconds: 500),
)..animateTo(3).then(
(_) {
_mainController.reverse();
_secondController.animateTo(1).then((_) {
if (widget.onAnimationFinish != null) {
widget.onAnimationFinish!();
}
});
},
);
}
_animation =
CurvedAnimation(parent: _mainController, curve: Curves.easeInQuad);

Product initial animation

_secondScaleController = AnimationController(
vsync: this, duration: const Duration(milliseconds: 600));
_secondScaleController.forward();
_secondScaleController.drive(
Tween<double>(end: 0, begin: 200),
),

Switch product animation

GestureDetector(
onPanUpdate: (DragUpdateDetails details) {
// Swiping in right direction.
if (details.delta.dx > 0) {
if (reversed) {
controller.forward();
} else {
controller.reverse();
}
}

// Swiping in left direction.
if (details.delta.dx < 0) {
if (reversed) {
controller.reverse();
} else {
controller.forward();
}
}
},
child: child,
);

Built with

Getting Started

Step 1:

Download or clone this repo by using the link below:

https://github.com/TBR-Group-software/flutter_custom_animation

Step 2:

Go to project root and execute the following command in console to get the required dependencies:

flutter pub get

License

This project is licensed under the GNU GPL v3 License - see the LICENSE.md file for details.

About

This project includes custom-made animations using standard Flutter tools such as implicit and explicit animations.

Topics

Resources

Readme

License

GPL-3.0 license

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

Languages