Animation Container -Flutter

Introduction

Animated Container is a special type of Container in flutter that changes its value with time. It changes its value from old to new value with given curves and time.

defining the boolean value

This boolean value changes on Tapping the Container. Which helps in changing the values of height and width of the Container.

Animated Container

Define the animation Container Widget with duration and curve. The value of the width, height, and alignment changes based on the value of the boolean value.

GestureDetector

onTap function in GestureDetector changes the value of boolean. When the container is being tapped.

Also, check the post on Instagram.

Thank You!