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
171bb6b4
Commit
171bb6b4
authored
May 26, 2024
by
Rizal Hermawan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor : add clearFilter Function
parent
c93c03d5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
lib/src/floating_search_bar_actions.dart
+2
-0
No files found.
lib/src/floating_search_bar_actions.dart
View file @
171bb6b4
...
@@ -77,6 +77,7 @@ class FloatingSearchBarAction extends StatelessWidget {
...
@@ -77,6 +77,7 @@ class FloatingSearchBarAction extends StatelessWidget {
factory
FloatingSearchBarAction
.
searchToClear
({
factory
FloatingSearchBarAction
.
searchToClear
({
double
size
=
24
,
double
size
=
24
,
Color
?
color
,
Color
?
color
,
Function
()?
clearFilter
,
bool
showIfClosed
=
true
,
bool
showIfClosed
=
true
,
Duration
duration
=
const
Duration
(
milliseconds:
900
),
Duration
duration
=
const
Duration
(
milliseconds:
900
),
String
searchButtonSemanticLabel
=
'Search'
,
String
searchButtonSemanticLabel
=
'Search'
,
...
@@ -105,6 +106,7 @@ class FloatingSearchBarAction extends StatelessWidget {
...
@@ -105,6 +106,7 @@ class FloatingSearchBarAction extends StatelessWidget {
bar
.
isOpen
=
bar
.
isOpen
=
!
bar
.
isOpen
||
(!
bar
.
hasFocus
&&
bar
.
isAlwaysOpened
);
!
bar
.
isOpen
||
(!
bar
.
hasFocus
&&
bar
.
isAlwaysOpened
);
}
}
clearFilter
!();
},
},
searchButtonSemanticLabel:
searchButtonSemanticLabel
,
searchButtonSemanticLabel:
searchButtonSemanticLabel
,
clearButtonSemanticLabel:
clearButtonSemanticLabel
,
clearButtonSemanticLabel:
clearButtonSemanticLabel
,
...
...
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