size_builder 1.0.0
size_builder: ^1.0.0 copied to clipboard
Make a proportion and proportion to the length, width, and diameter of the screens of all kinds to get a responsive design.
📱💻📱
Features #
Make a proportion and proportion to the length, width, and diameter of the screens of all kinds to get a responsive design.
Getting started #
Run this command:
With Flutter:
$ flutter pub add size_builder
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
size_builder: ^1.0.0
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:size_builder/size_builder.dart';
Responsive design #
You can make a smooth multi-form screen
How to use #
At first, you should to add in all screens Scaling class and send (Build context)
Scaling.scaling(context);
You can use it for do responsive Height and Width
height: Scaling.H(200),
width: Scaling.W(200),
And you can use it for create responsive size
for font size or any thing
Text(
"Scaling",
style: TextStyle(
fontSize: Scaling.S(20),
),
),