develop-bloc #68
@ -13,7 +13,9 @@ class ErrorBar extends StatelessWidget {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) => ControllerProvider<ErrorBarController>(
|
Widget build(BuildContext context) => ControllerProvider<ErrorBarController>(
|
||||||
create: (context) => ErrorBarController(),
|
create: (context) => ErrorBarController(),
|
||||||
child: (context) => AnimatedSwitcher(
|
child: (context) => AnimatedSize(
|
||||||
|
duration: animationDuration,
|
||||||
|
child: AnimatedSwitcher(
|
||||||
duration: animationDuration,
|
duration: animationDuration,
|
||||||
transitionBuilder: (Widget child, Animation<double> animation) => SlideTransition(
|
transitionBuilder: (Widget child, Animation<double> animation) => SlideTransition(
|
||||||
position: Tween<Offset>(
|
position: Tween<Offset>(
|
||||||
@ -50,5 +52,6 @@ class ErrorBar extends StatelessWidget {
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user