tencent_keyboard_visibility 1.0.1 copy "tencent_keyboard_visibility: ^1.0.1" to clipboard
tencent_keyboard_visibility: ^1.0.1 copied to clipboard

A new Flutter keyboard visibility package.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:tencent_keyboard_visibility/tencent_keyboard_visibility.dart';

void main() {
  runApp(const MaterialApp(
    home: MyHomePage(),
  ));
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({Key? key}) : super(key: key);

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text("Keyboard visibility example"),
      ),
      body: KeyboardVisibility(
        // it will notify
        onChanged: (bool visible) {
          print(visible);
        },
        child: Center(
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: const <Widget>[TextField()],
          ),
        ),
      ),
    );
  }
}
1
likes
120
points
1.54k
downloads

Publisher

verified publishercomm.qq.com

Weekly Downloads

A new Flutter keyboard visibility package.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on tencent_keyboard_visibility