edge_insert_observer 0.0.2
edge_insert_observer: ^0.0.2

Flutter Android iOS web

检测 Android,IOS EdgeInserts 完成事件.

edge_insert_observer #

检测 Android,IOS EdgeInserts 完成事件,常用于键盘事件.

示例 #

class LoginPage extends StatefulWidget {
  @override
  _LoginPageState createState() => _LoginPageState();
}

class _LoginPageState extends State<LoginPage>
    with WidgetsBindingObserver, BottomInsertObserver {
    @override
    void bottomInsertComplete() {
        final double bottomInsert = MediaQuery.of(context).viewInsets.bottom;
        print(bottomInsert);
    }
}
0
likes
90
pub points
20%
popularity

检测 Android,IOS EdgeInserts 完成事件.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

t604045540@gmail.com

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on edge_insert_observer