turn up max zoom of expandable image viewer

This commit is contained in:
Henry Hiles 2026-06-05 12:52:30 -04:00
commit 621bb74cc9
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs
2 changed files with 8 additions and 3 deletions

View file

@ -30,6 +30,7 @@ class AvatarOrHash extends ConsumerWidget {
color: ColorHash(title).color, color: ColorHash(title).color,
child: Center(child: Text(title.isEmpty ? "" : title[0])), child: Center(child: Text(title.isEmpty ? "" : title[0])),
); );
final parsedAvatar = avatar?.mxcToHttps( final parsedAvatar = avatar?.mxcToHttps(
ref.watch( ref.watch(
ClientStateController.provider.select( ClientStateController.provider.select(
@ -38,6 +39,7 @@ class AvatarOrHash extends ConsumerWidget {
) ?? ) ??
"", "",
); );
return SizedBox( return SizedBox(
width: height, width: height,
height: height, height: height,

View file

@ -21,9 +21,12 @@ class ExpandableImage extends ConsumerWidget {
builder: (context, constraints) => Dialog( builder: (context, constraints) => Dialog(
backgroundColor: Colors.transparent, backgroundColor: Colors.transparent,
insetPadding: .all(constraints.maxWidth / 100), insetPadding: .all(constraints.maxWidth / 100),
child: ConstrainedBox( child: InteractiveViewer(
constraints: .new(minWidth: min(constraints.maxWidth, 1000)), maxScale: 5,
child: InteractiveViewer( child: ConstrainedBox(
constraints: .new(
minWidth: min(constraints.maxWidth, 1000),
),
child: Image( child: Image(
fit: .contain, fit: .contain,
errorBuilder: (_, error, stackTrace) => ErrorDialog( errorBuilder: (_, error, stackTrace) => ErrorDialog(