Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
material_floating_search_bar_2-0.5.0-edited
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-edited
Commits
d03f48a2
Commit
d03f48a2
authored
Dec 04, 2023
by
Rizal Hermawan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix : conforms to flutter 2.5.x syntax
parent
ffa5710d
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
28 additions
and
21 deletions
+28
-21
example/.dart_tool/package_config.json
+1
-1
example/.dart_tool/package_config_subset
+4
-4
example/.packages
+1
-1
example/pubspec.yaml
+0
-3
lib/src/floating_search_bar.dart
+5
-0
lib/src/floating_search_bar_actions.dart
+5
-3
lib/src/widgets/animation/animated_value.dart
+3
-2
lib/src/widgets/animation/circular_reveal_transition.dart
+3
-2
lib/src/widgets/animation/size_fade_transition.dart
+2
-1
lib/src/widgets/circular_button.dart
+2
-2
lib/src/widgets/search_to_clear.dart
+2
-2
No files found.
example/.dart_tool/package_config.json
View file @
d03f48a2
...
...
@@ -176,7 +176,7 @@
"languageVersion"
:
"2.12"
}
],
"generated"
:
"2023-12-04T0
4:51:53.833263
Z"
,
"generated"
:
"2023-12-04T0
5:24:05.307966
Z"
,
"generator"
:
"pub"
,
"generatorVersion"
:
"2.14.4"
}
example/.dart_tool/package_config_subset
View file @
d03f48a2
...
...
@@ -108,10 +108,10 @@ file:///C:/24%20Rizal%20Hermawan/flutter_2.5.3/packages/flutter_test/
file:///C:/24%20Rizal%20Hermawan/flutter_2.5.3/packages/flutter_test/lib/
material_floating_search_bar_2
2.12
file:///C:/24%20Rizal%20Hermawan/job/mobile/codingan/edit_pub/material_floating_search_bar_2-0.5.0/
file:///C:/24%20Rizal%20Hermawan/job/mobile/codingan/edit_pub/material_floating_search_bar_2-0.5.0/lib/
file:///C:/24%20Rizal%20Hermawan/job/mobile/codingan/edit_pub/material_floating_search_bar_2-0.5.0
-edited
/
file:///C:/24%20Rizal%20Hermawan/job/mobile/codingan/edit_pub/material_floating_search_bar_2-0.5.0
-edited
/lib/
example
2.12
file:///C:/24%20Rizal%20Hermawan/job/mobile/codingan/edit_pub/material_floating_search_bar_2-0.5.0/example/
file:///C:/24%20Rizal%20Hermawan/job/mobile/codingan/edit_pub/material_floating_search_bar_2-0.5.0/example/lib/
file:///C:/24%20Rizal%20Hermawan/job/mobile/codingan/edit_pub/material_floating_search_bar_2-0.5.0
-edited
/example/
file:///C:/24%20Rizal%20Hermawan/job/mobile/codingan/edit_pub/material_floating_search_bar_2-0.5.0
-edited
/example/lib/
2
example/.packages
View file @
d03f48a2
...
...
@@ -3,7 +3,7 @@
#
# For more info see: https://dart.dev/go/dot-packages-deprecation
#
# Generated by pub on 2023-12-04 1
1:51:53.816327
.
# Generated by pub on 2023-12-04 1
2:24:05.294051
.
async:file:///C:/24%20Rizal%20Hermawan/flutter_2.5.3/.pub-cache/hosted/pub.dartlang.org/async-2.8.1/lib/
boolean_selector:file:///C:/24%20Rizal%20Hermawan/flutter_2.5.3/.pub-cache/hosted/pub.dartlang.org/boolean_selector-2.1.0/lib/
characters:file:///C:/24%20Rizal%20Hermawan/flutter_2.5.3/.pub-cache/hosted/pub.dartlang.org/characters-1.1.0/lib/
...
...
example/pubspec.yaml
View file @
d03f48a2
...
...
@@ -22,9 +22,6 @@ dev_dependencies:
flutter
:
uses-material-design
:
true
assets
:
-
assets/map.jpg
fonts
:
-
family
:
Montserrat
...
...
lib/src/floating_search_bar.dart
View file @
d03f48a2
...
...
@@ -20,6 +20,11 @@ part 'floating_search_app_bar.dart';
typedef
FloatingSearchBarBuilder
=
Widget
Function
(
BuildContext
context
,
Animation
<
double
>
transition
);
typedef
EditableTextContextMenuBuilder
=
Widget
Function
(
BuildContext
context
,
EditableTextState
editableTextState
,
);
/// An expandable material floating search bar with customizable
/// transitions similar to the ones used extensively
/// by Google in their apps.
...
...
lib/src/floating_search_bar_actions.dart
View file @
d03f48a2
// ignore_for_file: use_key_in_widget_constructors
import
'package:flutter/material.dart'
;
import
'floating_search_bar.dart'
;
...
...
@@ -15,7 +17,6 @@ class FloatingSearchBarAction extends StatelessWidget {
///
/// Typically this widget wraps a [CircularButton].
const
FloatingSearchBarAction
({
super
.
key
,
this
.
child
,
this
.
builder
,
this
.
showIfOpened
=
false
,
...
...
@@ -209,11 +210,12 @@ class FloatingSearchBarAction extends StatelessWidget {
/// Creates a row for [FloatingSearchBarActions].
class
FloatingSearchActionBar
extends
StatelessWidget
{
const
FloatingSearchActionBar
({
super
.
key
,
Key
?
key
,
required
this
.
animation
,
required
this
.
actions
,
this
.
iconTheme
,
});
})
:
super
(
key:
key
);
final
Animation
<
double
>
animation
;
final
List
<
Widget
>
actions
;
final
IconThemeData
?
iconTheme
;
...
...
lib/src/widgets/animation/animated_value.dart
View file @
d03f48a2
...
...
@@ -8,12 +8,13 @@ import 'implicit_animation_builder.dart';
class
AnimatedValue
extends
StatelessWidget
{
const
AnimatedValue
({
super
.
key
,
Key
?
key
,
required
this
.
value
,
required
this
.
duration
,
this
.
curve
=
Curves
.
linear
,
required
this
.
builder
,
});
})
:
super
(
key:
key
);
final
double
value
;
final
Duration
duration
;
final
Curve
curve
;
...
...
lib/src/widgets/animation/circular_reveal_transition.dart
View file @
d03f48a2
...
...
@@ -7,14 +7,15 @@ import 'package:flutter/material.dart';
class
CircularReveal
extends
StatelessWidget
{
const
CircularReveal
({
super
.
key
,
Key
?
key
,
this
.
fraction
=
1.0
,
this
.
origin
=
Alignment
.
center
,
this
.
offset
=
Offset
.
zero
,
this
.
child
,
this
.
minRadius
,
this
.
maxRadius
,
});
})
:
super
(
key:
key
);
final
double
fraction
;
final
Alignment
origin
;
final
Offset
offset
;
...
...
lib/src/widgets/animation/size_fade_transition.dart
View file @
d03f48a2
...
...
@@ -3,8 +3,8 @@ import 'package:flutter/material.dart';
// ignore_for_file: public_member_api_docs
class
SizeFadeTransition
extends
StatefulWidget
{
// ignore: use_key_in_widget_constructors
const
SizeFadeTransition
({
super
.
key
,
required
this
.
animation
,
this
.
sizeFraction
=
0.5
,
this
.
curve
=
Curves
.
linear
,
...
...
@@ -12,6 +12,7 @@ class SizeFadeTransition extends StatefulWidget {
this
.
axisAlignment
=
0.0
,
this
.
child
,
})
:
assert
(
sizeFraction
>=
0.0
&&
sizeFraction
<=
1.0
);
final
Animation
<
double
>
animation
;
final
Curve
curve
;
final
double
sizeFraction
;
...
...
lib/src/widgets/circular_button.dart
View file @
d03f48a2
...
...
@@ -6,13 +6,13 @@ class CircularButton extends StatelessWidget {
/// Creates an easier to use [IconButton] for
/// [FloatingSearchBar] actions.
const
CircularButton
({
super
.
key
,
Key
?
key
,
required
this
.
icon
,
required
this
.
onPressed
,
this
.
size
=
24.0
,
this
.
padding
=
const
EdgeInsets
.
all
(
8
),
this
.
tooltip
,
});
})
:
super
(
key:
key
)
;
// ignore: public_member_api_docs
final
Widget
icon
;
...
...
lib/src/widgets/search_to_clear.dart
View file @
d03f48a2
...
...
@@ -11,7 +11,7 @@ class SearchToClear extends StatelessWidget {
/// Creates a Widget that animates between a search and
/// a clear icon.
const
SearchToClear
({
super
.
key
,
Key
?
key
,
required
this
.
isEmpty
,
required
this
.
onTap
,
this
.
duration
=
const
Duration
(
milliseconds:
500
),
...
...
@@ -19,7 +19,7 @@ class SearchToClear extends StatelessWidget {
this
.
size
=
24.0
,
this
.
searchButtonSemanticLabel
=
'Search'
,
this
.
clearButtonSemanticLabel
=
'Clear'
,
});
})
:
super
(
key:
key
)
;
/// If `true`, the search icon will be shown.
final
bool
isEmpty
;
...
...
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