Skip to content

Commit

Permalink
remove redundant scrollbar
Browse files Browse the repository at this point in the history
  • Loading branch information
bartekpacia committed Nov 8, 2023
1 parent 489b381 commit a71a59b
Showing 1 changed file with 13 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ class _NativeViewHierarchyTreeState extends State<_NativeViewHierarchyTree> {
child: Scrollbar(
controller: horizontalScrollController,
thumbVisibility: true,
thickness: 12,
child: SingleChildScrollView(
controller: horizontalScrollController,
scrollDirection: Axis.horizontal,
Expand All @@ -112,15 +113,21 @@ class _NativeViewHierarchyTreeState extends State<_NativeViewHierarchyTree> {
textDirection: TextDirection.rtl,
child: Scrollbar(
controller: verticalScrollController,
thickness: 12,
thumbVisibility: true,
child: Directionality(
textDirection: TextDirection.ltr,
child: ListView(
controller: verticalScrollController,
children: [
for (final root in widget.roots)
_Node(node: root, props: widget.props),
],
child: ScrollConfiguration(
behavior: ScrollConfiguration.of(context).copyWith(
scrollbars: false,
),
child: ListView(
controller: verticalScrollController,
children: [
for (final root in widget.roots)
_Node(node: root, props: widget.props),
],
),
),
),
),
Expand Down

0 comments on commit a71a59b

Please sign in to comment.