dropdown_suggestions_form_field 1.0.3 copy "dropdown_suggestions_form_field: ^1.0.3" to clipboard
dropdown_suggestions_form_field: ^1.0.3 copied to clipboard

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),
      ],
    );
  }
}
5
likes
40
pub points
0%
popularity

Publisher

unverified uploader

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

Homepage

License

BSD-3-Clause (LICENSE)

Dependencies

flutter, rxdart

More

Packages that depend on dropdown_suggestions_form_field