Skip to content

Commit

Permalink
the image should still be scrollable
Browse files Browse the repository at this point in the history
  • Loading branch information
CaptainDario committed Jul 4, 2024
1 parent 6644480 commit 30cd810
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions lib/widgets/dojg/dojg_entry_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -264,13 +264,15 @@ class _DojgEntryPageState extends State<DojgEntryPage> {
child: SizedBox(
height: MediaQuery.of(context).size.height-AppBar().preferredSize.height*3,
width: MediaQuery.of(context).size.width,
child: InteractiveViewer(
panEnabled: true,
scaleEnabled: true,
maxScale: 5,
child: Image.file(File(
p.joinAll([g_DakanjiPathManager.dojgDirectory.path, widget.dojgEntry.noteImageName!])
)),
child: SingleChildScrollView(
child: InteractiveViewer(
panEnabled: true,
scaleEnabled: true,
maxScale: 5,
child: Image.file(File(
p.joinAll([g_DakanjiPathManager.dojgDirectory.path, widget.dojgEntry.noteImageName!])
)),
),
),
),
)
Expand Down

0 comments on commit 30cd810

Please sign in to comment.