Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 385 Bytes

useOrientationFn.md

File metadata and controls

25 lines (19 loc) · 385 Bytes

useOrientationFn

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

Installation

dependencies:
  flutter_use: ^0.0.2

Usage

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

    return Container();
  }
}