|
@@ -8,6 +8,7 @@ import 'package:photos/ente_theme_data.dart';
|
|
|
import 'package:photos/models/search/search_result.dart';
|
|
|
import 'package:photos/services/feature_flag_service.dart';
|
|
|
import 'package:photos/services/search_service.dart';
|
|
|
+import 'package:photos/ui/components/icon_button_widget.dart';
|
|
|
import 'package:photos/ui/viewer/search/result/no_result_widget.dart';
|
|
|
import 'package:photos/ui/viewer/search/search_suffix_icon_widget.dart';
|
|
|
import 'package:photos/ui/viewer/search/search_suggestions.dart';
|
|
@@ -32,20 +33,17 @@ class _SearchIconWidgetState extends State<SearchIconWidget> {
|
|
|
Widget build(BuildContext context) {
|
|
|
return Hero(
|
|
|
tag: "search_icon",
|
|
|
- child: Padding(
|
|
|
- padding: const EdgeInsets.all(4.0),
|
|
|
- child: IconButton(
|
|
|
- visualDensity: const VisualDensity(horizontal: -2, vertical: -2),
|
|
|
- onPressed: () {
|
|
|
- Navigator.push(
|
|
|
- context,
|
|
|
- TransparentRoute(
|
|
|
- builder: (BuildContext context) => const SearchWidget(),
|
|
|
- ),
|
|
|
- );
|
|
|
- },
|
|
|
- icon: const Icon(Icons.search),
|
|
|
- ),
|
|
|
+ child: IconButtonWidget(
|
|
|
+ isPrimary: true,
|
|
|
+ icon: Icons.search,
|
|
|
+ onTap: () {
|
|
|
+ Navigator.push(
|
|
|
+ context,
|
|
|
+ TransparentRoute(
|
|
|
+ builder: (BuildContext context) => const SearchWidget(),
|
|
|
+ ),
|
|
|
+ );
|
|
|
+ },
|
|
|
),
|
|
|
);
|
|
|
}
|