diff --git a/Flutter/Licensing/overview.md b/Flutter/Licensing/overview.md index 4b9428991..7b6ce23d3 100644 --- a/Flutter/Licensing/overview.md +++ b/Flutter/Licensing/overview.md @@ -1,7 +1,7 @@ --- layout: post -title: Overview of Syncfusion license and unlock keys - Syncfusion -description: Learn here about the Syncfusion license and unlock keys and the difference between license and unlock keys. +title: Syncfusion Licensing Overview - Syncfusion +description: Learn here about Syncfusion licensing for Flutter and the licensing model introduced in version 18.3.0.x. platform: flutter control: Essential Studio documentation: ug @@ -10,27 +10,67 @@ documentation: ug # Syncfusion® Licensing Overview -The License key registration is no longer required for Flutter from version 18.3.0.x. Therefore, there is no need to generate or register Syncfusion® Flutter license keys in your Flutter projects. +License key registration is no longer required for Flutter from version 18.3.0.x. From version 18.3.0.x, Syncfusion Flutter packages are licensed directly through pub.dev; no separate license key registration is required. This applies to both trial and licensed usage. The Flutter controls from Syncfusion® can be used without registering the license keys. ->**Note**: If you are using Syncfusion® controls prior to version 18.3.0.x, please follow the following steps to register your license key. +>**Note**: If you are using Syncfusion® controls prior to version 18.3.0.x, please follow these steps to register your license key. -## How To Register In An Application +## How to register in an application -Register the license key in the **main method** of your example and import the ‘syncfusion_flutter_core/core.dart' library. +Register the license key in the **main method** of your application. Follow these steps: -{% tabs %} -{% highlight Dart %} +1. Add `syncfusion_flutter_core` as a dependency in your `pubspec.yaml`: + ```yaml + dependencies: + syncfusion_flutter_core: + ``` - // Refer the core package - import 'package:syncfusion_flutter_core/core.dart'; +2. Import the core package in your main.dart file. - void main() { - // Register Syncfusion license - SyncfusionLicense.registerLicense("YOUR LICENSE KEY"); - return runApp(MyApp()); - } +3. Call `SyncfusionLicense.registerLicense()` in the main method before running your app. + +{% tabs %} +{% highlight dart %} + +import 'package:flutter/material.dart'; +import 'package:syncfusion_flutter_core/core.dart'; + +void main() { + // Register Syncfusion license + SyncfusionLicense.registerLicense('YOUR LICENSE KEY'); + runApp(const MyApp()); +} + +class MyApp extends StatelessWidget { + const MyApp({Key? key}) : super(key: key); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('Syncfusion Flutter')), + body: const Center(child: Text('Hello World')), + ), + ); + } +} {% endhighlight %} {% endtabs %} + +>**Note**: The license key is specific to your Syncfusion account and version. Ensure you use the correct key for your licensed version. + +## License key vs. Unlock key + +**License Key**: A license key is used to register Syncfusion products on your machine. It validates your subscription and enables all features of the product. License keys are required for older versions of Syncfusion Flutter (prior to 18.3.0.x). + +**Unlock Key**: An unlock key is an older form of licensing used in very early versions of Syncfusion products. Unlock keys have been superseded by license keys and are no longer used in modern versions. + +For Syncfusion Flutter version 18.3.0.x and later, neither license keys nor unlock keys are required. + +## See Also + +- [How to generate a Syncfusion license key](https://help.syncfusion.com/common/essential-studio/licensing/how-to-generate) +- [Syncfusion Licensing Knowledge Base](https://www.syncfusion.com/kb/flutter) +- [Installation for older versions](../../installation/how-to-install.md)