Skip to content

Commit

Permalink
fix: horizontal scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
pd4d10 committed Sep 2, 2019
1 parent a67b389 commit 9b1921a
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions lib/screens/object.dart
Expand Up @@ -110,12 +110,14 @@ class ObjectScreen extends StatelessWidget {
}

Widget _buildBlob(payload) {
// FIXME:
return HighlightView(
payload['text'],
language: extname.isEmpty ? 'plaintext' : extname,
theme: githubTheme,
padding: EdgeInsets.all(10),
return SingleChildScrollView(
scrollDirection: Axis.horizontal,
child: HighlightView(
payload['text'],
language: extname.isEmpty ? 'plaintext' : extname,
theme: githubTheme,
padding: EdgeInsets.all(10),
),
);
}

Expand Down

0 comments on commit 9b1921a

Please sign in to comment.