Urgent Help Needed: Integrating Custom Tax Calculation in FlutterFlow

Actions & Logic

Hi everyone,

I'm currently working on a tax calculator app in FlutterFlow and urgently need help with several issues. Here’s a breakdown of the problems I’m facing:

  1. Custom Action Integration:

    • I’ve created a custom action named taxCALCULATOR to compute tax based on user inputs for income and tax regime. While the action works in a Dart environment, I’m struggling to integrate it properly within FlutterFlow.

  2. Binding Variables:

    • I’ve set up Page State variables for income and tax regime and configured input fields accordingly. However, I’m not sure how to correctly bind these inputs to the action and ensure they are passed properly.

  3. Updating Page State:

    • I’ve created a resultVar in Page State to hold the output of the tax calculation. I need to update this variable with the result of the custom action and reflect it in the UI, but I’m unsure how to do this effectively.

  4. Button Action Configuration:

    • I’ve added a button to trigger the tax calculation, but I’m having trouble configuring it to call the taxCALCULATOR action and update resultVar with the result. I need guidance on setting up the Update Page State action type and mapping the result correctly.

  5. Output Display:

    • Despite following the steps to bind the result to a TextField, the output is not displaying as expected. I need immediate assistance to ensure the result from taxCALCULATOR shows up correctly on the page.

What have you tried so far?
  • Created and configured the custom action taxCALCULATOR in Dart.

  • Set up Page State variables for income (incomeVar) and tax regime (regimeVar).

  • Configured input fields and bound them to these Page State variables.

  • Added a button and set it to trigger the custom action on press.

  • Set up Update Page State actions to update resultVar with the output of the custom action.

  • Attempted to bind the resultVar to a TextField to display the result.

Did you check FlutterFlow's Documentation for this topic?
No
1