Animate color of BrandLinearIndicator

pull/116/head
Inex Code 2022-09-18 20:56:37 +03:00
parent 34d635c2c5
commit 1817031be8
1 changed files with 3 additions and 1 deletions

View File

@ -32,7 +32,9 @@ class BrandLinearIndicator extends StatelessWidget {
-(1 - value),
0,
),
child: Container(
child: AnimatedContainer(
duration: const Duration(milliseconds: 400),
curve: Curves.easeInOut,
width: constraints.maxWidth,
decoration: BoxDecoration(
color: color,