Skip to content

Commit 6876f32

Browse files
committed
--- v0.4.0 ---
* Added new demos for Accessibility and OHLC. (#43) * Added new demos for Highcharts Stock, Maps, Gantt. * Added support for data point objects. * Improved compatibility of hello_world demo. * Fixed generic series options. * Fixed series data with single value.
1 parent b907b36 commit 6876f32

File tree

1,797 files changed

+4914
-1851
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,797 files changed

+4914
-1851
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
## 0.4.0
2+
3+
* Added new demos for Accessibility and OHLC. (#43)
4+
* Added new demos for Highcharts Stock, Maps, Gantt.
5+
* Added support for data point objects.
6+
* Improved compatibility of hello_world demo.
7+
* Fixed generic series options.
8+
* Fixed series data with single value.
9+
110
## 0.3.0
211

312
* Added API documentation to all options.

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ Use Highcharts widgets for interactive charts right in your Flutter app. All
88
options are available as widgets and can be adjusted and with
99
`HighchartsChart.refresh()` dynamically applied.
1010

11+
For more information about this integration, visit our dedicated [Flutter integration page](https://www.highcharts.com/integrations/flutter/).
12+
You'll discover key features including cross-platform compatibility, extensive chart type support, and details about additional Highcharts products like Stock, Maps, Gantt.
1113

1214

1315
Examples

example/complex_demo/lib/chart_scaffold.dart

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,11 @@ class ChartScaffold extends StatelessWidget {
8787
child: CupertinoScrollbar(
8888
child: ListView(children: <Widget>[
8989
CupertinoListSection(
90-
header: Text('Chart Title'),
90+
header: const Text('Chart Title'),
9191
children: <Widget>[
9292
CupertinoListTile(
93+
padding:
94+
const EdgeInsets.symmetric(horizontal: 21, vertical: 3),
9395
title: const Text('Alignment'),
9496
trailing: ValueListenableBuilder(
9597
valueListenable: state.chartTitleAlign,
@@ -102,7 +104,7 @@ class ChartScaffold extends StatelessWidget {
102104
}
103105
.entries
104106
.map((entry) => (entry.key == activeAlign
105-
? CupertinoButton.tinted(
107+
? CupertinoButton.filled(
106108
onPressed: () =>
107109
_updateChartTitleAlign(entry.key),
108110
child: Icon(entry.value),
@@ -118,7 +120,7 @@ class ChartScaffold extends StatelessWidget {
118120
],
119121
),
120122
CupertinoListSection(
121-
header: Text('Series Type'),
123+
header: const Text('Series Type'),
122124
children: <Widget>[
123125
CupertinoListTile(
124126
title: ValueListenableBuilder(

example/complex_demo/lib/charts/airtraffic_chart.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class AirtrafficChart extends StatelessWidget {
1313

1414
@override
1515
Widget build(context) {
16-
return ChartScaffold(
16+
return const ChartScaffold(
1717
pageTitle: 'Airtraffic',
1818
title: 'Air transport in Norway 2024-11',
1919
subtitle: 'in # of passengers',

example/complex_demo/lib/charts/islands_chart.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class IslandsChart extends StatelessWidget {
1313

1414
@override
1515
Widget build(context) {
16-
return ChartScaffold(
16+
return const ChartScaffold(
1717
pageTitle: 'Islands',
1818
title: 'Largest islands',
1919
subtitle: 'in thousands of sq km',

example/complex_demo/lib/charts/ocean_depth_chart.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class OceanDepthChart extends StatelessWidget {
1313

1414
@override
1515
Widget build(context) {
16-
return ChartScaffold(
16+
return const ChartScaffold(
1717
pageTitle: 'Ocean Depth',
1818
title: 'Deepest ocean points',
1919
subtitle: 'in meters',

example/complex_demo/lib/main.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ class MyApp extends StatelessWidget {
4141
return CupertinoApp(
4242
title: 'Complex Highcharts Flutter demo',
4343
routes: <String, WidgetBuilder>{
44-
'/': (BuildContext context) => RouteOverview(),
44+
'/': (BuildContext context) => const RouteOverview(),
4545
'/chart/series-type': (BuildContext context) =>
46-
RouteChartSeriesType(),
46+
const RouteChartSeriesType(),
4747
...Map.fromEntries(kCharts.entries.map((entry) => MapEntry(
4848
'/charts/${entry.key}', (BuildContext context) => entry.value)))
4949
});

example/complex_demo/lib/route_chart_series_type.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,21 +48,21 @@ class RouteChartSeriesType extends StatelessWidget {
4848
leading: CupertinoNavigationBarBackButton(
4949
onPressed: () => _back(context),
5050
),
51-
middle: Text('Series Type')),
51+
middle: const Text('Series Type')),
5252
child: SafeArea(
5353
child: CupertinoScrollbar(
5454
child: Column(children: <Widget>[
5555
Expanded(
5656
child: ValueListenableBuilder(
5757
valueListenable: state.chartSeriesType,
5858
builder: (_, type, __) => CupertinoListSection(
59-
header: Text('Selected Series Type'),
59+
header: const Text('Selected Series Type'),
6060
key: Key(state.chartSeriesType.value),
6161
children: kSeriesTypeMap.keys
6262
.map((seriesType) => CupertinoListTile(
6363
title: Text(seriesType),
6464
trailing: (seriesType == type
65-
? Icon(CupertinoIcons.check_mark)
65+
? const Icon(CupertinoIcons.check_mark)
6666
: null),
6767
onTap: () =>
6868
_setSeriesType(context, seriesType),

example/complex_demo/lib/route_overview.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,24 +28,24 @@ class RouteOverview extends StatelessWidget {
2828
Widget build(BuildContext context) {
2929
return CupertinoPageScaffold(
3030
navigationBar:
31-
CupertinoNavigationBar(middle: Text('Highcharts Flutter')),
31+
const CupertinoNavigationBar(middle: Text('Highcharts Flutter')),
3232
child: SafeArea(
3333
child: CupertinoScrollbar(
3434
child: Column(
3535
children: <Widget>[
3636
Expanded(
3737
child: CupertinoListSection(
38-
header: Text('Select Chart'),
38+
header: const Text('Select Chart'),
3939
children: kCharts.entries
4040
.map((entry) => Padding(
4141
padding: const EdgeInsets.symmetric(
4242
horizontal: 8,
4343
vertical: 10,
4444
),
4545
child: CupertinoListTile(
46-
leading: Icon(CupertinoIcons.chart_pie_fill),
46+
leading: const Icon(CupertinoIcons.chart_pie_fill),
4747
title: Text(entry.key),
48-
trailing: Icon(CupertinoIcons.forward,
48+
trailing: const Icon(CupertinoIcons.forward,
4949
color: CupertinoColors.secondaryLabel),
5050
onTap: () => Navigator.of(context)
5151
.pushNamed('/charts/${entry.key}'))))

example/hello_world/.gitignore

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Miscellaneous
2+
*.class
3+
*.log
4+
*.pyc
5+
*.swp
6+
.DS_Store
7+
.atom/
8+
.build/
9+
.buildlog/
10+
.history
11+
.svn/
12+
.swiftpm/
13+
migrate_working_dir/
14+
15+
# IntelliJ related
16+
*.iml
17+
*.ipr
18+
*.iws
19+
.idea/
20+
21+
# The .vscode folder contains launch configuration and tasks you configure in
22+
# VS Code which you may wish to be included in version control, so this line
23+
# is commented out by default.
24+
#.vscode/
25+
26+
# Flutter/Dart/Pub related
27+
**/doc/api/
28+
**/ios/Flutter/.last_build_id
29+
.dart_tool/
30+
.flutter-plugins
31+
.flutter-plugins-dependencies
32+
.pub-cache/
33+
.pub/
34+
/build/
35+
36+
# Symbolication related
37+
app.*.symbols
38+
39+
# Obfuscation related
40+
app.*.map.json
41+
42+
# Android Studio will place build artifacts here
43+
/android/app/debug
44+
/android/app/profile
45+
/android/app/release

0 commit comments

Comments
 (0)