query_field 0.1.4 copy "query_field: ^0.1.4" to clipboard
query_field: ^0.1.4 copied to clipboard

Missing search field for Flutter.

query_field #

Pub

A Flutter's widget that represent search fields for different platforms.

Currently there are two designs supported:

  • Material MaterialSearchField

    Inspired by search field from Google's material apps

  • Cupertion CupertinoSearchField

    Inspired by search field from Apple's apps

Preview (You can find source code for the preview under example directory):

Preview

Getting Started #

Usage of the field quite similart to usage of TextField. The widget has leading and trailing widgets which will dissapear when user start typing and text control buttons (dissmiss and clear) will appear.

Material search field minimal example:

MaterialSearchField(
    onChanged: (text) {},
    onDismissed: () {},
)

Cupertino search field minimal example:

CupertinoSearchField(
    onChanged: (text) {},
    onDismissed: () {},
)

Use as Platform Widget:

The library supports Flutter Platform Widgets

PlatformSearchField(
    onChanged: (text) {},
    onDismissed: () {},
)

Internationalization #

You can provide your own strings for: hintText and dismissText directly by:

  • Widget constructor
  • Providing SearchFieldStringsLocalizations as localisation delegate
  • Contributing to the repository (The package support flutter_intl, or try to do that)
1
likes
30
pub points
0%
popularity

Publisher

unverified uploader

Missing search field for Flutter.

Repository (GitLab)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter, flutter_platform_widgets, intl

More

Packages that depend on query_field