field_suggestion 0.1.1
field_suggestion: ^0.1.1 copied to clipboard

This package helps to make beautiful type ahead fields. It listens values of given TextEditingController and checks if the given value is in the given suggestion list or not.

Field Suggestion #

codecov Package Version LICENSE


Installing #

Depend on it #

Add this to your package's pubspec.yaml file:

dependencies:
  field_suggestion: ^0.1.1

Install it #

You can install packages from the command line:

$ flutter pub get

Import it #

Now in your Flutter code, you can use:

import 'package:field_suggestion/field_suggestion.dart';

Usage and overview #

Require to create a TextEditingController and suggestions list, e.g:

final emailEditingController = TextEditingController();
// And 
List<String> suggestionList = [
 'test@gmail.com',
 'test1@gmail.com',
 'test2@gmail.com',
];

<br/>

Basic/Default usage. #

FieldSuggestion(
  textController: emailEditingController,
  suggestionList: suggestionList,
  hint: 'Email',
),

Custom usage. #

FieldSuggestion(
  textController: secondTextController,
  suggestionList: suggestionList,
  fieldDecoration: InputDecoration(
    hintText: "Email",
    enabledBorder: OutlineInputBorder(),
    focusedBorder: OutlineInputBorder(),
  ),
  wDivider: true,
  divider: SizedBox(height: 5),
  wSlideAnimation: true,
  slideAnimationStyle: SlideAnimationStyle.LTR,
  slideCurve: Curves.linearToEaseOut,
  animationDuration: Duration(milliseconds: 300),
  suggestionItemStyle: SuggestionItemStyle.WhiteNeumorphismedStyle,
  suggestionBoxStyle: SuggestionBoxStyle(
    backgroundColor: Colors.white,
    borderRadius: BorderRadius.circular(15),
    boxShadow: [
      BoxShadow(
        color: Colors.blue.withOpacity(.2),
        spreadRadius: 5,
        blurRadius: 10,
        offset: Offset(0, 5),
      ),
    ],
  ),
)

Contributions #

Feel free to contribute to this project.

If you find a bug or want a feature, but don't know how to fix/implement it, please fill an issue. <br/> If you fixed a bug or implemented a new feature, please send a pull request.

5
likes
110
pub points
5%
popularity

This package helps to make beautiful type ahead fields. It listens values of given TextEditingController and checks if the given value is in the given suggestion list or not.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

st.bahahd@gmail.com

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on field_suggestion