flutter_responsive_screen 1.0.0
flutter_responsive_screen: ^1.0.0 copied to clipboard
A new way to design by porcentage the size of objects
Responsive Screen for Flutter #
Using percentages to make the most accurate design views.
Installation #
On Flutter Dependencies "pubspec.yaml"
dependencies:
flutter:
sdk: flutter
flutter_responsive_screen: ^1.0.0
copied to clipboard
Usage #
...
import 'package:flutter_responsive_screen/..';
...
// (context){
final Function wp = Screen(MediaQuery.of(context).size).wp;
final Function hp = Screen(MediaQuery.of(context).size).hp;
...
// (widget)
SizedBox(height: hp(20), weight:wp(20)),
copied to clipboard