Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 514 Bytes

File metadata and controls

27 lines (20 loc) · 514 Bytes

useOrientationFn

Calls given function changed screen orientation of user's device.

Installation

dependencies:
  flutter_use: 

Usage

class Sample extends HookWidget {
  @override
  Widget build(BuildContext context) {
    useOrientationFn((orientation) {
      debugPrint('Orientation: $orientation');
    });

    return Container();
  }
}