Skip to content

Commit

Permalink
add not found text style property
Browse files Browse the repository at this point in the history
  • Loading branch information
AcarFurkan committed May 7, 2024
1 parent 24f8465 commit b9abcc2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## 0.2.8

* add not found text style property

## 0.2.8

* minor update

## 0.2.7
Expand Down
3 changes: 3 additions & 0 deletions lib/src/overlay_content.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class OverlayContent extends StatelessWidget {
this.maxOverlayHeight,
required this.onItemSelected,
this.notFoundText,
this.notFoundTextStyle,
});
final List<OverlayItemModel> stocksTop;
final OverlaySearchController controller;
Expand All @@ -23,6 +24,7 @@ class OverlayContent extends StatelessWidget {
final double? maxOverlayHeight;
final Function(OverlayItemModel item) onItemSelected;
final String? notFoundText;
final TextStyle? notFoundTextStyle;

@override
Widget build(BuildContext context) {
Expand Down Expand Up @@ -75,6 +77,7 @@ class OverlayContent extends StatelessWidget {
: Center(
child: Text(
notFoundText ?? "No Results Found",
style: notFoundTextStyle,
),
),
),
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: overlay_search
description: You can show overlay search widget with this package.
version: 0.2.8
version: 0.2.9
homepage: https://furkanacar.dev
repository: https://github.com/AcarFurkan/overlay_search

Expand Down

0 comments on commit b9abcc2

Please sign in to comment.