build: upgrade flutter_highlight

This commit is contained in:
Rongjian Zhang 2019-09-02 18:15:02 +08:00
parent b083c4fadd
commit 49db168f6d
2 changed files with 2 additions and 2 deletions

View File

@ -111,7 +111,7 @@ class ObjectScreen extends StatelessWidget {
Widget _buildBlob(payload) {
// FIXME:
return Highlight(
return HighlightView(
payload['text'],
language: extname.isEmpty ? 'plaintext' : extname,
theme: githubTheme,

View File

@ -29,7 +29,7 @@ dependencies:
github_contributions: ^0.1.1
flutter_svg: ^0.13.0
launch_review: ^2.0.0
flutter_highlight: ^0.2.1
flutter_highlight: ^0.3.0
timeago: ^2.0.18
primer:
git: