We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
main.dart initialRoute: '/', routes: { '/': (context) => InputPage(), '/results': (context) => ResultPage(), }
initialRoute: '/', routes: { '/': (context) => InputPage(), '/results': (context) => ResultPage(), }
input_page.dart BottomButton( buttonTitle: 'CALCULATE', onTap: () { CalculatorBrain calc = CalculatorBrain(height: height, weight: weight); Navigator.pushNamed(context, '/results'); }, ),
BottomButton( buttonTitle: 'CALCULATE', onTap: () { CalculatorBrain calc = CalculatorBrain(height: height, weight: weight); Navigator.pushNamed(context, '/results'); }, ),
How do we pass properties to ResultPage() ?
The text was updated successfully, but these errors were encountered:
After '/results' comma and add lines below arguments: Results_page( bmiResult: calc.calculateBMI(), result: calc.getResult(), suggestion: calc.getSuggestion(), ),
Sorry, something went wrong.
No branches or pull requests
main.dart
initialRoute: '/', routes: { '/': (context) => InputPage(), '/results': (context) => ResultPage(), }
input_page.dart
BottomButton( buttonTitle: 'CALCULATE', onTap: () { CalculatorBrain calc = CalculatorBrain(height: height, weight: weight); Navigator.pushNamed(context, '/results'); }, ),
How do we pass properties to ResultPage() ?
The text was updated successfully, but these errors were encountered: