Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
material_floating_search_bar_2-0.5.0-f.3.0
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dart-package
material_floating_search_bar_2-0.5.0-f.3.0
Commits
c724d3a1
Commit
c724d3a1
authored
Mar 01, 2024
by
Rizal Hermawan
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor : clears hint text after click close on appbar
parent
7024a6a9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
lib/src/floating_search_app_bar.dart
+0
-3
No files found.
lib/src/floating_search_app_bar.dart
View file @
c724d3a1
...
@@ -379,12 +379,9 @@ class FloatingSearchAppBarState extends ImplicitlyAnimatedWidgetState<
...
@@ -379,12 +379,9 @@ class FloatingSearchAppBarState extends ImplicitlyAnimatedWidgetState<
}
}
void
clear
()
{
void
clear
()
{
final
bool
hasQuery
=
!
widget
.
clearQueryOnClose
&&
query
.
isNotEmpty
;
if
(
hasQuery
==
true
)
{
setState
(()
{
setState
(()
{
widget
.
hint
=
''
;
widget
.
hint
=
''
;
});
});
}
_input
.
clear
();
_input
.
clear
();
}
}
...
...
Rizal Hermawan
@hermawan
mentioned in commit
c93c03d5
Mar 01, 2024
mentioned in commit
c93c03d5
mentioned in commit c93c03d509a5266bdf637627b0c5546d4c113af9
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment