mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 02:07:39 +08:00
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:
@ -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,
|
||||
),
|
||||
);
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user