INNER CODE UNIT · Dart
_BoxState
afgprogrammer/Flutter-examples · lib/pages/animated_container.dart:10
class _BoxState extends State<Box> with SingleTickerProviderStateMixin {
late AnimationController _controller;
double width = 50;
double height = 50;
@override
void initState() {
_controller = AnimationController(
duration: const Duration(milliseconds: 5000),
vsync: this,
);
_controller.addListener(() {
setState(() {
if (_controller.value <= 0.1) {
width = 180;
height = 170;
} else if(_controller.value <= 0.3) {