mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-01 04:07:53 +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);
|
children.add(w);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var view = Container(
|
||||||
|
width: 2500,
|
||||||
|
height: 2500,
|
||||||
|
child: Stack(
|
||||||
|
children: children,
|
||||||
|
fit: StackFit.expand,
|
||||||
|
),
|
||||||
|
);
|
||||||
|
|
||||||
|
return InteractiveViewer(
|
||||||
|
child: view,
|
||||||
|
);
|
||||||
|
|
||||||
|
/*
|
||||||
return Scrollbar(
|
return Scrollbar(
|
||||||
child: SingleChildScrollView(
|
child: SingleChildScrollView(
|
||||||
child: Scrollbar(
|
child: Scrollbar(
|
||||||
child: SingleChildScrollView(
|
child: SingleChildScrollView(
|
||||||
child: Container(
|
child: view,
|
||||||
width: 2500,
|
|
||||||
height: 2500,
|
|
||||||
child: Stack(
|
|
||||||
children: children,
|
|
||||||
fit: StackFit.expand,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
scrollDirection: Axis.horizontal,
|
scrollDirection: Axis.horizontal,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
scrollDirection: Axis.vertical,
|
scrollDirection: Axis.vertical,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user