dimension 0.1.7 dimension: ^0.1.7 copied to clipboard
A Flutter package that introduce the Dimension class. It mimics the css length unit and supports units like px, percentage, vw, vh, vmin ,and vmax.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add dimension
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
dimension: ^0.1.7
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:dimension/dimension.dart';