flutter_echarts
flutter_echarts copied to clipboard
Re-render after orientation change
Hello, have a problem with echarts not re-render/expand after orientation change to landscape and vice versa?
This should solve the problem, but how to access the webview controller?
await _controller.reload();
@tnusraddinov Try specifying the GlobalKey.
OrientationBuilder(
builder: (_, __) => Echarts(
key: GlobalObjectKey(MediaQuery.of(context).orientation),
option: option,
),
);
Please update to v2.1.0. Now you can get contorller
in the onLoad
function.
Since based on webview, this library has some inextirpable unstability and performance issues. We recommand the Flutter charting library Graphic as alternative.