mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
fix: respect storage indicator setting (#22596)
* fix: respect storage indicator size setting * remove black bar on the bottom of the setting scaffold page --------- Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com> Co-authored-by: Alex <alex.tran1502@gmail.com>
This commit is contained in:
parent
f86d5232a8
commit
71f5a49195
3 changed files with 8 additions and 13 deletions
|
|
@ -141,14 +141,9 @@ class SettingsSubPage extends StatelessWidget {
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
context.locale;
|
context.locale;
|
||||||
return SafeArea(
|
return Scaffold(
|
||||||
bottom: true,
|
|
||||||
top: false,
|
|
||||||
right: true,
|
|
||||||
child: Scaffold(
|
|
||||||
appBar: AppBar(centerTitle: false, title: Text(section.title).tr()),
|
appBar: AppBar(centerTitle: false, title: Text(section.title).tr()),
|
||||||
body: section.widget,
|
body: section.widget,
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ class ThumbnailTile extends ConsumerWidget {
|
||||||
this.asset, {
|
this.asset, {
|
||||||
this.size = kThumbnailResolution,
|
this.size = kThumbnailResolution,
|
||||||
this.fit = BoxFit.cover,
|
this.fit = BoxFit.cover,
|
||||||
this.showStorageIndicator,
|
this.showStorageIndicator = false,
|
||||||
this.lockSelection = false,
|
this.lockSelection = false,
|
||||||
this.heroOffset,
|
this.heroOffset,
|
||||||
super.key,
|
super.key,
|
||||||
|
|
@ -25,7 +25,7 @@ class ThumbnailTile extends ConsumerWidget {
|
||||||
final BaseAsset? asset;
|
final BaseAsset? asset;
|
||||||
final Size size;
|
final Size size;
|
||||||
final BoxFit fit;
|
final BoxFit fit;
|
||||||
final bool? showStorageIndicator;
|
final bool showStorageIndicator;
|
||||||
final bool lockSelection;
|
final bool lockSelection;
|
||||||
final int? heroOffset;
|
final int? heroOffset;
|
||||||
|
|
||||||
|
|
@ -55,7 +55,7 @@ class ThumbnailTile extends ConsumerWidget {
|
||||||
: const BoxDecoration();
|
: const BoxDecoration();
|
||||||
|
|
||||||
final bool storageIndicator =
|
final bool storageIndicator =
|
||||||
showStorageIndicator ?? ref.watch(settingsProvider.select((s) => s.get(Setting.showStorageIndicator)));
|
ref.watch(settingsProvider.select((s) => s.get(Setting.showStorageIndicator))) && showStorageIndicator;
|
||||||
|
|
||||||
return Stack(
|
return Stack(
|
||||||
children: [
|
children: [
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ class TimelineArgs {
|
||||||
final double maxHeight;
|
final double maxHeight;
|
||||||
final double spacing;
|
final double spacing;
|
||||||
final int columnCount;
|
final int columnCount;
|
||||||
final bool? showStorageIndicator;
|
final bool showStorageIndicator;
|
||||||
final bool withStack;
|
final bool withStack;
|
||||||
final GroupAssetsBy? groupBy;
|
final GroupAssetsBy? groupBy;
|
||||||
|
|
||||||
|
|
@ -23,7 +23,7 @@ class TimelineArgs {
|
||||||
required this.maxHeight,
|
required this.maxHeight,
|
||||||
this.spacing = kTimelineSpacing,
|
this.spacing = kTimelineSpacing,
|
||||||
this.columnCount = kTimelineColumnCount,
|
this.columnCount = kTimelineColumnCount,
|
||||||
this.showStorageIndicator,
|
this.showStorageIndicator = false,
|
||||||
this.withStack = false,
|
this.withStack = false,
|
||||||
this.groupBy,
|
this.groupBy,
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue