scalex 1.0.0
scalex: ^1.0.0 copied to clipboard
A better alternative to flutter_screenutil that works great for web, mobile, and desktop. Provides simple syntax like 4.w, 4.h, 4.sp with smart scaling that keeps desktop layouts fixed.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add scalexThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
scalex: ^1.0.0Alternatively, 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:scalex/scalex.dart';