scaler 1.1.2+1 copy "scaler: ^1.1.2+1" to clipboard
scaler: ^1.1.2+1 copied to clipboard

Set your width height on the basis of percentage of the screen. Its value will be between ( 0 -1 ) set the value between 0 to 1 for 0 to 100% scale to width/height of screen.

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add scaler

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  scaler: ^1.1.2+1

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:scaler/scaler.dart';
4
likes
160
pub points
73%
popularity

Publisher

verified publisherdheeruapps.in

Set your width height on the basis of percentage of the screen. Its value will be between ( 0 -1 ) set the value between 0 to 1 for 0 to 100% scale to width/height of screen.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

cupertino_icons, flutter

More

Packages that depend on scaler