custom_keyboard_action 0.0.2 copy "custom_keyboard_action: ^0.0.2" to clipboard
custom_keyboard_action: ^0.0.2 copied to clipboard

outdated

custom keyboard action

example/lib/main.dart

import 'package:flutter/material.dart';

import 'package:custom_keyboard_action/custom_keyboard_action.dart';

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

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Column(
          children: [
            const Center(
              child: TextField(
                keyboardType: TextInputType.number,
              ),
            ),
            TextFormFieldCustomKeyboard(
              controller: TextEditingController(),
            ),
          ],
        ),
      ),
    );
  }
}