|
|
@@ -383,22 +383,15 @@ class HomePage extends BasePage<HomePageController> {
|
|
|
Widget _buildInsertTodoItem(BuildContext context, int index,
|
|
|
Animation<double> animation, Agenda item) {
|
|
|
HomePageController controller = Get.find();
|
|
|
- return SlideTransition(
|
|
|
- position: animation.drive(
|
|
|
- Tween<Offset>(
|
|
|
- begin: const Offset(0, 0.1),
|
|
|
- end: Offset.zero,
|
|
|
- ).chain(CurveTween(curve: Curves.easeInOut)),
|
|
|
- ),
|
|
|
- child: FadeTransition(
|
|
|
- opacity: animation,
|
|
|
- child: taskItemView(item, onCheckClick: () {
|
|
|
- controller.agendaList.remove(
|
|
|
- index,
|
|
|
- (context, animation, item) =>
|
|
|
- _buildRemoveTodoItem(context, index, animation, item));
|
|
|
- }),
|
|
|
- ));
|
|
|
+ return FadeTransition(
|
|
|
+ opacity: animation,
|
|
|
+ child: taskItemView(item, onCheckClick: () {
|
|
|
+ controller.agendaList.remove(
|
|
|
+ index,
|
|
|
+ (context, animation, item) =>
|
|
|
+ _buildRemoveTodoItem(context, index, animation, item));
|
|
|
+ }),
|
|
|
+ );
|
|
|
}
|
|
|
|
|
|
Widget _buildRemoveTodoItem(BuildContext context, int index,
|