responsive_mobile 0.0.2 copy "responsive_mobile: ^0.0.2" to clipboard
responsive_mobile: ^0.0.2 copied to clipboard

outdated

Make responsibles apps

TODO: A package that helps you a make a responsive app, get the devices sizes by inches.

Features #

ScreenSize.getHeight() - gets the device height

ScreenSize.getWidth() - gets the device width

isSmallScreen4Inches() - return true if the device is lower than 4 inches

isSmallScreen5Inches() - return true if the device is lower than 5 inches

isLarge6Inches() - return true if the device is lower6 inches

isLarge6Halfnches()() - return true if the device is lower than 6.5 inches

Getting started #

Install the package on your pubspec.yaml, after that just call the ScreenSize class and call the static method that it is better for you

Usage #

Half device size for a container:

Container( width: ScreenSize.getWidth(context) * 0.2, height: ScreenSize.getHeight )

Change the size of something with the package:

TextStyleParams( text: 'exemple', fontSize: ScreenSize.isSmallScreen4Inches(context) ? 8 : 12, fontWeight: FontWeight.normal)

Make a responsive widget for all devices Padding( padding: EdgeInsets.only( bottom: ScreenSize.getHeight(context) * 0.04, right: ScreenSize.getAllDevicesInchesWidth(context, 0.16, 0.15, 0.13, 00.85, 0.080)), child: const Icon( Icons.add, color: Colors.blue, ), );

2
likes
0
points
44
downloads

Publisher

unverified uploader

Weekly Downloads

Make responsibles apps

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on responsive_mobile