Skip to content

Commit 41bfbc7

Browse files
Merge pull request syncfusion#79 from Dharanipalani/master
Updated Samples
2 parents a17ab5d + 606821b commit 41bfbc7

File tree

19 files changed

+33
-37
lines changed

19 files changed

+33
-37
lines changed
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

android/app/src/main/java/com/syncfusion/flutter/flutter_examples/MainActivity.java

Lines changed: 0 additions & 13 deletions
This file was deleted.

android/gradle.properties

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
org.gradle.jvmargs=-Xmx1536M
22

3+
android.enableR8=true
4+
5+
android.useAndroidX=true
6+
android.enableJetifier=true

android/local.properties

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
sdk.dir=/Users/ashwink/Library/Android/sdk
2-
flutter.sdk=/Users/ashwink/Documents/FlutterSDK/flutter
1+
sdk.dir=C:\\Users\\DharanitharanPalanis\\AppData\\Local\\Android\\sdk
2+
flutter.sdk=C:\\src\\flutter
33
flutter.buildMode=debug
4-
flutter.versionName=1.0.0
5-
flutter.versionCode=1
4+
flutter.versionName=17.4.39

ios/Runner/GeneratedPluginRegistrant.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@
77

88
#import <Flutter/Flutter.h>
99

10+
NS_ASSUME_NONNULL_BEGIN
11+
1012
@interface GeneratedPluginRegistrant : NSObject
1113
+ (void)registerWithRegistry:(NSObject<FlutterPluginRegistry>*)registry;
1214
@end
1315

16+
NS_ASSUME_NONNULL_END
1417
#endif /* GeneratedPluginRegistrant_h */

ios/Runner/GeneratedPluginRegistrant.m

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,17 @@
33
//
44

55
#import "GeneratedPluginRegistrant.h"
6-
#import <url_launcher/UrlLauncherPlugin.h>
6+
7+
#if __has_include(<url_launcher/FLTURLLauncherPlugin.h>)
8+
#import <url_launcher/FLTURLLauncherPlugin.h>
9+
#else
10+
@import url_launcher;
11+
#endif
712

813
@implementation GeneratedPluginRegistrant
914

1015
+ (void)registerWithRegistry:(NSObject<FlutterPluginRegistry>*)registry {
11-
[FLTUrlLauncherPlugin registerWithRegistrar:[registry registrarForPlugin:@"FLTUrlLauncherPlugin"]];
16+
[FLTURLLauncherPlugin registerWithRegistrar:[registry registrarForPlugin:@"FLTURLLauncherPlugin"]];
1217
}
1318

1419
@end

