flutter_flip_devices 1.0.0 copy "flutter_flip_devices: ^1.0.0" to clipboard
flutter_flip_devices: ^1.0.0 copied to clipboard

PlatformAndroid

Develop easily on devices like the Samsung Galaxy Z Flip / Z Flip 3

Helper for "Flip" devices #

Pub

A plugin to easily develop Flutter applications for Flip devices like Samsung Galaxy Z Flip or Samsung Galaxy Z Flip 3. It will notify when the device is either fully-opened, semi-opened and closed. On non-"flip" devices, it will always considered the screen as fully-opened.

FlutterFlipListener #

A Flutter Widget to be notified when the hinge state changed.

FlutterFlipListener(
  onDeviceClosed: () {},
  onDeviceSemiOpened: () {},
  onDeviceFullyOpened: () {},
  child: YourWidget(),
);

FlutterFlipBuilder #

A Flutter Widget to provide a Widget dependeing on the hinge state.

FlutterFlipBuilder(
  onDeviceClosed: (BuildContext context) {
    return Text('Closed');
  },
  onDeviceSemiOpened: (BuildContext context) {
    return Text('Semi-opened');
  },
  onDeviceFullyOpened: (BuildContext context) {
    return Text('Fully opened');
  },
);
11
likes
130
pub points
27%
popularity

Publisher

verified publisherdaad.mobi

Develop easily on devices like the Samsung Galaxy Z Flip / Z Flip 3

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (LICENSE)

Dependencies

dual_screen, flutter

More

Packages that depend on flutter_flip_devices