dependencies:
flutter_staggered_animations: ^1.0.0
import 'package:flutter_staggered_animations/flutter_staggered_animations.dart';
@override
widget build(buildcontext context) {
return scaffold(
body: animationlimiter(
child: listview.builder(
itemcount: 100,
itembuilder: (buildcontext context, int index) {
return animationconfiguration.staggeredlist(
position: index,
duration: const duration(milliseconds: 375),
child: slideanimation(
verticaloffset: 50.0,
child: fadeinanimation(
child: yourlistchild(),
),
),
);
},
),
),
);
}
@override
widget build(buildcontext context) {
return scaffold(
body: singlechildscrollview(
child: animationlimiter(
child: column(
children: animationconfiguration.tostaggeredlist(
duration: const duration(milliseconds: 375),
childanimationbuilder: (widget) => slideanimation(
horizontaloffset: 50.0,
child: fadeinanimation(
child: widget,
),
),
children: yourcolumnchildren(),
),
),
),
),
);
}
Comments are closed.