lib/sample_browser.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1137,7 +1137,7 @@ class _HomePageState extends State<HomePage> {
11371137
)),
11381138
Align(
11391139
alignment: Alignment.bottomCenter,
1140-
child: Text('Version 17.4.40',
1140+
child: Text('Version 17.4.46',
11411141
style: TextStyle(
11421142
color: _model.drawerTextIconColor,
11431143
fontSize: 12,

lib/samples/chart/circular_charts/doughnut_series/semi_doughnut_chart.dart

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ SfCircularChart getSemiDoughnutChart(bool isTileView,
3030
return SfCircularChart(
3131
title: ChartTitle(text: isTileView ? '' : 'Sales by sales person'),
3232
legend: Legend(isVisible: isTileView ? false : true),
33-
centerY: isTileView ? '65%' : '60%',
3433
series: getSemiDoughnutSeries(isTileView, startAngle, endAngle),
3534
tooltipBehavior: TooltipBehavior(enable: true),
3635
);
@@ -48,14 +47,13 @@ List<DoughnutSeries<ChartSampleData, String>> getSemiDoughnutSeries(
4847
DoughnutSeries<ChartSampleData, String>(
4948
dataSource: chartData,
5049
innerRadius: '70%',
51-
radius: isTileView ? '100%' : '59%',
5250
startAngle: isTileView ? 270 : startAngle,
5351
endAngle: isTileView ? 90 : endAngle,
5452
xValueMapper: (ChartSampleData data, _) => data.x,
5553
yValueMapper: (ChartSampleData data, _) => data.y,
5654
dataLabelMapper: (ChartSampleData data, _) => data.text,
5755
dataLabelSettings: DataLabelSettings(
58-
isVisible: true, labelPosition: ChartDataLabelPosition.outside))
56+
isVisible: true, labelPosition: ChartDataLabelPosition.inside))
5957
];
6058
}
6159

@@ -65,8 +63,7 @@ class SemiDoughnutFrontPanel extends StatefulWidget {
6563
final SubItem subItemList;
6664

6765
@override
68-
_SemiDoughnutFrontPanelState createState() =>
69-
_SemiDoughnutFrontPanelState(subItemList);
66+
_SemiDoughnutFrontPanelState createState() => _SemiDoughnutFrontPanelState(subItemList);
7067
}
7168

7269
class _SemiDoughnutFrontPanelState extends State<SemiDoughnutFrontPanel> {
@@ -80,7 +77,7 @@ class _SemiDoughnutFrontPanelState extends State<SemiDoughnutFrontPanel> {
8077
rebuildOnChange: true,
8178
builder: (BuildContext context, _, SampleModel model) {
8279
return Scaffold(
83-
backgroundColor: model.cardThemeColor,
80+
backgroundColor: model.cardThemeColor,
8481
body: Padding(
8582
padding: const EdgeInsets.fromLTRB(5, 0, 5, 50),
8683
child: Container(
@@ -97,7 +94,7 @@ class _SemiDoughnutFrontPanelState extends State<SemiDoughnutFrontPanel> {
9794
}
9895

9996
void _showSettingsPanel(SampleModel model) {
100-
final double height =
97+
final double height =
10198
(MediaQuery.of(context).size.height > MediaQuery.of(context).size.width)
10299
? 0.3
103100
: 0.4;
@@ -173,8 +170,9 @@ class _SemiDoughnutFrontPanelState extends State<SemiDoughnutFrontPanel> {
173170
startAngle.toDouble(),
174171
onChanged: (dynamic val) =>
175172
setState(() {
176-
startAngle = val.toInt();
177-
}),
173+
startAngle =
174+
val.toInt();
175+
}),
178176
step: 10,
179177
horizontal: true,
180178
loop: false,
@@ -228,8 +226,8 @@ class _SemiDoughnutFrontPanelState extends State<SemiDoughnutFrontPanel> {
228226
endAngle.toDouble(),
229227
onChanged: (dynamic val) =>
230228
setState(() {
231-
endAngle = val.toInt();
232-
}),
229+
endAngle = val.toInt();
230+
}),
233231
step: 10,
234232
horizontal: true,
235233
loop: false,
@@ -261,4 +259,4 @@ class _SemiDoughnutFrontPanelState extends State<SemiDoughnutFrontPanel> {
261259
]),
262260
)))))));
263261
}
264-
}
262+
}

pubspec.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_examples
22
description: This project contains the Syncfusion Flutter UI widgets examples.
3-
version: 17.4.40
3+
version: 17.4.40
44
author: Syncfusion <support@syncfusion.com>
55
homepage: https://github.com/syncfusion/flutter-examples
66

@@ -16,10 +16,10 @@ dependencies:
1616
flutter_gallery_assets: 0.1.8
1717
url_launcher: ^5.0.3
1818
intl: ^0.16.0
19-
syncfusion_flutter_calendar: ^17.4.40-beta
20-
syncfusion_flutter_charts: ^17.4.40
21-
syncfusion_flutter_gauges: ^17.4.40-beta
22-
syncfusion_flutter_core: ^17.4.40
19+
syncfusion_flutter_calendar: ^17.4.46-beta
20+
syncfusion_flutter_charts: ^17.4.46
21+
syncfusion_flutter_gauges: ^17.4.46-beta
22+
syncfusion_flutter_core: ^17.4.46
2323

2424
flutter:
2525
uses-material-design: true

0 commit comments

Comments
 (0)