Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/betazetadev/flutter-animations-basic

A sample project demonstrating how to implement basic animations in Flutter: implicit animations, explicit animations, and Hero Animation. Learn how to bring your UI to life with smooth transitions and visually appealing effects.
https://github.com/betazetadev/flutter-animations-basic

animations dart flutter ui ux

Last synced: about 5 hours ago
JSON representation

A sample project demonstrating how to implement basic animations in Flutter: implicit animations, explicit animations, and Hero Animation. Learn how to bring your UI to life with smooth transitions and visually appealing effects.

Awesome Lists containing this project

README

        

# 🎬 Flutter Animations Demo
A practical example showcasing three essential types of animations in Flutter:

✅ **Implicit Animations** – Automatically animate size, color, alignment, and opacity changes.
✅ **Explicit Animations** – Manually control animations using `AnimationController`.
✅ **Hero Animation** – Smooth transitions between screens using shared elements.

## 📸 Preview
![Titled "Animation Demo" showcases a clean and minimalistic interface designed to explore different types of animations. It features a main heading that reads "Animation Demo" and a subheading stating "Explore Different Types of Animations." Below this, three sections are presented in card-like formats: "Implicit Animations," which automatically animate size, color, opacity, and alignment; "Explicit Animations," allowing users to manually control scaling animations with start and reverse buttons; and "Hero Animation," where users can tap a widget to experience a smooth transition between screens. Each section includes an illustrative icon above its title, enhancing the visual appeal.](./Screenshot.png)

## 🚀 Features
- Implementation of **implicit animations** (`AnimatedContainer`, `AnimatedOpacity`, `AnimatedAlign`, `AnimatedSwitcher`).
- Usage of **explicit animations** with `AnimationController`, `Tween`, `CurvedAnimation`, and `AnimatedBuilder`.
- **Hero Animation** for seamless transitions between screens.
- **Simple and intuitive UI** with a main screen allowing easy navigation between animation sections.

## 📂 Project Structure
```bash

flutter_animations_basic/
│── lib/
│ ├── main.dart # Main screen with navigation
│ ├── implicit_animations.dart # Implicit animations
│ ├── explicit_animations.dart # Explicit animations
│ ├── hero_animation.dart # Hero Animation
│── assets/ # Graphic assets (optional)
│── pubspec.yaml # Dependency configuration
│── README.md # Project documentation

```

## 🛠️ Installation

1. **Clone the repository**

```bash

git clone [email protected]:betazetadev/flutter-animations-basic.git

```

2. **Navigate to project directory**

```bash

cd flutter_animations_basic

```

3. **Get packages**

```bash

flutter pub get

```

4. **Run the app**

```bash

flutter run

```

# 📄 License

This project is licensed under the MIT License.