uni_size 1.0.1
uni_size: ^1.0.1 copied to clipboard
A comprehensive Flutter package for responsive UI design with universal sizing units that work consistently across all platforms. Provides .dp for sizes and .sp for fonts with automatic scaling based [...]
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add uni_sizeWith Flutter:
$ flutter pub add uni_sizeThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
uni_size: ^1.0.1Alternatively, 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:uni_size/uni_size.dart';