A Flutter app that calculates Body Mass Index (BMI) based on user input and displays the result with an interpretation.
| Input Screen | Result Screen |
|---|---|
| Gender, Height, Weight, Age selector | BMI score with interpretation |
- Select gender (Male / Female)
- Adjust height using a slider (120cm – 220cm)
- Adjust weight and age using +/- buttons
- Calculates BMI instantly
- Shows result: Underweight, Normal, or Overweight
- Displays a personalized interpretation message
- Navigate back to recalculate
| BMI Range | Category |
|---|---|
| Below 18.5 | Underweight |
| 18.5 – 24.9 | Normal |
| 25 and above | Overweight |
lib/
├── main.dart # App entry point
├── constants.dart # Colors and text styles
├── calculator_brain.dart # BMI logic
├── screens/
│ ├── input_page.dart # Main input screen
│ └── results_page.dart # Result display screen
└── widgets/
├── icon_content.dart # Icon + label widget
├── round_icon_button.dart # Circular +/- button
├── reusable_card.dart # Generic card container
└── bottom_button.dart # Bottom action button
dependencies:
flutter:
sdk: flutter
font_awesome_flutter: ^10.6.0-
Clone the repo
git clone https://github.com/your-username/bmi-calculator.git cd bmi-calculator -
Install dependencies
flutter pub get
-
Run the app
flutter run
- Flutter - UI framework
- Dart - Programming language
- font_awesome_flutter - Icons
This project is open source and available under the MIT License.