mirror of
https://github.com/immich-app/immich.git
synced 2025-07-17 20:38:25 +02:00
fix(mobile): live / motion photo download (#5607)
* reverts: 5566 * fix: stitch livePhoto only in iOS * fix: PMProgressHandler only on iOS * ios: fallback to saving image if livephoto fails --------- Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
This commit is contained in:
parent
33529d1d9b
commit
960b68b02f
6 changed files with 34 additions and 16 deletions
mobile/lib/shared/ui
|
@ -3,7 +3,6 @@ import 'dart:math';
|
|||
import 'package:cached_network_image/cached_network_image.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
||||
import 'package:immich_mobile/extensions/build_context_extensions.dart';
|
||||
import 'package:immich_mobile/shared/models/store.dart';
|
||||
import 'package:immich_mobile/shared/models/user.dart';
|
||||
import 'package:immich_mobile/shared/ui/transparent_image.dart';
|
||||
|
@ -35,11 +34,10 @@ class UserCircleAvatar extends ConsumerWidget {
|
|||
color: isDarkTheme && user.avatarColor == AvatarColorEnum.primary
|
||||
? Colors.black
|
||||
: Colors.white,
|
||||
backgroundColor: user.avatarColor.toColor(),
|
||||
),
|
||||
);
|
||||
return CircleAvatar(
|
||||
backgroundColor: context.primaryColor,
|
||||
backgroundColor: user.avatarColor.toColor(),
|
||||
radius: radius,
|
||||
child: user.profileImagePath.isEmpty
|
||||
? textIcon
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue