dynamic_size 0.1.3
dynamic_size: ^0.1.3 copied to clipboard
Flutter Package For Create A Responsive Design From Figma,XD Etc.....
Platform Support #
| Android | iOS | | :-----: | :-: | | ✔️ | ✔️
Installation #
Add this line to pubspec.yaml
yaml
dependencies:
dynamic_size: <latest_version>
Usage #
Import package
import 'package:dynamic_size/dynamic_size.dart';
Add Design Screen Size In Class Constructor
dynamicsize size = dynamicsize(context, 849, 393);
Add height & Width
dynamicsize size = dynamicsize(context, 849, 393);
height = size.h(20);
width = size.w(20);
HeightSpace(20);
WidthSpace(20);
A New Dynamic Container
Dcontainer(
height:20
width:20
);
For Navigation :-
Pop(context);
NewScreen(context,Screen());
ReplaceScreen(context,Screen());