Browse Source

Location section improvements (#1508)

Location section improvements
Vishnu Mohandas 1 năm trước cách đây
mục cha
commit
0f4fed50b8
1 tập tin đã thay đổi với 7 bổ sung1 xóa
  1. 7 1
      lib/ui/viewer/search/search_section.dart

+ 7 - 1
lib/ui/viewer/search/search_section.dart

@@ -79,7 +79,7 @@ class _SearchSectionState extends State<SearchSection> {
     final textTheme = getEnteTextTheme(context);
     return Padding(
       padding: const EdgeInsets.symmetric(vertical: 8),
-      child: widget.examples.isNotEmpty
+      child: _examples.isNotEmpty
           ? GestureDetector(
               behavior: HitTestBehavior.opaque,
               onTap: () {
@@ -146,6 +146,12 @@ class _SearchSectionState extends State<SearchSection> {
                   ),
                   const SizedBox(width: 8),
                   SearchSectionEmptyCTAIcon(widget.sectionType),
+                  widget.sectionType == SectionType.location
+                      ? const Padding(
+                          padding: EdgeInsets.fromLTRB(8, 24, 8, 0),
+                          child: GoToMapWidget(),
+                        )
+                      : const SizedBox.shrink(),
                 ],
               ),
             ),