input_with_keyboard_control 1.0.2 copy "input_with_keyboard_control: ^1.0.2" to clipboard
input_with_keyboard_control: ^1.0.2 copied to clipboard

outdated

The package provides an input that you can control whether the keyboard will show or not

example/lib/main.dart

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

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Input With Keyboard Control',
      theme: ThemeData(
        primarySwatch: Colors.blue,
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
      home: MyHomePage(title: 'Input With Keyboard Control'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);

  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          title: Text(widget.title),
        ),
        body: Center(
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: <Widget>[
              InputWithKeyboardControl(
                  focusNode: InputWithKeyboardControlFocusNode(),
                  onSubmitted: (valor) {
                    print(valor);
                  },
                  autofocus: true,
                  controller: TextEditingController(),
                  width: 300,
                  showKeyboard: false),
            ],
          ),
        ));
  }
}
34
likes
0
pub points
86%
popularity

Publisher

unverified uploader

The package provides an input that you can control whether the keyboard will show or not

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on input_with_keyboard_control