This is an automated email from the ASF dual-hosted git repository.
pabloem pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git
The following commit(s) were added to refs/heads/master by this push:
new be5b410 [BEAM-13530] Fixed scrollbar in the Output section
new 1fa1e3c Merge pull request #16356 from [BEAM-13530] [Playground]
[Bugfix] Fix Scrollbar in the Output section
be5b410 is described below
commit be5b4108e447f82348708345622d45b7dfad6112
Author: Alexander <[email protected]>
AuthorDate: Thu Dec 23 18:02:23 2021 +0400
[BEAM-13530] Fixed scrollbar in the Output section
---
.../lib/modules/output/components/output_result.dart | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git
a/playground/frontend/lib/modules/output/components/output_result.dart
b/playground/frontend/lib/modules/output/components/output_result.dart
index f15ec4a..e43e860 100644
--- a/playground/frontend/lib/modules/output/components/output_result.dart
+++ b/playground/frontend/lib/modules/output/components/output_result.dart
@@ -27,10 +27,18 @@ class OutputResult extends StatelessWidget {
@override
Widget build(BuildContext context) {
+ final ScrollController _scrollController = ScrollController();
+
return SingleChildScrollView(
- child: Padding(
- padding: const EdgeInsets.all(kXlSpacing),
- child: SelectableText(text, style: getCodeFontStyle()),
+ controller: _scrollController,
+ child: Scrollbar(
+ isAlwaysShown: true,
+ showTrackOnHover: true,
+ controller: _scrollController,
+ child: Padding(
+ padding: const EdgeInsets.all(kXlSpacing),
+ child: SelectableText(text, style: getCodeFontStyle()),
+ ),
),
);
}