design2ui 0.1.1 design2ui: ^0.1.1 copied to clipboard
UI adaptation plugin, so that the interface and font display the same effect on the different ppi phones
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add design2ui
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
design2ui: ^0.1.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:design2ui/design2ui.dart';