imc_calculadora 1.0.0
imc_calculadora: ^1.0.0 copied to clipboard
Calculadora IMC / BMI calculator. Adult BMI with WHO classes (incl. thinness subclasses), healthy-weight range, metric and imperial input, Spanish and English labels. Pure Dart with a CLI.
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate imc_calculadoraUse it
The package has the following executables:
$ imc_calculadora
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add imc_calculadoraWith Flutter:
$ flutter pub add imc_calculadoraThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
imc_calculadora: ^1.0.0Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:imc_calculadora/imc_calculadora.dart';