omni_pixel 0.3.1
omni_pixel: ^0.3.1 copied to clipboard
Figma-first responsive sizing for Flutter. Register the device frames your designers use, then write 48.opx to get pixel-perfect scaling on any screen.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add omni_pixelThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
omni_pixel: ^0.3.1Alternatively, 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:omni_pixel/omni_pixel.dart';