Minor changes
This commit is contained in:
parent
5ca5a1a241
commit
2ff51d10f8
1 changed files with 45 additions and 43 deletions
|
@ -118,7 +118,9 @@ class _LocationGalleryWidgetState extends State<LocationGalleryWidget> {
|
||||||
loadingWidget: Column(
|
loadingWidget: Column(
|
||||||
children: [
|
children: [
|
||||||
galleryHeaderWidget,
|
galleryHeaderWidget,
|
||||||
const EnteLoadingWidget(),
|
EnteLoadingWidget(
|
||||||
|
color: getEnteColorScheme(context).strokeMuted,
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
header: galleryHeaderWidget,
|
header: galleryHeaderWidget,
|
||||||
|
@ -133,7 +135,14 @@ class _LocationGalleryWidgetState extends State<LocationGalleryWidget> {
|
||||||
tagPrefix: "location_gallery",
|
tagPrefix: "location_gallery",
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
return galleryHeaderWidget;
|
return Column(
|
||||||
|
children: [
|
||||||
|
galleryHeaderWidget,
|
||||||
|
const Expanded(
|
||||||
|
child: EnteLoadingWidget(),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
future: filterFiles(),
|
future: filterFiles(),
|
||||||
|
@ -156,11 +165,7 @@ class _GalleryHeaderWidgetState extends State<GalleryHeaderWidget> {
|
||||||
InheritedLocationScreenState.of(context).locationTag.name;
|
InheritedLocationScreenState.of(context).locationTag.name;
|
||||||
return Padding(
|
return Padding(
|
||||||
padding: const EdgeInsets.only(bottom: 20),
|
padding: const EdgeInsets.only(bottom: 20),
|
||||||
child: Column(
|
child: Padding(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
|
||||||
mainAxisSize: MainAxisSize.min,
|
|
||||||
children: [
|
|
||||||
Padding(
|
|
||||||
padding: const EdgeInsets.symmetric(vertical: 4, horizontal: 16),
|
padding: const EdgeInsets.symmetric(vertical: 4, horizontal: 16),
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
|
@ -174,8 +179,7 @@ class _GalleryHeaderWidgetState extends State<GalleryHeaderWidget> {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
ValueListenableBuilder(
|
ValueListenableBuilder(
|
||||||
valueListenable:
|
valueListenable: InheritedLocationScreenState.memoryCountNotifier,
|
||||||
InheritedLocationScreenState.memoryCountNotifier,
|
|
||||||
builder: (context, value, _) {
|
builder: (context, value, _) {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return RepaintBoundary(
|
return RepaintBoundary(
|
||||||
|
@ -197,8 +201,6 @@ class _GalleryHeaderWidgetState extends State<GalleryHeaderWidget> {
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue