el_responsive 0.0.2 el_responsive: ^0.0.2 copied to clipboard
MediaQuery alternative that triggers rebuild only at the breakpoints that you provided to the package instead of triggering it on every screen change (pixel by pixel)
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add el_responsive
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
el_responsive: ^0.0.2
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:el_responsive/el_responsive.dart';