Skip to content

A simple demo insulin dosing calculator implemented for iOS and Android using Flutter/Dart.

Notifications You must be signed in to change notification settings

michellejw/bolus-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bolus Calculator

Please note that this is only a demo! Please do not use this calculator for diabetes management. Always consult your doctor about insulin dosing.

This app is a very simple insulin dosing calculator. The user can input nutritional information about the carbohydrate content and serving size, the amount being consumed, and the relevant carbohydrate to insulin ratio. When the user clicks on the "Calculate" button, the input values are used to compute the appropriate insulin dose, along with a positive message.

'App Input Screen' 'App Results Screen'

Caveats

This app was created as a learning project for me. It is absolutely not intended for use by diabetics in calculating insulin doses. In fact, it only computes a part of what's required to properly dose insulin. The final amount will also depend on other factors like blood glucose at the time of the meal and also on insulin sensitivity.

Sources and extra information

The design and over-arching functionality of this app is based on a module in the 'Flutter bootcamp with Dart' Udemy course. This learning module was in turn based on a 'BMI calculator design by Ruben Vaalt'. I didn't want to make a BMI calculator, so instead I chose to do this module as an insulin dosing calculator. While it's nearly exactly the same, I did make some slight changes:

  • Adjusted the layout
  • (obviously!) Adjusted the calculation done in the application
  • Made sure that no matter what the insulin dose is, the user gets a positive message.
  • Made slight changes to how the code was refactored, which necessitated the use of callbacks between parent and child widgets.

About

A simple demo insulin dosing calculator implemented for iOS and Android using Flutter/Dart.

Resources

Stars

Watchers

Forks

Languages