Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- return AnimatedCrossFade(
- duration: const Duration(seconds: 1),
- firstChild: ConstrainedBox(
- constraints:
- BoxConstraints(maxHeight: habitTileConst * 5),
- child: PageView(
- controller: _listPageController,
- children: habitTileListPages,
- onPageChanged: (value) {
- habitDataBase.setSelectionList(
- Selection.values.elementAt(value));
- },
- ),
- ).animate(
- onComplete: (controller) {
- debugPrint(
- "ANIMATION COMPLETED: ${controller.isCompleted}");
- },
- ).scale(
- duration: const Duration(
- seconds: 1,
- microseconds: 500,
- ),
- begin: const Offset(0, 0),
- curve: Curves.easeOutBack,
- ),
- secondChild: ConstrainedBox(
- constraints:
- BoxConstraints(maxHeight: habitTileConst * 5),
- child: PageView(
- controller: _gridPageController,
- children: habitTileGridPages,
- onPageChanged: (value) {
- habitDataBase.setSelectionList(
- Selection.values.elementAt(value));
- },
- ),
- ).animate(
- onComplete: (controller) {
- debugPrint(
- "ANIMATION COMPLETED: ${controller.isCompleted}");
- },
- ).scale(
- duration: const Duration(
- seconds: 1,
- microseconds: 500,
- ),
- begin: const Offset(0, 0),
- curve: Curves.easeOutBack,
- ),
- crossFadeState: gridView
- ? CrossFadeState.showSecond
- : CrossFadeState.showFirst,
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement