Skip to content

Commit b4f2a49

Browse files
Modified samples name
1 parent f0c1cf0 commit b4f2a49

File tree

22 files changed

+217
-77
lines changed

22 files changed

+217
-77
lines changed

lib/model/helper.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ import 'package:flutter_examples/samples/chart/dynamic_updates/add_remove_data/a
6161
import 'package:flutter_examples/samples/chart/dynamic_updates/add_remove_data/add_remove_series.dart';
6262
import 'package:flutter_examples/samples/chart/dynamic_updates/live_update/live_update.dart';
6363
import 'package:flutter_examples/samples/chart/dynamic_updates/live_update/vertical_live_chart.dart';
64-
import 'package:flutter_examples/samples/chart/dynamic_updates/udate_data_source/update_data_source.dart';
64+
import 'package:flutter_examples/samples/chart/dynamic_updates/update_data_source/update_data_source.dart';
6565
import 'package:flutter_examples/samples/chart/home/axes_features_home.dart';
6666
import 'package:flutter_examples/samples/chart/home/axis_types.dart';
6767
import 'package:flutter_examples/samples/chart/home/cartesian_types.dart';

lib/model/model.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ import 'package:flutter_examples/samples/chart/dynamic_updates/add_remove_data/a
6161
import 'package:flutter_examples/samples/chart/dynamic_updates/add_remove_data/add_remove_series.dart';
6262
import 'package:flutter_examples/samples/chart/dynamic_updates/live_update/live_update.dart';
6363
import 'package:flutter_examples/samples/chart/dynamic_updates/live_update/vertical_live_chart.dart';
64-
import 'package:flutter_examples/samples/chart/dynamic_updates/udate_data_source/update_data_source.dart';
64+
import 'package:flutter_examples/samples/chart/dynamic_updates/update_data_source/update_data_source.dart';
6565
import 'package:flutter_examples/samples/chart/legend/chart_with_customized_legend.dart';
6666
import 'package:flutter_examples/samples/chart/legend/chart_with_legend.dart';
6767
import 'package:flutter_examples/samples/chart/legend/legend_with_various_options.dart';

lib/samples/chart/axis_features/handling_label_collision/handling_label_collision.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class _LabelActionState extends State<LabelAction> {
6363
color: Colors.white),
6464
onPressed: () {
6565
launch(
66-
'https://github.com/syncfusion/flutter-examples/blob/master/lib/samples/chart/handling_label_collision/handling_label_collision.dart');
66+
'https://github.com/syncfusion/flutter-examples/blob/master/lib/samples/chart/axis_features/handling_label_collision/handling_label_collision.dart');
6767
},
6868
),
6969
),

lib/samples/chart/axis_features/multiple_axis_chart/multiple_axis_chart.dart

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,32 @@ class _FrontPanelState extends State<FrontPanel> {
105105
padding: const EdgeInsets.fromLTRB(5, 0, 5, 50),
106106
child: Container(child: getMultipleAxisLineChart(false)),
107107
),
108+
floatingActionButton: Stack(children: <Widget>[
109+
Align(
110+
alignment: Alignment.bottomLeft,
111+
child: Padding(
112+
padding: const EdgeInsets.fromLTRB(30, 50, 0, 0),
113+
child: Container(
114+
height: 50,
115+
width: 250,
116+
child: InkWell(
117+
onTap: () => launch(
118+
'https://www.accuweather.com/en/us/new-york-ny/10007/month/349727?monyr=5/01/2019'),
119+
child: Row(
120+
children: <Widget>[
121+
Text('Source: ',
122+
style: TextStyle(
123+
fontSize: 16, color: model.textColor)),
124+
Text('www.accuweather.com',
125+
style: TextStyle(
126+
fontSize: 14, color: Colors.blue)),
127+
],
128+
),
129+
),
130+
),
131+
),
132+
)
133+
])
108134
);
109135
});
110136
}

lib/samples/chart/axis_types/category_types/default_category_axis.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ List<ColumnSeries<_CategoryData, String>> getDefaultCategory(bool isTileView) {
219219
yValueMapper: (_CategoryData data, _) => data.yVal,
220220
pointColorMapper: (_CategoryData data, _) => data.color,
221221
dataLabelSettings:
222-
DataLabelSettings(isVisible: true, useSeriesColor: true),
222+
DataLabelSettings(isVisible: true),
223223
)
224224
];
225225
}

lib/samples/chart/cartesian_charts/bar_series/bar_with_rounded_corners.dart

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,30 @@ class _FrontPanelState extends State<FrontPanel> {
108108
padding: const EdgeInsets.fromLTRB(5, 0, 5, 50),
109109
child: Container(child: getRoundedBarChart(false)),
110110
),
111+
floatingActionButton: Align(
112+
alignment: Alignment.bottomLeft,
113+
child: Padding(
114+
padding: const EdgeInsets.fromLTRB(30, 50, 0, 0),
115+
child: Container(
116+
height: 50,
117+
width: 250,
118+
child: InkWell(
119+
onTap: () => launch(
120+
'https://www.indexmundi.com/g/r.aspx?v=24'),
121+
child: Row(
122+
children: <Widget>[
123+
Text('Source: ',
124+
style: TextStyle(
125+
fontSize: 16, color: model.textColor)),
126+
Text('www.indexmundi.com',
127+
style: TextStyle(fontSize: 14, color: Colors.blue)),
128+
],
129+
),
130+
),
131+
),
132+
),
133+
),
134+
111135
);
112136
});
113137
}

