From 0f306ee735b763f4ceb135f3dca718f1bdcd4ddc Mon Sep 17 00:00:00 2001 From: AshutoshPatole Date: Sat, 13 Nov 2021 18:58:15 +0530 Subject: [PATCH] Remove TODO lines --- lib/views/home_page/home_page_view_model.dart | 2 +- lib/views/item_detail_page/item_detail_page_view.dart | 8 +------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/lib/views/home_page/home_page_view_model.dart b/lib/views/home_page/home_page_view_model.dart index 9c0cc9e..857d34c 100644 --- a/lib/views/home_page/home_page_view_model.dart +++ b/lib/views/home_page/home_page_view_model.dart @@ -89,7 +89,7 @@ class HomePageViewModel extends BaseViewModel { navigateItemDetailPage() async { _navigationService.navigateWithTransition( - ItemDetailPageView(), + const ItemDetailPageView(), duration: const Duration(milliseconds: 500), popGesture: false, ); diff --git a/lib/views/item_detail_page/item_detail_page_view.dart b/lib/views/item_detail_page/item_detail_page_view.dart index 967429c..7665cd8 100644 --- a/lib/views/item_detail_page/item_detail_page_view.dart +++ b/lib/views/item_detail_page/item_detail_page_view.dart @@ -3,13 +3,7 @@ import 'package:stacked/stacked.dart'; import 'item_detail_page_view_model.dart'; class ItemDetailPageView extends StatelessWidget { - // final String imageTag; - // final String imagePath; - // const ItemDetailPageView( - // {Key? key, - // this.imageTag = "", - // this.imagePath = ""}) // ! TODO Might cause a crash here. Fix it later - // : super(key: key); + const ItemDetailPageView({Key? key}) : super(key: key); @override Widget build(BuildContext context) {