Last updated:
0 purchases
size builder
📱💻📱
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
copied to clipboard
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
copied to clipboard
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';
copied to clipboard
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);
copied to clipboard
You can use it for do responsive Height and Width
height: Scaling.H(200),
width: Scaling.W(200),
copied to clipboard
And you can use it for create responsive size
for font size or any thing
Text(
"Scaling",
style: TextStyle(
fontSize: Scaling.S(20),
),
),
copied to clipboard
Stay tuned for strong updates in the future. #
With best regards, Samer Abd Al Ati
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.