Skip to content

Commit 3d09ef4

Browse files
committed
changes regarding linter rules
1 parent 0aa42cf commit 3d09ef4

File tree

394 files changed

+8770
-9465
lines changed

Some content is hidden

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

394 files changed

+8770
-9465
lines changed

README.md

+10-110
Original file line numberDiff line numberDiff line change
@@ -1,116 +1,16 @@
1-
# Syncfusion Flutter examples
1+
# flutter_examples
22

3-
This repository contains awesome demos of [Syncfusion Flutter UI widgets](https://www.syncfusion.com/flutter-widgets). This is the best place to check our widgets to get more insight into the usage of APIs. You can also check our widgets by installing the complete Flutter sample browser from [Google Play Store](https://play.google.com/store/apps/details?id=com.syncfusion.flutter.examples) or [App Store](https://apps.apple.com/us/app/syncfusion-flutter-ui-widgets/id1475231341), in which you can browse the demo for all the widgets and view the source code of each sample within the app itself.
3+
This project contains the Syncfusion Flutter UI widgets examples.
44

5-
<img src="images/flutter_examples.png"/>
5+
## Getting Started
66

7-
## Table of contents
7+
This project is a starting point for a Flutter application.
88

9-
* [Requirements to run the demo](#requirements-to-run-the-demo)
10-
* [Repository Structure](#repository-structure)
11-
* [Widgets Catalog](#widgets-catalog)
12-
* [License](#license)
13-
* [Using the examples](#using-the-examples)
14-
* [Support and Feedback](#support-and-feedback)
9+
A few resources to get you started if this is your first Flutter project:
1510

16-
## <a name="requirements-to-run-the-demo"></a>Requirements to run the demo ##
17-
* IDE tools are [Visual Studio code](https://flutter.dev/docs/get-started/editor?tab=vscode) and [Android studio](https://flutter.dev/docs/get-started/editor?tab=androidstudio).
18-
* Flutter SDK
19-
| Channel| Version|
20-
|--------|--------|
21-
| Stable | [2.0.2](https://code.visualstudio.com/download)|
22-
| Beta | [2.0.2](https://storage.googleapis.com/flutter_infra/releases/beta/windows/flutter_windows_2.0.2-beta.zip)|
23-
* Dart and Flutter add-ons for Visual Studio Code (available via the Visual studio code extension) in Android Studio it available in plugin preference.
11+
- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab)
12+
- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)
2413

25-
## <a name="repository-structure"></a> Repository Structure ##
26-
The <b>lib/samples</b> directory contains the Flutter widget examples for each widget such as Charts, DataGrid, etc. All the examples can be deployed in Android, iOS, and web platforms.
27-
28-
## <a name="widgets-catalog"></a>Widgets Catalog ##
29-
30-
| Widgets | Repository |
31-
| ------------- | --------------- |
32-
| Barcode Generator | [Link](https://github.com/syncfusion/flutter-examples/tree/master/lib/samples/barcodes) |
33-
| Calendar | [Link](https://github.com/syncfusion/flutter-examples/tree/master/lib/samples/calendar) |
34-
| Charts | [Link](https://github.com/syncfusion/flutter-examples/tree/master/lib/samples/chart) |
35-
| DataGrid | [Link](https://github.com/syncfusion/flutter-examples/tree/master/lib/samples/datagrid) |
36-
| Date Range Picker | [Link](https://github.com/syncfusion/flutter-examples/tree/master/lib/samples/date_picker) |
37-
| Linear Gauge | [Link](https://github.com/syncfusion/flutter-examples/tree/master/lib/samples/linear_gauge) |
38-
| Maps | [Link](https://github.com/syncfusion/flutter-examples/tree/master/lib/samples/maps) |
39-
| PDF | [Link](https://github.com/syncfusion/flutter-examples/tree/master/lib/samples/pdf) |
40-
| PDF Viewer | [Link](https://github.com/syncfusion/flutter-examples/tree/master/lib/samples/pdf_viewer) |
41-
| Progress Bar | [Link](https://github.com/syncfusion/flutter-examples/tree/master/lib/samples/progress_bar) |
42-
| Radial Gauge | [Link](https://github.com/syncfusion/flutter-examples/tree/master/lib/samples/gauge) |
43-
| Range Selector | [Link](https://github.com/syncfusion/flutter-examples/tree/master/lib/samples/sliders/range_selector) |
44-
| Range Slider | [Link](https://github.com/syncfusion/flutter-examples/tree/master/lib/samples/sliders/range_slider) |
45-
| Slider | [Link](https://github.com/syncfusion/flutter-examples/tree/master/lib/samples/sliders/slider) |
46-
| Spark Charts | [Link](https://github.com/syncfusion/flutter-examples/tree/master/lib/samples/sparkline) |
47-
| Signature Pad | [Link](https://github.com/syncfusion/flutter-examples/tree/master/lib/samples/signature_pad) |
48-
| Treemap | [Link](https://github.com/syncfusion/flutter-examples/tree/master/lib/samples/treemap) |
49-
| XlsIO | [Link](https://github.com/syncfusion/flutter-examples/tree/master/lib/samples/xlsio) |
50-
51-
## <a name="license"></a>License ##
52-
53-
Syncfusion has no liability for any damage or consequence that may arise by the use or viewing of the examples. The examples are for demonstrative purposes and if you choose to use or access the examples you agree to not hold Syncfusion liable, in any form, for any damage that is related to use, accessing or otherwise viewing the examples. By accessing, viewing, or otherwise seeing the examples you acknowledge and agree Syncfusion’s examples will not allow you to seek injunctive relief in any form for any claim related to the sample. If you do not agree to this, do not view, access, utilize or otherwise do anything with Syncfusion’s examples.
54-
55-
## <a name="using-the-examples"></a>Using the examples ##
56-
57-
**Step 1**
58-
59-
Unzip the downloaded flutter example archive.
60-
61-
**Note:** If you clone this repository ignore this step.
62-
63-
**Step 2**
64-
65-
Open the flutter example folder in an IDE.
66-
67-
**Step 3**
68-
69-
Run the following command to get the required packages.
70-
71-
```dart
72-
$ flutter pub get
73-
```
74-
75-
**Step 4**
76-
77-
Run your application either using `F5` or `Run > Start Debugging`.
78-
79-
## Get the demo application
80-
81-
Explore the full capabilities of our Flutter widgets on your device by installing our sample browser applications from the below app stores, and view samples code in GitHub.
82-
83-
<p align="center">
84-
<a href="https://play.google.com/store/apps/details?id=com.syncfusion.flutter.examples"><img src="https://cdn.syncfusion.com/content/images/FTControl/google-play-store.png"/></a>
85-
<a href="https://apps.apple.com/us/app/syncfusion-flutter-ui-widgets/id1475231341"><img src="https://cdn.syncfusion.com/content/images/FTControl/ios-store.png"/></a>
86-
<a href="https://flutter.syncfusion.com"><img src="https://cdn.syncfusion.com/content/images/FTControl/web-sample-browser.png"/></a>
87-
</p>
88-
<p align="center">
89-
<a href="https://www.microsoft.com/en-us/p/syncfusion-flutter-gallery/9nhnbwcsf85d?activetab=pivot:overviewtab"><img src="https://cdn.syncfusion.com/content/images/FTControl/windows-store.png"/></a>
90-
<a href="https://install.appcenter.ms/orgs/syncfusion-demos/apps/syncfusion-flutter-gallery/distribution_groups/release"><img src="https://cdn.syncfusion.com/content/images/FTControl/macos-app-center.png"/></a>
91-
<a href="https://snapcraft.io/syncfusion-flutter-gallery"><img src="https://cdn.syncfusion.com/content/images/FTControl/snap-store.png"/></a>
92-
</p>
93-
<p align="center">
94-
<a href="https://github.com/syncfusion/flutter-examples"><img src="https://cdn.syncfusion.com/content/images/FTControl/github-samples.png"/></a>
95-
</p>
96-
97-
98-
## Useful links
99-
Take a look at the following to learn more about Syncfusion Flutter widgets:
100-
101-
* [Syncfusion Flutter product page](https://www.syncfusion.com/flutter-widgets)
102-
* [User guide documentation](https://help.syncfusion.com/flutter/introduction/overview)
103-
* [API reference](https://help.syncfusion.com/flutter/introduction/api-reference)
104-
* [Knowledge base](https://www.syncfusion.com/kb/flutter)
105-
* [Video tutorials](https://www.syncfusion.com/tutorial-videos/flutter)
106-
107-
## Support and feedback
108-
109-
* For any other queries, reach our [Syncfusion support team](https://www.syncfusion.com/support/directtrac/incidents/newincident) or post the queries through the [Community forums](https://www.syncfusion.com/forums) and submit a feature request or a bug through our [Feedback portal](https://www.syncfusion.com/feedback/flutter).
110-
* To renew the subscription, click [renew](https://www.syncfusion.com/sales/products) or contact our sales team at salessupport@syncfusion.com | Toll Free: 1-888-9 DOTNET.
111-
112-
## About Syncfusion
113-
114-
Founded in 2001 and headquartered in Research Triangle Park, N.C., Syncfusion has more than 20,000 customers and more than 1 million users, including large financial institutions, Fortune 500 companies, and global IT consultancies.
115-
116-
Today we provide 1,000+ controls and frameworks for web ([ASP.NET Core](https://www.syncfusion.com/aspnet-core-ui-controls), [ASP.NET MVC](https://www.syncfusion.com/aspnet-mvc-ui-controls), [ASP.NET WebForms](https://www.syncfusion.com/jquery/aspnet-web-forms-ui-controls), [JavaScript](https://www.syncfusion.com/javascript-ui-controls), [Angular](https://www.syncfusion.com/angular-ui-components), [React](https://www.syncfusion.com/react-ui-components), [Vue](https://www.syncfusion.com/vue-ui-components), and [Blazor](https://www.syncfusion.com/blazor-components), mobile ([Xamarin](https://www.syncfusion.com/xamarin-ui-controls), [Flutter](https://www.syncfusion.com/flutter-widgets), [UWP](https://www.syncfusion.com/uwp-ui-controls), and [JavaScript](https://www.syncfusion.com/javascript-ui-controls)), and desktop development ([WinForms](https://www.syncfusion.com/winforms-ui-controls), [WPF](https://www.syncfusion.com/wpf-ui-controls), and [UWP](https://www.syncfusion.com/uwp-ui-controls)). We provide ready-to deploy enterprise software for dashboards, reports, data integration, and big data processing. Many customers have saved millions in licensing fees by deploying our software.
14+
For help getting started with Flutter, view our
15+
[online documentation](https://flutter.dev/docs), which offers tutorials,
16+
samples, guidance on mobile development, and a full API reference.

analysis_options.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ analyzer:
66
lines_longer_than_80_chars: ignore
77
invalid_dependency: ignore
88
avoid_as: ignore
9-
unnecessary_null_comparison: false
9+
unnecessary_null_comparison: false
10+
avoid_bool_literals_in_conditional_expressions: ignore
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,20 @@
11
package io.flutter.plugins;
22

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

78
/**
89
* Generated file. Do not edit.
10+
* This file is generated by the Flutter tool based on the
11+
* plugins that support the Android platform.
912
*/
13+
@Keep
1014
public final class GeneratedPluginRegistrant {
11-
public static void registerWith(PluginRegistry registry) {
12-
if (alreadyRegisteredWith(registry)) {
13-
return;
14-
}
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;
23-
}
24-
registry.registrarFor(key);
25-
return false;
15+
public static void registerWith(@NonNull FlutterEngine flutterEngine) {
16+
flutterEngine.getPlugins().add(new io.flutter.plugins.pathprovider.PathProviderPlugin());
17+
flutterEngine.getPlugins().add(new com.syncfusion.flutter.pdfviewer.SyncfusionFlutterPdfViewerPlugin());
18+
flutterEngine.getPlugins().add(new io.flutter.plugins.urllauncher.UrlLauncherPlugin());
2619
}
2720
}

android/local.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
sdk.dir=C:\\Users\\SriramKiranSenthilku\\AppData\\Local\\Android\\sdk
1+
sdk.dir=C:\\Users\\DharanitharanPalanis\\AppData\\Local\\Android\\sdk
22
flutter.sdk=C:\\src\\flutter
33
flutter.buildMode=debug
44
flutter.versionName=18.1.42

images/flutter_examples.png

-107 KB
Binary file not shown.

lib/main.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ import 'sample_browser.dart';
55
Future<void> main() async {
66
WidgetsFlutterBinding.ensureInitialized();
77
await updateControlItems();
8-
runApp(SampleBrowser());
9-
}
8+
runApp(const SampleBrowser());
9+
}

0 commit comments

Comments
 (0)