Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop onSubmitted callback and customization of boxShadow, textField, and icon colors. #21

Merged
merged 2 commits into from
Dec 19, 2022

Conversation

stevenrobson
Copy link
Contributor

@stevenrobson stevenrobson commented Jun 7, 2022

Added the missing onSubmitted callback.
Option to change icon colors.
Option to change text area color when search bar opens.
When user taps X and the search field is empty the bar closes.

example usage. works great as a search in an AppBar.

AnimSearchBar(
   color: const Color.fromARGB(0, 12, 162, 231),
          
   searchIconColor: Colors.white,
   textFieldColor: Colors.white,
   textFieldIconColor: Colors.blue,
   boxShadow: false,
   onSubmitted: (value) => print("submitted: $value"),

   width: MediaQuery.of(context).size.width - 100,
   textController: textController,
   onSuffixTap: () {},
)

Screenshot_1654587115
Screenshot_1654587098

@Jhakiz
Copy link

Jhakiz commented Aug 7, 2022

These are exactly what am looking for; thank you @stevenrobson.
This pull request improves really this package. The onSubmit callback and TextField color are two feature i missed in this.

@Imgkl Imgkl merged commit e41e924 into Imgkl:master Dec 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants