Skip to content

Commit b25eb0b

Browse files
FLUT-7439-[flutter][feature]: Moved the release 1 volume to master
1 parent d5e0f67 commit b25eb0b

File tree

67 files changed

+242
-253
lines changed

Some content is hidden

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

67 files changed

+242
-253
lines changed

android/app/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ apply plugin: 'com.android.application'
2525
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
2626

2727
android {
28-
compileSdkVersion 31
28+
compileSdkVersion flutter.compileSdkVersion
2929

3030
lintOptions {
3131
disable 'InvalidPackage'
@@ -34,8 +34,8 @@ android {
3434
defaultConfig {
3535
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
3636
applicationId "com.syncfusion.flutter_examples"
37-
minSdkVersion 16
38-
targetSdkVersion 31
37+
minSdkVersion flutter.minSdkVersion
38+
targetSdkVersion flutter.targetSdkVersion
3939
versionCode flutterVersionCode.toInteger()
4040
versionName flutterVersionName
4141
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
Lines changed: 16 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,27 @@
11
package io.flutter.plugins;
22

3-
import androidx.annotation.Keep;
4-
import androidx.annotation.NonNull;
5-
import io.flutter.Log;
6-
7-
import io.flutter.embedding.engine.FlutterEngine;
3+
import io.flutter.plugin.common.PluginRegistry;
4+
import io.flutter.plugins.pathprovider.PathProviderPlugin;
5+
import io.flutter.plugins.urllauncher.UrlLauncherPlugin;
86

97
/**
108
* Generated file. Do not edit.
11-
* This file is generated by the Flutter tool based on the
12-
* plugins that support the Android platform.
139
*/
14-
@Keep
1510
public final class GeneratedPluginRegistrant {
16-
private static final String TAG = "GeneratedPluginRegistrant";
17-
public static void registerWith(@NonNull FlutterEngine flutterEngine) {
18-
try {
19-
flutterEngine.getPlugins().add(new io.flutter.plugins.pathprovider.PathProviderPlugin());
20-
} catch(Exception e) {
21-
Log.e(TAG, "Error registering plugin path_provider_android, io.flutter.plugins.pathprovider.PathProviderPlugin", e);
22-
}
23-
try {
24-
flutterEngine.getPlugins().add(new com.syncfusion.flutter.pdfviewer.SyncfusionFlutterPdfViewerPlugin());
25-
} catch(Exception e) {
26-
Log.e(TAG, "Error registering plugin syncfusion_flutter_pdfviewer, com.syncfusion.flutter.pdfviewer.SyncfusionFlutterPdfViewerPlugin", e);
11+
public static void registerWith(PluginRegistry registry) {
12+
if (alreadyRegisteredWith(registry)) {
13+
return;
2714
}
28-
try {
29-
flutterEngine.getPlugins().add(new io.flutter.plugins.urllauncher.UrlLauncherPlugin());
30-
} catch(Exception e) {
31-
Log.e(TAG, "Error registering plugin url_launcher_android, io.flutter.plugins.urllauncher.UrlLauncherPlugin", e);
15+
PathProviderPlugin.registerWith(registry.registrarFor("io.flutter.plugins.pathprovider.PathProviderPlugin"));
16+
UrlLauncherPlugin.registerWith(registry.registrarFor("io.flutter.plugins.urllauncher.UrlLauncherPlugin"));
17+
}
18+
19+
private static boolean alreadyRegisteredWith(PluginRegistry registry) {
20+
final String key = GeneratedPluginRegistrant.class.getCanonicalName();
21+
if (registry.hasPlugin(key)) {
22+
return true;
3223
}
24+
registry.registrarFor(key);
25+
return false;
3326
}
3427
}

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55
}
66

77
dependencies {
8-
classpath 'com.android.tools.build:gradle:3.5.3'
8+
classpath 'com.android.tools.build:gradle:7.2.0'
99
}
1010
}
1111

android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip

android/local.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
sdk.dir=C:\\Users\\SriramKiranSenthilku\\AppData\\Local\\Android\\sdk
22
flutter.sdk=C:\\src\\flutter
33
flutter.buildMode=release
4-
flutter.versionName=20.4.38
4+
flutter.versionName=21.1.35

lib/model/helper.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,7 @@ Widget getFooter(BuildContext context, SampleModel model) {
841841
),
842842
Container(
843843
padding: const EdgeInsets.only(top: 10),
844-
child: Text('Copyright © 2001 - 2022 Syncfusion Inc.',
844+
child: Text('Copyright © 2001 - 2023 Syncfusion Inc.',
845845
style: TextStyle(
846846
color: model.textColor.withOpacity(0.7),
847847
fontSize: 12,

lib/model/sample_view.dart

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -193,11 +193,6 @@ class DirectionalitySampleViewState<T extends DirectionalitySampleView>
193193
TextDirection.rtl,
194194
];
195195

196-
@override
197-
void initState() {
198-
super.initState();
199-
}
200-
201196
/// Must call super.
202197
@override
203198
void dispose() {

lib/sample_details.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
"description": "Visualize hierarchically structured data that is sized and colored by quantitative variables",
3939
"image": "images/treemap.png",
4040
"displayType": "tab",
41-
"isBeta": true,
4241
"controlId": 4,
4342
"subItems": [
4443
{
@@ -2712,7 +2711,7 @@
27122711
{
27132712
"type": "sample",
27142713
"title": "Sorting",
2715-
"description": "This sample demonstrates how to sort one or more columns. In the Web and Desktop platforms, you can sort multiple columns by tapping the column header with the CTRL key where as in a mobile platform you can tap the column headers. It also provides some additional functionalities like Tri-state sorting and displaying sort numbers that indicate the sort order.",
2714+
"description": "This sample demonstrates how to sort one or more columns. In the Web and Windows platforms, you can sort multiple columns by tapping the column header with the CTRL key and COMMAND key in macOS platform where as in a mobile platform you can tap the column headers. It also provides some additional functionalities like Tri-state sorting and displaying sort numbers that indicate the sort order.",
27162715
"key": "sorting_datagrid",
27172716
"codeLink": "https://github.com/syncfusion/flutter-examples/blob/master/lib/samples/datagrid/sorting/datagrid_sorting.dart",
27182717
"needsPropertyPanel": true
@@ -3266,29 +3265,24 @@
32663265
"description": "Create Excel documents with text, numbers, cell formatting, formulas, charts, images, and more",
32673266
"image": "images/xlsio.png",
32683267
"displayType": "tab",
3269-
"isBeta": true,
32703268
"controlId": 2,
3271-
"status": "Updated",
32723269
"subItems": [
32733270
{
32743271
"type": "sample",
32753272
"title": "Expenses Report",
32763273
"key": "expenses_report",
3277-
"status": "Updated",
32783274
"codeLink": "https://github.com/syncfusion/flutter-examples/blob/master/lib/samples/xlsio/expenses_report/expenses_report.dart"
32793275
},
32803276
{
32813277
"type": "sample",
32823278
"title": "Invoice",
32833279
"key": "invoice_excel",
3284-
"status": "Updated",
32853280
"codeLink": "https://github.com/syncfusion/flutter-examples/blob/master/lib/samples/xlsio/invoice/invoice.dart"
32863281
},
32873282
{
32883283
"type": "sample",
32893284
"title": "Yearly Sales",
32903285
"key": "yearly_sales",
3291-
"status": "Updated",
32923286
"codeLink": "https://github.com/syncfusion/flutter-examples/blob/master/lib/samples/xlsio/yearly_sales/yearly_sales.dart"
32933287
},
32943288
{

lib/samples/chart/cartesian_charts/trendline/default_trendline.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class _TrendLineDefaultState extends SampleViewState {
6767
@override
6868
void dispose() {
6969
if (_slope != null) {
70-
_slope!.clear();
70+
_slope = [];
7171
}
7272
_trendlineTypeList!.clear();
7373
super.dispose();

lib/samples/chart/cartesian_charts/user_interactions/events/events.dart

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,7 @@ class _EventsState extends SampleViewState {
198198
},
199199
onMarkerRender: (MarkerRenderArgs args) {
200200
if (!isCardView) {
201-
actionsList.insert(
202-
0, 'Marker (${args.pointIndex.toString()}) was rendered');
201+
actionsList.insert(0, 'Marker (${args.pointIndex}) was rendered');
203202
if (args.pointIndex == 5) {
204203
SchedulerBinding.instance.addPostFrameCallback((_) {
205204
(consoleKey.currentState)?.setState(() {});
@@ -268,8 +267,7 @@ class _EventsState extends SampleViewState {
268267
ColumnSeries<ChartSampleData, String>(
269268
onPointTap: (ChartPointDetails args) {
270269
if (!isCardView) {
271-
actionsList.insert(
272-
0, 'Point (${args.pointIndex.toString()}) was tapped');
270+
actionsList.insert(0, 'Point (${args.pointIndex}) was tapped');
273271
(consoleKey.currentState)?.setState(() {});
274272
}
275273
},

0 commit comments

Comments
 (0)