forked from Nexus/nexus
turn up max zoom of expandable image viewer
This commit is contained in:
parent
33c3a568f9
commit
621bb74cc9
2 changed files with 8 additions and 3 deletions
|
|
@ -21,9 +21,12 @@ class ExpandableImage extends ConsumerWidget {
|
|||
builder: (context, constraints) => Dialog(
|
||||
backgroundColor: Colors.transparent,
|
||||
insetPadding: .all(constraints.maxWidth / 100),
|
||||
child: ConstrainedBox(
|
||||
constraints: .new(minWidth: min(constraints.maxWidth, 1000)),
|
||||
child: InteractiveViewer(
|
||||
child: InteractiveViewer(
|
||||
maxScale: 5,
|
||||
child: ConstrainedBox(
|
||||
constraints: .new(
|
||||
minWidth: min(constraints.maxWidth, 1000),
|
||||
),
|
||||
child: Image(
|
||||
fit: .contain,
|
||||
errorBuilder: (_, error, stackTrace) => ErrorDialog(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue