Skip to content

Commit

Permalink
Fix previous entry text not scrolling
Browse files Browse the repository at this point in the history
Fixes #13
  • Loading branch information
Voklen committed Apr 21, 2023
1 parent 29f0099 commit ceffcbd
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions lib/screens/view_only.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,14 @@ class _ViewOnlyScreenState extends State<ViewOnlyScreen> {
child: FutureBuilder(
future: widget.storage.readFile(),
builder: ((context, AsyncSnapshot<String> file) {
return Text(
file.data ?? "",
style: TextStyle(fontSize: currentSettings.fontSize),
return FractionallySizedBox(
widthFactor: 1.0,
child: SingleChildScrollView(
child: Text(
file.data ?? "",
style: TextStyle(fontSize: currentSettings.fontSize),
),
),
);
}),
),
Expand Down

0 comments on commit ceffcbd

Please sign in to comment.