diff --git a/README.md b/README.md index d4c7316..bd3f54a 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,10 @@ Also known as "Dude, where's my pull request?" Instructions for running: - Make sure your computer is set up to run [Flutter code](https://flutter.io/) -- Check out repository... +- Check out repository. - Create a token.dart file in lib/full_version/github/. This file needs to contain a variable defining your [github access token](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/). The file should look something like this: const token = 'my personal Github token here'; - ...Profit?? +- Watch out for BidirectionalScrollViewPlugin hello world diff --git a/lib/presentation/review_code.dart b/lib/presentation/review_code.dart index b2dc360..ce974a6 100644 --- a/lib/presentation/review_code.dart +++ b/lib/presentation/review_code.dart @@ -18,7 +18,14 @@ class ReviewPage extends StatelessWidget { @override Widget build(BuildContext context) { - return Scaffold(appBar: AppBar(title: Text('Review Pull Request'))); + return Scaffold( + appBar: AppBar(title: Text('Review Pull Request')), + body: BidirectionalScrollViewPlugin( + child: Padding( + padding: const EdgeInsets.all(10.0), + child: styledCode(prDiff), + ), + )); } RichText styledCode(String prDiff) {