Compare commits
No commits in common. "621bb74cc95b3f2445043a8ccbf2213a4f29af9f" and "a7ccf0ff00bf847bd58619a92c7633b0feec79eb" have entirely different histories.
621bb74cc9
...
a7ccf0ff00
3 changed files with 6 additions and 11 deletions
|
|
@ -30,7 +30,6 @@ class AvatarOrHash extends ConsumerWidget {
|
|||
color: ColorHash(title).color,
|
||||
child: Center(child: Text(title.isEmpty ? "" : title[0])),
|
||||
);
|
||||
|
||||
final parsedAvatar = avatar?.mxcToHttps(
|
||||
ref.watch(
|
||||
ClientStateController.provider.select(
|
||||
|
|
@ -39,7 +38,6 @@ class AvatarOrHash extends ConsumerWidget {
|
|||
) ??
|
||||
"",
|
||||
);
|
||||
|
||||
return SizedBox(
|
||||
width: height,
|
||||
height: height,
|
||||
|
|
@ -64,8 +62,8 @@ class AvatarOrHash extends ConsumerWidget {
|
|||
),
|
||||
fit: .cover,
|
||||
loadingBuilder: (_, child, loadingProgress) =>
|
||||
loadingProgress == null ? child : fallback ?? box,
|
||||
errorBuilder: (_, _, _) => fallback ?? box,
|
||||
loadingProgress == null ? child : box,
|
||||
errorBuilder: (_, _, _) => box,
|
||||
),
|
||||
),
|
||||
),
|
||||
|
|
|
|||
|
|
@ -21,12 +21,9 @@ class ExpandableImage extends ConsumerWidget {
|
|||
builder: (context, constraints) => Dialog(
|
||||
backgroundColor: Colors.transparent,
|
||||
insetPadding: .all(constraints.maxWidth / 100),
|
||||
child: InteractiveViewer(
|
||||
maxScale: 5,
|
||||
child: ConstrainedBox(
|
||||
constraints: .new(
|
||||
minWidth: min(constraints.maxWidth, 1000),
|
||||
),
|
||||
constraints: .new(minWidth: min(constraints.maxWidth, 1000)),
|
||||
child: InteractiveViewer(
|
||||
child: Image(
|
||||
fit: .contain,
|
||||
errorBuilder: (_, error, stackTrace) => ErrorDialog(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue