|
|
|
@ -22,12 +22,17 @@ class DriftPlacePage extends StatelessWidget {
|
|
|
|
final ValueNotifier<String?> search = ValueNotifier(null);
|
|
|
|
final ValueNotifier<String?> search = ValueNotifier(null);
|
|
|
|
|
|
|
|
|
|
|
|
return Scaffold(
|
|
|
|
return Scaffold(
|
|
|
|
body: CustomScrollView(
|
|
|
|
body: ValueListenableBuilder(
|
|
|
|
slivers: [
|
|
|
|
valueListenable: search,
|
|
|
|
_PlaceSliverAppBar(search: search),
|
|
|
|
builder: (context, searchValue, child) {
|
|
|
|
_Map(search: search, currentLocation: currentLocation),
|
|
|
|
return CustomScrollView(
|
|
|
|
_PlaceList(search: search),
|
|
|
|
slivers: [
|
|
|
|
],
|
|
|
|
_PlaceSliverAppBar(search: search),
|
|
|
|
|
|
|
|
_Map(search: search, currentLocation: currentLocation),
|
|
|
|
|
|
|
|
_PlaceList(search: search),
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
},
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -104,7 +109,9 @@ class _Map extends StatelessWidget {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
)
|
|
|
|
: const SizedBox.shrink();
|
|
|
|
: const SliverToBoxAdapter(
|
|
|
|
|
|
|
|
child: SizedBox.shrink(),
|
|
|
|
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|