项目作者: elgansayer

项目描述 :
A fully customisable Flutter AppBar widget with a switchable TextField mainly aiming for use as a search bar.
高级语言: Dart
项目地址: git://github.com/elgansayer/appbar_textfield.git
创建时间: 2020-07-27T17:17:53Z
项目社区:https://github.com/elgansayer/appbar_textfield

开源协议:MIT License

下载


AppBarTextField()

A fully customisable Flutter AppBar widget with a switchable TextField mainly aiming for use as a search bar.

Built out of the frustration with limitations amd performance of similar widgets. This widget aims to be completely customisable and performant.
Both the AppBar and TextField are fully customizable.

The customisable search icon switches the AppBar to a TextField using a reveal animation. The widget directly exposes the TextField onChanged callback to allow a developer more flexibility in their application.

There is no opinionated search built in. You may use whatever state management you like. The example contains a basic search example.

alt-text

  1. appBar: AppBarTextfield(
  2. title: Text("Contacts"),
  3. onBackPressed: _onRestoreAllData,
  4. onClearPressed: _onRestoreAllData,
  5. onChanged: _onSearchChanged,
  6. ),

Dependencies
Using circular_reveal_animation from flutter pub
https://pub.dev/packages/circular_reveal_animation

Example Dependencies
faker: ^1.2.1