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

outdated

Auto Suggestion TextField with support for customization. it can be use on iOS and android.

auto_suggestion_text_field #

Auto Suggestion TextField

Usage #


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

  final String title;

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

class _MyHomePageState extends State<MyHomePage> {
  final _dummySuggestionNames = [
    "Shantae Zook",
    "Sandie Curtis",
    "Kary Janssen",
    "Millard Murray",
    "Rocio Golightly",
    "Cesar Davi",
    "Trinh Eurich",
    "Bethel Roney",
    "Harland Bridgewater",
    "Camie Behr",
    "Cleo Bruck",
    "Alexandra Burgoyne",
    "Debora Crossett",
    "Latina Drye",
    "Palma Guillen",
    "Trenton Burgo",
    "Frankie Sifford",
    "Charley Carboni",
    "Dannielle Pietila",
    "Jenni Hardrick"
  ];

  @override
  Widget build(BuildContext context) {
    final props = TextFieldProperties(
      data: _dummySuggestionNames,
      hint: "Jesse",
      fieldHeight: 90,
      error: "No matching name available",
      onValueSelect: (value) => onSuggestionSelected(value),
    );

    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: SuggestionTextField(props: props),
      ),
    );
  }

  onSuggestionSelected(String value) => print("Value selected is: $value");
}

You can customise the properties of the text field possible properties are listed inside the

TextFieldProperties

Alt text Alt text Alt text

2
likes
0
pub points
0%
popularity

Publisher

unverified uploader

Auto Suggestion TextField with support for customization. it can be use on iOS and android.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, rxdart

More

Packages that depend on auto_suggestion_text_field