dropdown_suggestions_form_field 1.0.3

Flutter Android iOS web

The dropdown suggestions form field widget provides a list of suggestions while typing into a text form field

example/lib/main.dart

import 'package:flutter/material.dart';

import 'advance_example.dart';
import 'simple_example.dart';

void main() => runApp(App());

class App extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: Text('Example'),
        ),
        body: SafeArea(
          child: Container(
            padding: EdgeInsets.all(10.0),
            child: DropdownSuggestionsFormFieldExample(),
          ),
        ),
      ),
    );
  }
}

class DropdownSuggestionsFormFieldExample extends StatefulWidget {
  @override
  _DropdownSuggestionsFormFieldExampleState createState() =>
      _DropdownSuggestionsFormFieldExampleState();
}

class _DropdownSuggestionsFormFieldExampleState
    extends State<DropdownSuggestionsFormFieldExample> {
  List<String> _suggestions = List.generate(1000, (index) => 'Item $index');

  @override
  Widget build(BuildContext context) {
    return Column(
      children: <Widget>[
        SimpleExample(suggestions: _suggestions),
        AdvanceExample(suggestions: _suggestions),
      ],
    );
  }
}
4
likes
110
pub points
51%
popularity

The dropdown suggestions form field widget provides a list of suggestions while typing into a text form field

Homepage

Documentation

API reference

Uploader

thecloudcomar@gmail.com

License

BSD (LICENSE)

Dependencies

flutter, rxdart

More

Packages that depend on dropdown_suggestions_form_field