simple_autocomplete_formfield 0.1.0 copy "simple_autocomplete_formfield: ^0.1.0" to clipboard
simple_autocomplete_formfield: ^0.1.0 copied to clipboard

outdated

A Flutter widget that wraps a TextFormField and assists with autocomplete functionality.

example/main.dart

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

class MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: ListView(
        children: <Widget>[
          SimpleAutocompleteFormField<String>(
            itemBuilder: (context, item) => Text(item),
            onSearch: (String search) async => [
                  'a $search',
                  'b $search',
                  'c $search',
                  'd $search',
                  'e $search',
                ],
          ),
        ],
      ),
    );
  }
}

void main() => runApp(new MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      title: 'Simple AutoComplete FormField example',
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  @override
  MyHomePageState createState() {
    return new MyHomePageState();
  }
}
32
likes
0
pub points
87%
popularity

Publisher

verified publisherdefylogic.dev

A Flutter widget that wraps a TextFormField and assists with autocomplete functionality.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on simple_autocomplete_formfield