booleanbites / houzi-support

Support forum repo for issues & bugs reported for Houzi Flutter App.
4 stars 0 forks source link

Issue with adding new Deal in deals #13

Closed nvestorltd closed 1 year ago

nvestorltd commented 1 year ago

Hello everybody! Love your product, I'm very happy and satisfied with your flutter app! I run into an issue on my personal flutter builds, and the problem exists on your demo app. When you try to add a new deal by pressing the + button in deals the page crashes/doesn't work. Attached is a screenshot of the screen. dealsscreen Thank you in advance! And I wish you success in your development! Kind Regards

AdilSoomro commented 1 year ago

Thanks for connecting, we checked and indeed its happening. We'll revert back with a solution soon.

nvestorltd commented 1 year ago

Thank you!

On Tue, 6 Dec 2022, 15:42 Adil Soomro, @.***> wrote:

Thanks for connecting, we checked and indeed its happening. We'll revert back with a solution soon.

— Reply to this email directly, view it on GitHub https://github.com/booleanbites/houzi-support/issues/13#issuecomment-1339407114, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQV22XKAAUW5QMJUOKWTOXDWL47FRANCNFSM6AAAAAASVN6F2A . You are receiving this because you authored the thread.Message ID: @.***>

Hassan6197 commented 1 year ago

Hello @nvestorltd, Sorry for the error that you are facing. Here is the solution, go to YOUR_PROJECT_NAME\packages\houzi_package\lib\pages\board_pages\add_new_deal_page.dart file and look for initState() method. Replace it with following function:

@override
void initState() {
  super.initState();
  if (widget.forEditDeal) {
    if (widget.dealDetailMap[DEAL_GROUP] == WON_OPTION) {
      groupValue = WON_OPTION;
    } else if (widget.dealDetailMap[DEAL_GROUP] == LOST_OPTION) {
      groupValue = LOST_OPTION;
    }
  }

  loadData();
}
nvestorltd commented 1 year ago

Hello Hassan! Thank you very much for such a fast response and for solving the problem. Changed the code as you said, everything is working as needed! Thank you again.