lib/samples/chart/cartesian_charts/bar_series/customized_bar_chart.dart

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,34 @@ class _FrontPanelState extends State<FrontPanel> {
126126
rebuildOnChange: true,
127127
builder: (context, _, model) {
128128
return Scaffold(
129-
body: Padding(
130-
padding: const EdgeInsets.fromLTRB(5, 0, 5, 50),
131-
child: Container(child: getCustomizedBarChart(false)),
132-
));
129+
body: Padding(
130+
padding: const EdgeInsets.fromLTRB(5, 0, 5, 50),
131+
child: Container(child: getCustomizedBarChart(false)),
132+
),
133+
floatingActionButton: Align(
134+
alignment: Alignment.bottomLeft,
135+
child: Padding(
136+
padding: const EdgeInsets.fromLTRB(30, 50, 0, 0),
137+
child: Container(
138+
height: 50,
139+
width: 250,
140+
child: InkWell(
141+
onTap: () => launch(
142+
'https://www.makeuseof.com/tag/most-popular-android-apps/'),
143+
child: Row(
144+
children: <Widget>[
145+
Text('Source: ',
146+
style: TextStyle(
147+
fontSize: 16, color: model.textColor)),
148+
Text('www.makeuseof.com',
149+
style: TextStyle(fontSize: 14, color: Colors.blue)),
150+
],
151+
),
152+
),
153+
),
154+
),
155+
),
156+
);
133157
});
134158
}
135159
}

lib/samples/chart/cartesian_charts/bubble_series/default_bubble_chart.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ SfCartesianChart getDefaultBubbleChart(bool isTileView) {
207207
header: '',
208208
canShowMarker: false,
209209
format:
210-
'Literacy rate : point.x%\nGDP growth rate : point.y\nPopulation : point.sizeB'),
210+
'point.x\nLiteracy rate : point.x%\nGDP growth rate : point.y\nPopulation : point.sizeB'),
211211
series: getBubbleSeries(isTileView));
212212
}
213213

lib/samples/chart/cartesian_charts/column_series/column_with_rounded_corners.dart

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,29 @@ class _FrontPanelState extends State<FrontPanel> {
108108
padding: const EdgeInsets.fromLTRB(5, 0, 5, 50),
109109
child: Container(child: getRoundedColumnChart(false)),
110110
),
111+
floatingActionButton: Align(
112+
alignment: Alignment.bottomLeft,
113+
child: Padding(
114+
padding: const EdgeInsets.fromLTRB(30, 50, 0, 0),
115+
child: Container(
116+
height: 50,
117+
width: 250,
118+
child: InkWell(
119+
onTap: () => launch(
120+
'https://www.worldatlas.com/articles/largest-cities-in-the-world-by-land-area.html'),
121+
child: Row(
122+
children: <Widget>[
123+
Text('Source: ',
124+
style: TextStyle(
125+
fontSize: 16, color: model.textColor)),
126+
Text('www.worldatlas.com',
127+
style: TextStyle(fontSize: 14, color: Colors.blue)),
128+
],
129+
),
130+
),
131+
),
132+
),
133+
),
111134
);
112135
});
113136
}
@@ -218,7 +241,7 @@ List<ColumnSeries<_ChartData, String>> getColumnSeries(bool isTileView) {
218241
_ChartData('Tokyo', 6993),
219242
_ChartData('Chicago', 5498),
220243
_ChartData('Atlanta', 5083),
221-
_ChartData('Miami', 2891),
244+
_ChartData('Boston', 4497),
222245
];
223246
return <ColumnSeries<_ChartData, String>>[
224247
ColumnSeries<_ChartData, String>(

lib/samples/chart/cartesian_charts/column_series/customized_column_chart.dart

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,34 @@ class _FrontPanelState extends State<FrontPanel> {
120120
rebuildOnChange: true,
121121
builder: (context, _, model) {
122122
return Scaffold(
123-
body: Padding(
124-
padding: const EdgeInsets.fromLTRB(5, 0, 5, 50),
125-
child: Container(child: getVerticalColumnChart(false)),
126-
));
123+
body: Padding(
124+
padding: const EdgeInsets.fromLTRB(5, 0, 5, 50),
125+
child: Container(child: getVerticalColumnChart(false)),
126+
),
127+
floatingActionButton: Align(
128+
alignment: Alignment.bottomLeft,
129+
child: Padding(
130+
padding: const EdgeInsets.fromLTRB(30, 50, 0, 0),
131+
child: Container(
132+
height: 50,
133+
width: 250,
134+
child: InkWell(
135+
onTap: () => launch(
136+
'https://www.statista.com/statistics/263393/global-pc-shipments-since-1st-quarter-2009-by-vendor/'),
137+
child: Row(
138+
children: <Widget>[
139+
Text('Source: ',
140+
style: TextStyle(
141+
fontSize: 16, color: model.textColor)),
142+
Text('www.statista.com',
143+
style: TextStyle(fontSize: 14, color: Colors.blue)),
144+
],
145+
),
146+
),
147+
),
148+
),
149+
),
150+
);
127151
});
128152
}
129153
}

0 commit comments

Comments
 (0)