From 44e7cc7c2ed7c20d5188f23ad0d64a530d5d1122 Mon Sep 17 00:00:00 2001 From: Prasanna Anbazhagan Date: Sat, 29 Jun 2024 18:43:54 +0530 Subject: [PATCH] Move presentation to ui package --- lib/ui/pages/baskets_page.dart | 2 +- lib/ui/pages/dashboard_page.dart | 2 +- lib/ui/pages/goal_page.dart | 2 +- lib/ui/pages/goals_page.dart | 2 +- lib/ui/pages/investment_page.dart | 2 +- lib/ui/pages/investments_page.dart | 2 +- lib/ui/pages/main_page.dart | 2 +- lib/{ => ui}/presentation/baskets_presenter.dart | 0 lib/{ => ui}/presentation/create_basket_presenter.dart | 0 lib/{ => ui}/presentation/create_goal_presenter.dart | 0 lib/{ => ui}/presentation/create_investment_presenter.dart | 0 .../presentation/create_investment_transaction_presenter.dart | 0 lib/{ => ui}/presentation/create_script_presenter.dart | 0 lib/{ => ui}/presentation/create_sip_presenter.dart | 0 lib/{ => ui}/presentation/dashboard_presenter.dart | 0 lib/{ => ui}/presentation/goal_presenter.dart | 0 lib/{ => ui}/presentation/goals_presenter.dart | 0 lib/{ => ui}/presentation/investment_presenter.dart | 0 lib/{ => ui}/presentation/investments_presenter.dart | 0 lib/{ => ui}/presentation/main_presenter.dart | 0 lib/{ => ui}/presentation/sips_presenter.dart | 0 lib/{ => ui}/presentation/tag_investment_presenter.dart | 0 lib/{ => ui}/presentation/tagged_goals_presenter.dart | 0 lib/{ => ui}/presentation/tagged_investment_presenter.dart | 0 lib/{ => ui}/presentation/transactions_presenter.dart | 0 lib/ui/widgets/create_basket_dialog.dart | 2 +- lib/ui/widgets/create_goal_dialog.dart | 2 +- lib/ui/widgets/create_investment_dialog.dart | 2 +- lib/ui/widgets/create_script_dialog.dart | 2 +- lib/ui/widgets/create_sip_dialog.dart | 2 +- lib/ui/widgets/create_tag_investment_dialog.dart | 2 +- lib/ui/widgets/create_transaction_dialog.dart | 2 +- lib/ui/widgets/view_sips_dialog.dart | 2 +- lib/ui/widgets/view_tagged_goal_dialog.dart | 2 +- lib/ui/widgets/view_tagged_investment_dialog.dart | 2 +- lib/ui/widgets/view_transactions_dialog.dart | 2 +- 36 files changed, 18 insertions(+), 18 deletions(-) rename lib/{ => ui}/presentation/baskets_presenter.dart (100%) rename lib/{ => ui}/presentation/create_basket_presenter.dart (100%) rename lib/{ => ui}/presentation/create_goal_presenter.dart (100%) rename lib/{ => ui}/presentation/create_investment_presenter.dart (100%) rename lib/{ => ui}/presentation/create_investment_transaction_presenter.dart (100%) rename lib/{ => ui}/presentation/create_script_presenter.dart (100%) rename lib/{ => ui}/presentation/create_sip_presenter.dart (100%) rename lib/{ => ui}/presentation/dashboard_presenter.dart (100%) rename lib/{ => ui}/presentation/goal_presenter.dart (100%) rename lib/{ => ui}/presentation/goals_presenter.dart (100%) rename lib/{ => ui}/presentation/investment_presenter.dart (100%) rename lib/{ => ui}/presentation/investments_presenter.dart (100%) rename lib/{ => ui}/presentation/main_presenter.dart (100%) rename lib/{ => ui}/presentation/sips_presenter.dart (100%) rename lib/{ => ui}/presentation/tag_investment_presenter.dart (100%) rename lib/{ => ui}/presentation/tagged_goals_presenter.dart (100%) rename lib/{ => ui}/presentation/tagged_investment_presenter.dart (100%) rename lib/{ => ui}/presentation/transactions_presenter.dart (100%) diff --git a/lib/ui/pages/baskets_page.dart b/lib/ui/pages/baskets_page.dart index 570223b..c63938a 100644 --- a/lib/ui/pages/baskets_page.dart +++ b/lib/ui/pages/baskets_page.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:wealth_wave/core/page_state.dart'; -import 'package:wealth_wave/presentation/baskets_presenter.dart'; +import 'package:wealth_wave/ui/presentation/baskets_presenter.dart'; import 'package:wealth_wave/ui/app_dimen.dart'; import 'package:wealth_wave/ui/widgets/create_basket_dialog.dart'; import 'package:wealth_wave/utils/ui_utils.dart'; diff --git a/lib/ui/pages/dashboard_page.dart b/lib/ui/pages/dashboard_page.dart index 5286735..cf9e2c9 100644 --- a/lib/ui/pages/dashboard_page.dart +++ b/lib/ui/pages/dashboard_page.dart @@ -6,7 +6,7 @@ import 'package:primer_progress_bar/primer_progress_bar.dart'; import 'package:syncfusion_flutter_charts/charts.dart'; import 'package:wealth_wave/contract/risk_level.dart'; import 'package:wealth_wave/core/page_state.dart'; -import 'package:wealth_wave/presentation/dashboard_presenter.dart'; +import 'package:wealth_wave/ui/presentation/dashboard_presenter.dart'; import 'package:wealth_wave/ui/app_dimen.dart'; import 'package:wealth_wave/utils/ui_utils.dart'; diff --git a/lib/ui/pages/goal_page.dart b/lib/ui/pages/goal_page.dart index 302558d..62485f8 100644 --- a/lib/ui/pages/goal_page.dart +++ b/lib/ui/pages/goal_page.dart @@ -4,7 +4,7 @@ import 'package:primer_progress_bar/primer_progress_bar.dart'; import 'package:syncfusion_flutter_charts/charts.dart'; import 'package:wealth_wave/contract/goal_importance.dart'; import 'package:wealth_wave/core/page_state.dart'; -import 'package:wealth_wave/presentation/goal_presenter.dart'; +import 'package:wealth_wave/ui/presentation/goal_presenter.dart'; import 'package:wealth_wave/ui/app_dimen.dart'; import 'package:wealth_wave/utils/ui_utils.dart'; diff --git a/lib/ui/pages/goals_page.dart b/lib/ui/pages/goals_page.dart index 7142ac8..4e6efde 100644 --- a/lib/ui/pages/goals_page.dart +++ b/lib/ui/pages/goals_page.dart @@ -2,7 +2,7 @@ import 'package:flutter/material.dart'; import 'package:primer_progress_bar/primer_progress_bar.dart'; import 'package:wealth_wave/contract/goal_importance.dart'; import 'package:wealth_wave/core/page_state.dart'; -import 'package:wealth_wave/presentation/goals_presenter.dart'; +import 'package:wealth_wave/ui/presentation/goals_presenter.dart'; import 'package:wealth_wave/ui/app_dimen.dart'; import 'package:wealth_wave/ui/nav_path.dart'; import 'package:wealth_wave/ui/widgets/create_goal_dialog.dart'; diff --git a/lib/ui/pages/investment_page.dart b/lib/ui/pages/investment_page.dart index 26e9ca4..3e21ddb 100644 --- a/lib/ui/pages/investment_page.dart +++ b/lib/ui/pages/investment_page.dart @@ -3,7 +3,7 @@ import 'package:intl/intl.dart'; import 'package:syncfusion_flutter_charts/charts.dart'; import 'package:wealth_wave/contract/risk_level.dart'; import 'package:wealth_wave/core/page_state.dart'; -import 'package:wealth_wave/presentation/investment_presenter.dart'; +import 'package:wealth_wave/ui/presentation/investment_presenter.dart'; import 'package:wealth_wave/ui/app_dimen.dart'; import 'package:wealth_wave/utils/ui_utils.dart'; diff --git a/lib/ui/pages/investments_page.dart b/lib/ui/pages/investments_page.dart index 1e2bcdf..0b0bf65 100644 --- a/lib/ui/pages/investments_page.dart +++ b/lib/ui/pages/investments_page.dart @@ -3,7 +3,7 @@ import 'package:flutter/rendering.dart'; import 'package:intl/intl.dart'; import 'package:wealth_wave/contract/risk_level.dart'; import 'package:wealth_wave/core/page_state.dart'; -import 'package:wealth_wave/presentation/investments_presenter.dart'; +import 'package:wealth_wave/ui/presentation/investments_presenter.dart'; import 'package:wealth_wave/ui/app_dimen.dart'; import 'package:wealth_wave/ui/nav_path.dart'; import 'package:wealth_wave/ui/widgets/create_investment_dialog.dart'; diff --git a/lib/ui/pages/main_page.dart b/lib/ui/pages/main_page.dart index 02fbaa6..b4aca7e 100644 --- a/lib/ui/pages/main_page.dart +++ b/lib/ui/pages/main_page.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:wealth_wave/core/page_state.dart'; -import 'package:wealth_wave/presentation/main_presenter.dart'; +import 'package:wealth_wave/ui/presentation/main_presenter.dart'; import 'package:wealth_wave/ui/pages/dashboard_page.dart'; import 'package:wealth_wave/ui/pages/goals_page.dart'; import 'package:wealth_wave/ui/pages/investments_page.dart'; diff --git a/lib/presentation/baskets_presenter.dart b/lib/ui/presentation/baskets_presenter.dart similarity index 100% rename from lib/presentation/baskets_presenter.dart rename to lib/ui/presentation/baskets_presenter.dart diff --git a/lib/presentation/create_basket_presenter.dart b/lib/ui/presentation/create_basket_presenter.dart similarity index 100% rename from lib/presentation/create_basket_presenter.dart rename to lib/ui/presentation/create_basket_presenter.dart diff --git a/lib/presentation/create_goal_presenter.dart b/lib/ui/presentation/create_goal_presenter.dart similarity index 100% rename from lib/presentation/create_goal_presenter.dart rename to lib/ui/presentation/create_goal_presenter.dart diff --git a/lib/presentation/create_investment_presenter.dart b/lib/ui/presentation/create_investment_presenter.dart similarity index 100% rename from lib/presentation/create_investment_presenter.dart rename to lib/ui/presentation/create_investment_presenter.dart diff --git a/lib/presentation/create_investment_transaction_presenter.dart b/lib/ui/presentation/create_investment_transaction_presenter.dart similarity index 100% rename from lib/presentation/create_investment_transaction_presenter.dart rename to lib/ui/presentation/create_investment_transaction_presenter.dart diff --git a/lib/presentation/create_script_presenter.dart b/lib/ui/presentation/create_script_presenter.dart similarity index 100% rename from lib/presentation/create_script_presenter.dart rename to lib/ui/presentation/create_script_presenter.dart diff --git a/lib/presentation/create_sip_presenter.dart b/lib/ui/presentation/create_sip_presenter.dart similarity index 100% rename from lib/presentation/create_sip_presenter.dart rename to lib/ui/presentation/create_sip_presenter.dart diff --git a/lib/presentation/dashboard_presenter.dart b/lib/ui/presentation/dashboard_presenter.dart similarity index 100% rename from lib/presentation/dashboard_presenter.dart rename to lib/ui/presentation/dashboard_presenter.dart diff --git a/lib/presentation/goal_presenter.dart b/lib/ui/presentation/goal_presenter.dart similarity index 100% rename from lib/presentation/goal_presenter.dart rename to lib/ui/presentation/goal_presenter.dart diff --git a/lib/presentation/goals_presenter.dart b/lib/ui/presentation/goals_presenter.dart similarity index 100% rename from lib/presentation/goals_presenter.dart rename to lib/ui/presentation/goals_presenter.dart diff --git a/lib/presentation/investment_presenter.dart b/lib/ui/presentation/investment_presenter.dart similarity index 100% rename from lib/presentation/investment_presenter.dart rename to lib/ui/presentation/investment_presenter.dart diff --git a/lib/presentation/investments_presenter.dart b/lib/ui/presentation/investments_presenter.dart similarity index 100% rename from lib/presentation/investments_presenter.dart rename to lib/ui/presentation/investments_presenter.dart diff --git a/lib/presentation/main_presenter.dart b/lib/ui/presentation/main_presenter.dart similarity index 100% rename from lib/presentation/main_presenter.dart rename to lib/ui/presentation/main_presenter.dart diff --git a/lib/presentation/sips_presenter.dart b/lib/ui/presentation/sips_presenter.dart similarity index 100% rename from lib/presentation/sips_presenter.dart rename to lib/ui/presentation/sips_presenter.dart diff --git a/lib/presentation/tag_investment_presenter.dart b/lib/ui/presentation/tag_investment_presenter.dart similarity index 100% rename from lib/presentation/tag_investment_presenter.dart rename to lib/ui/presentation/tag_investment_presenter.dart diff --git a/lib/presentation/tagged_goals_presenter.dart b/lib/ui/presentation/tagged_goals_presenter.dart similarity index 100% rename from lib/presentation/tagged_goals_presenter.dart rename to lib/ui/presentation/tagged_goals_presenter.dart diff --git a/lib/presentation/tagged_investment_presenter.dart b/lib/ui/presentation/tagged_investment_presenter.dart similarity index 100% rename from lib/presentation/tagged_investment_presenter.dart rename to lib/ui/presentation/tagged_investment_presenter.dart diff --git a/lib/presentation/transactions_presenter.dart b/lib/ui/presentation/transactions_presenter.dart similarity index 100% rename from lib/presentation/transactions_presenter.dart rename to lib/ui/presentation/transactions_presenter.dart diff --git a/lib/ui/widgets/create_basket_dialog.dart b/lib/ui/widgets/create_basket_dialog.dart index a3df257..ad85f0c 100644 --- a/lib/ui/widgets/create_basket_dialog.dart +++ b/lib/ui/widgets/create_basket_dialog.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:wealth_wave/core/page_state.dart'; -import 'package:wealth_wave/presentation/create_basket_presenter.dart'; +import 'package:wealth_wave/ui/presentation/create_basket_presenter.dart'; import 'package:wealth_wave/ui/app_dimen.dart'; Future showCreateBasketDialog( diff --git a/lib/ui/widgets/create_goal_dialog.dart b/lib/ui/widgets/create_goal_dialog.dart index c451332..8b30d4a 100644 --- a/lib/ui/widgets/create_goal_dialog.dart +++ b/lib/ui/widgets/create_goal_dialog.dart @@ -2,7 +2,7 @@ import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:wealth_wave/contract/goal_importance.dart'; import 'package:wealth_wave/core/page_state.dart'; -import 'package:wealth_wave/presentation/create_goal_presenter.dart'; +import 'package:wealth_wave/ui/presentation/create_goal_presenter.dart'; import 'package:wealth_wave/ui/app_dimen.dart'; import 'package:wealth_wave/ui/custom/currency_text_input_formatter.dart'; import 'package:wealth_wave/ui/custom/date_text_input_formatter.dart'; diff --git a/lib/ui/widgets/create_investment_dialog.dart b/lib/ui/widgets/create_investment_dialog.dart index c9eda20..1ef8fd7 100644 --- a/lib/ui/widgets/create_investment_dialog.dart +++ b/lib/ui/widgets/create_investment_dialog.dart @@ -4,7 +4,7 @@ import 'package:intl/intl.dart'; import 'package:toastification/toastification.dart'; import 'package:wealth_wave/contract/risk_level.dart'; import 'package:wealth_wave/core/page_state.dart'; -import 'package:wealth_wave/presentation/create_investment_presenter.dart'; +import 'package:wealth_wave/ui/presentation/create_investment_presenter.dart'; import 'package:wealth_wave/ui/app_dimen.dart'; import 'package:wealth_wave/ui/custom/date_text_input_formatter.dart'; import 'package:wealth_wave/ui/custom/decimal_text_input_formatter.dart'; diff --git a/lib/ui/widgets/create_script_dialog.dart b/lib/ui/widgets/create_script_dialog.dart index 338e3ce..54ea460 100644 --- a/lib/ui/widgets/create_script_dialog.dart +++ b/lib/ui/widgets/create_script_dialog.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:wealth_wave/core/page_state.dart'; -import 'package:wealth_wave/presentation/create_script_presenter.dart'; +import 'package:wealth_wave/ui/presentation/create_script_presenter.dart'; Future showCreateScriptDialog( {required final BuildContext context, required final int investmentId}) { diff --git a/lib/ui/widgets/create_sip_dialog.dart b/lib/ui/widgets/create_sip_dialog.dart index 49d72c8..60de1b4 100644 --- a/lib/ui/widgets/create_sip_dialog.dart +++ b/lib/ui/widgets/create_sip_dialog.dart @@ -2,7 +2,7 @@ import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:wealth_wave/contract/frequency.dart'; import 'package:wealth_wave/core/page_state.dart'; -import 'package:wealth_wave/presentation/create_sip_presenter.dart'; +import 'package:wealth_wave/ui/presentation/create_sip_presenter.dart'; import 'package:wealth_wave/ui/app_dimen.dart'; import 'package:wealth_wave/ui/custom/currency_text_input_formatter.dart'; import 'package:wealth_wave/ui/custom/date_text_input_formatter.dart'; diff --git a/lib/ui/widgets/create_tag_investment_dialog.dart b/lib/ui/widgets/create_tag_investment_dialog.dart index c763ec6..6d438ce 100644 --- a/lib/ui/widgets/create_tag_investment_dialog.dart +++ b/lib/ui/widgets/create_tag_investment_dialog.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:wealth_wave/core/page_state.dart'; -import 'package:wealth_wave/presentation/tag_investment_presenter.dart'; +import 'package:wealth_wave/ui/presentation/tag_investment_presenter.dart'; import 'package:wealth_wave/ui/app_dimen.dart'; import 'package:wealth_wave/utils/ui_utils.dart'; diff --git a/lib/ui/widgets/create_transaction_dialog.dart b/lib/ui/widgets/create_transaction_dialog.dart index 4ab5c1b..f167565 100644 --- a/lib/ui/widgets/create_transaction_dialog.dart +++ b/lib/ui/widgets/create_transaction_dialog.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:wealth_wave/core/page_state.dart'; -import 'package:wealth_wave/presentation/create_investment_transaction_presenter.dart'; +import 'package:wealth_wave/ui/presentation/create_investment_transaction_presenter.dart'; import 'package:wealth_wave/ui/app_dimen.dart'; import 'package:wealth_wave/ui/custom/date_text_input_formatter.dart'; import 'package:wealth_wave/utils/ui_utils.dart'; diff --git a/lib/ui/widgets/view_sips_dialog.dart b/lib/ui/widgets/view_sips_dialog.dart index 4e68a50..df0a620 100644 --- a/lib/ui/widgets/view_sips_dialog.dart +++ b/lib/ui/widgets/view_sips_dialog.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:wealth_wave/core/page_state.dart'; -import 'package:wealth_wave/presentation/sips_presenter.dart'; +import 'package:wealth_wave/ui/presentation/sips_presenter.dart'; import 'package:wealth_wave/ui/app_dimen.dart'; import 'package:wealth_wave/ui/widgets/create_sip_dialog.dart'; import 'package:wealth_wave/utils/ui_utils.dart'; diff --git a/lib/ui/widgets/view_tagged_goal_dialog.dart b/lib/ui/widgets/view_tagged_goal_dialog.dart index aa6a5a7..c66a1ca 100644 --- a/lib/ui/widgets/view_tagged_goal_dialog.dart +++ b/lib/ui/widgets/view_tagged_goal_dialog.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:wealth_wave/core/page_state.dart'; -import 'package:wealth_wave/presentation/tagged_goals_presenter.dart'; +import 'package:wealth_wave/ui/presentation/tagged_goals_presenter.dart'; import 'package:wealth_wave/utils/ui_utils.dart'; Future showTaggedGoalDialog( diff --git a/lib/ui/widgets/view_tagged_investment_dialog.dart b/lib/ui/widgets/view_tagged_investment_dialog.dart index 7880c0a..00d381f 100644 --- a/lib/ui/widgets/view_tagged_investment_dialog.dart +++ b/lib/ui/widgets/view_tagged_investment_dialog.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:wealth_wave/core/page_state.dart'; -import 'package:wealth_wave/presentation/tagged_investment_presenter.dart'; +import 'package:wealth_wave/ui/presentation/tagged_investment_presenter.dart'; import 'package:wealth_wave/ui/widgets/create_tag_investment_dialog.dart'; import 'package:wealth_wave/utils/ui_utils.dart'; diff --git a/lib/ui/widgets/view_transactions_dialog.dart b/lib/ui/widgets/view_transactions_dialog.dart index 338033a..55aa161 100644 --- a/lib/ui/widgets/view_transactions_dialog.dart +++ b/lib/ui/widgets/view_transactions_dialog.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:wealth_wave/core/page_state.dart'; -import 'package:wealth_wave/presentation/transactions_presenter.dart'; +import 'package:wealth_wave/ui/presentation/transactions_presenter.dart'; import 'package:wealth_wave/ui/app_dimen.dart'; import 'package:wealth_wave/ui/widgets/create_transaction_dialog.dart'; import 'package:wealth_wave/utils/ui_utils.dart';