duo_flex 0.3.3
duo_flex: ^0.3.3 copied to clipboard
Flutter plugin for iPhone Duo and foldable devices: read hinge angle, posture, display regions and window geometry, and build adaptive layouts.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add duo_flexThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
duo_flex: ^0.3.3Alternatively, 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:duo_flex/duo_flex.dart';