mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
chore: bump dart sdk to 3.8 (#20355)
* chore: bump dart sdk to 3.8 * chore: make build * make pigeon * chore: format files --------- Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
This commit is contained in:
parent
9b3718120b
commit
e52b9d15b5
643 changed files with 32561 additions and 35292 deletions
|
|
@ -22,17 +22,13 @@ class MemoryLane extends HookConsumerWidget {
|
|||
.whenData(
|
||||
(memories) => memories != null
|
||||
? ConstrainedBox(
|
||||
constraints: const BoxConstraints(
|
||||
maxHeight: 200,
|
||||
),
|
||||
constraints: const BoxConstraints(maxHeight: 200),
|
||||
child: CarouselView(
|
||||
itemExtent: 145.0,
|
||||
shrinkExtent: 1.0,
|
||||
elevation: 2,
|
||||
backgroundColor: Colors.black,
|
||||
overlayColor: WidgetStateProperty.all(
|
||||
Colors.white.withValues(alpha: 0.1),
|
||||
),
|
||||
overlayColor: WidgetStateProperty.all(Colors.white.withValues(alpha: 0.1)),
|
||||
onTap: (memoryIndex) {
|
||||
ref.read(hapticFeedbackProvider.notifier).heavyImpact();
|
||||
if (memories[memoryIndex].assets.isNotEmpty) {
|
||||
|
|
@ -42,20 +38,10 @@ class MemoryLane extends HookConsumerWidget {
|
|||
ref.read(videoPlaybackValueProvider.notifier).reset();
|
||||
}
|
||||
}
|
||||
context.pushRoute(
|
||||
MemoryRoute(
|
||||
memories: memories,
|
||||
memoryIndex: memoryIndex,
|
||||
),
|
||||
);
|
||||
context.pushRoute(MemoryRoute(memories: memories, memoryIndex: memoryIndex));
|
||||
},
|
||||
children: memories
|
||||
.mapIndexed<Widget>(
|
||||
(index, memory) => MemoryCard(
|
||||
index: index,
|
||||
memory: memory,
|
||||
),
|
||||
)
|
||||
.mapIndexed<Widget>((index, memory) => MemoryCard(index: index, memory: memory))
|
||||
.toList(),
|
||||
),
|
||||
)
|
||||
|
|
@ -68,11 +54,7 @@ class MemoryLane extends HookConsumerWidget {
|
|||
}
|
||||
|
||||
class MemoryCard extends ConsumerWidget {
|
||||
const MemoryCard({
|
||||
super.key,
|
||||
required this.index,
|
||||
required this.memory,
|
||||
});
|
||||
const MemoryCard({super.key, required this.index, required this.memory});
|
||||
|
||||
final int index;
|
||||
final Memory memory;
|
||||
|
|
@ -83,10 +65,7 @@ class MemoryCard extends ConsumerWidget {
|
|||
child: Stack(
|
||||
children: [
|
||||
ColorFiltered(
|
||||
colorFilter: ColorFilter.mode(
|
||||
Colors.black.withValues(alpha: 0.2),
|
||||
BlendMode.darken,
|
||||
),
|
||||
colorFilter: ColorFilter.mode(Colors.black.withValues(alpha: 0.2), BlendMode.darken),
|
||||
child: Hero(
|
||||
tag: 'memory-${memory.assets[0].id}',
|
||||
child: ImmichImage(
|
||||
|
|
@ -94,10 +73,7 @@ class MemoryCard extends ConsumerWidget {
|
|||
fit: BoxFit.cover,
|
||||
width: 205,
|
||||
height: 200,
|
||||
placeholder: const ThumbnailPlaceholder(
|
||||
width: 105,
|
||||
height: 200,
|
||||
),
|
||||
placeholder: const ThumbnailPlaceholder(width: 105, height: 200),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
|
@ -105,16 +81,10 @@ class MemoryCard extends ConsumerWidget {
|
|||
bottom: 16,
|
||||
left: 16,
|
||||
child: ConstrainedBox(
|
||||
constraints: const BoxConstraints(
|
||||
maxWidth: 114,
|
||||
),
|
||||
constraints: const BoxConstraints(maxWidth: 114),
|
||||
child: Text(
|
||||
memory.title,
|
||||
style: const TextStyle(
|
||||
fontWeight: FontWeight.w600,
|
||||
color: Colors.white,
|
||||
fontSize: 15,
|
||||
),
|
||||
style: const TextStyle(fontWeight: FontWeight.w600, color: Colors.white, fontSize: 15),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue