diff --git a/CHANGELOG.md b/CHANGELOG.md index 537755c..8c768bb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## [2.4.1] - 2025-01-07 +- [Fixed] Issue with the web HighChartPlatformInterface not being registered + ## [2.4.0] - 2025-01-07 - [Support] Added support for macos - [Support] Added support for local file script diff --git a/lib/high_chart_web.dart b/lib/high_chart_web.dart index cacaf29..1b6511e 100644 --- a/lib/high_chart_web.dart +++ b/lib/high_chart_web.dart @@ -1,5 +1,3 @@ -import 'dart:async'; - import 'package:flutter/services.dart'; import 'package:flutter_web_plugins/flutter_web_plugins.dart'; diff --git a/lib/src/io.dart b/lib/src/io.dart index 6597041..41cde32 100644 --- a/lib/src/io.dart +++ b/lib/src/io.dart @@ -103,7 +103,9 @@ class HighChartsState extends State<HighCharts> { return SizedBox( height: widget.size.height, width: widget.size.width, - child: const Text('Unsupported Platform'), + child: Center( + child: const Text('Unsupported Platform'), + ), ); } } diff --git a/pubspec.yaml b/pubspec.yaml index c52f225..731a353 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -43,5 +43,5 @@ flutter: windows: pluginClass: HighChartPluginCApi web: - pluginClass: HighChartWeb + pluginClass: HighChartPlatformInterface fileName: high_chart_web.dart \ No newline at end of file