GraphView: Try using the InteractiveViewer

Using two SingleChildScrollView hijacks the touch events and the
underlying widget never gets it.

The InteractiveViewer seems to be as useless.
This commit is contained in:
Vishesh Handa
2020-09-26 05:38:13 +02:00
parent 6ede96a8ab
commit 760be79153

View File

@ -112,24 +112,32 @@ class _GraphViewState extends State<GraphView> {
children.add(w);
}
var view = Container(
width: 2500,
height: 2500,
child: Stack(
children: children,
fit: StackFit.expand,
),
);
return InteractiveViewer(
child: view,
);
/*
return Scrollbar(
child: SingleChildScrollView(
child: Scrollbar(
child: SingleChildScrollView(
child: Container(
width: 2500,
height: 2500,
child: Stack(
children: children,
fit: StackFit.expand,
),
),
child: view,
scrollDirection: Axis.horizontal,
),
),
scrollDirection: Axis.vertical,
),
);
*/
}
}