fix: validation input investment

This commit is contained in:
2024-02-23 14:56:06 +07:00
parent 38837bd4f8
commit d79959c47f
4 changed files with 161 additions and 176 deletions

View File

@@ -115,10 +115,13 @@ class _PlanViewState extends State<PlanView> {
),
const Divider(color: ColorPalette.slate200, height: 1),
InputInvestmentView(
selectedPlan: text,
currentPlan: text,
changePlan: () {
Navigator.pop(context);
},
nextMove: (value) {
Navigator.pop(context);
int formatIntParse = int.parse(value.replaceAll('Rp ', '').replaceAll(',', ''));
int formatIntParse = int.parse(value.replaceAll('Rp ', '').replaceAll('.', ''));
showModalBottomSheet(context: context, builder: (context) => OptionsStartingInvest(totalInvest: formatIntParse));
},
),