perfect_text_field 1.0.0 copy "perfect_text_field: ^1.0.0" to clipboard
perfect_text_field: ^1.0.0 copied to clipboard

`PerfectTextField` builds on `TextFormField` and integrates additional features like auto-complete and a custom text controller for advanced text editing scenarios.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:perfect_text_field/input_formatters/decimal_number_formatter.dart';
import 'package:perfect_text_field/perfect_text_field.dart';

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

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

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

class _MyAppState extends State<MyApp> {
  final textController = PerfectTextController();

  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Perfect Text Field'),
        ),
        body: Center(
          child: SizedBox(
            width: 250,
            child: PerfectTextField(
              controller: textController,
              inputFormatters: const [
                DecimalNumberFormatter(
                  min: 1.0,
                  max: 100.0,
                  decimalLength: 2,
                )
              ],
              keyboardType: const TextInputType.numberWithOptions(
                decimal: true,
              ),
            ),
          ),
        ),
      ),
    );
  }
}
3
likes
130
points
6
downloads

Publisher

unverified uploader

Weekly Downloads

`PerfectTextField` builds on `TextFormField` and integrates additional features like auto-complete and a custom text controller for advanced text editing scenarios.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, get

More

Packages that depend on perfect_text_field