You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the graph view inside one of my views and struggle getting it to work without freezing.
I get a massive load of errors while the mouse is over the graph:
════════ Exception caught by scheduler library ═════════════════════════════════
'package:flutter/src/rendering/mouse_tracker.dart': Failed assertion: line 201 pos 12: '!_debugDuringDeviceUpdate': is not true.
════════════════════════════════════════════════════════════════════════════════
[ERROR:flutter/lib/ui/ui_dart_state.cc(199)] Unhandled Exception: 'package:flutter/src/rendering/mouse_tracker.dart': Failed assertion: line 201 pos 12: '!_debugDuringDeviceUpdate': is not true.
#0 _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:46:39)
#1 _AssertionError._throwNew (dart:core-patch/errors_patch.dart:36:5)
#2 MouseTracker._deviceUpdatePhase
package:flutter/…/rendering/mouse_tracker.dart:201
#3 MouseTracker.updateWithEvent.<anonymous closure>
package:flutter/…/rendering/mouse_tracker.dart:309
#4 MouseTracker._monitorMouseConnection
package:flutter/…/rendering/mouse_tracker.dart:190
My code for the view:
@overrideWidgetbuild(BuildContext context) {
returnViewModelBuilder<TechTreeViewModel>.reactive(
builder: (context, model, snapshot) =>ScaffoldBase(
body:// I just tried to see if this is caused by unbound sizes... its notSizedBox(
height:400,
width:400,
child:InteractiveViewer(
constrained:false,
scaleEnabled:false,
maxScale:1,
minScale:1,
boundaryMargin:EdgeInsets.all(100),
child:GraphView(
algorithm:BuchheimWalkerAlgorithm(
model.builder,
TreeEdgeRenderer(model.builder),
),
graph: model.graph,
paint:Paint()
..color =Colors.green
..strokeWidth =1
..style =PaintingStyle.stroke,
builder: (Node node) {
if (node.key.value isTechTreeConditionNode) {
returnconditionNode(node.key.value);
} elseif (node.key.value isTechTreeTechnologyNode) {
returnrootNode(node.key.value);
}
returnContainer(
width:100,
height:100,
);
},
),
),
),
),
);
}
WidgetrootNode(TechTreeTechnologyNode nodeModel) {
returnInkWell(
child:Container(
height:100,
width:200,
padding:EdgeInsets.all(16),
child:Column(
children: [
Text(nodeModel.technology.name),
],
),
),
);
}
I am using the graph view inside one of my views and struggle getting it to work without freezing.
I get a massive load of errors while the mouse is over the graph:
My code for the view:
And inside my ViewModel:
I tried to find out, what is causing this issue, but haven't found anything. If you need more info, please let me know
The text was updated successfully, but these errors were encountered: