diff --git a/packages/syncfusion_flutter_barcodes/CHANGELOG.md b/packages/syncfusion_flutter_barcodes/CHANGELOG.md index 0fe91e4c8..97fa8292d 100644 --- a/packages/syncfusion_flutter_barcodes/CHANGELOG.md +++ b/packages/syncfusion_flutter_barcodes/CHANGELOG.md @@ -1,4 +1,4 @@ -## [18.3.35-beta] - 10/01/2020 +## [18.3.35] - 10/01/2020 No changes. diff --git a/packages/syncfusion_flutter_barcodes/pubspec.yaml b/packages/syncfusion_flutter_barcodes/pubspec.yaml index c5ca0eb9b..e7629e4a6 100644 --- a/packages/syncfusion_flutter_barcodes/pubspec.yaml +++ b/packages/syncfusion_flutter_barcodes/pubspec.yaml @@ -1,7 +1,7 @@ name: syncfusion_flutter_barcodes description: Syncfusion Flutter barcodes widget is used to generate and display data in the machine-readable, industry-standard 1D and 2D barcodes. version: 18.3.35 -homepage: https://github.com/syncfusion/flutter-examples +homepage: https://github.com/syncfusion/flutter-widgets/tree/master/packages/syncfusion_flutter_barcodes environment: sdk: ">=2.1.0 <3.0.0" diff --git a/packages/syncfusion_flutter_calendar/analysis_options.yaml b/packages/syncfusion_flutter_calendar/analysis_options.yaml index c6e72d8c2..2f547af5d 100644 --- a/packages/syncfusion_flutter_calendar/analysis_options.yaml +++ b/packages/syncfusion_flutter_calendar/analysis_options.yaml @@ -1,2 +1,5 @@ -include: lib/analysis_options.yaml +include: package:syncfusion_flutter_core/analysis_options.yaml +analyzer: + errors: + include_file_not_found: ignore \ No newline at end of file diff --git a/packages/syncfusion_flutter_calendar/lib/analysis_options.yaml b/packages/syncfusion_flutter_calendar/lib/analysis_options.yaml deleted file mode 100644 index 2f547af5d..000000000 --- a/packages/syncfusion_flutter_calendar/lib/analysis_options.yaml +++ /dev/null @@ -1,5 +0,0 @@ -include: package:syncfusion_flutter_core/analysis_options.yaml - -analyzer: - errors: - include_file_not_found: ignore \ No newline at end of file diff --git a/packages/syncfusion_flutter_calendar/pubspec.yaml b/packages/syncfusion_flutter_calendar/pubspec.yaml index 65cea2ede..45361b87e 100644 --- a/packages/syncfusion_flutter_calendar/pubspec.yaml +++ b/packages/syncfusion_flutter_calendar/pubspec.yaml @@ -1,7 +1,7 @@ name: syncfusion_flutter_calendar description: The Syncfusion Flutter Calendar widget has built-in configurable views that provide basic functionalities for scheduling and representing appointments/events efficiently. version: 18.3.35 -homepage: https://github.com/syncfusion/flutter-examples +homepage: https://github.com/syncfusion/flutter-widgets/tree/master/packages/syncfusion_flutter_calendar environment: sdk: ">=2.1.0 <3.0.0" diff --git a/packages/syncfusion_flutter_charts/pubspec.yaml b/packages/syncfusion_flutter_charts/pubspec.yaml index 6d14fa372..022058d2c 100644 --- a/packages/syncfusion_flutter_charts/pubspec.yaml +++ b/packages/syncfusion_flutter_charts/pubspec.yaml @@ -1,7 +1,7 @@ name: syncfusion_flutter_charts description: Syncfusion Flutter Charts is a data visualization library written natively in Dart for creating beautiful and high-performance cartesian and circular charts. version: 18.3.35 -homepage: https://github.com/syncfusion/flutter-examples +homepage: https://github.com/syncfusion/flutter-widgets/tree/master/packages/syncfusion_flutter_charts environment: sdk: ">=2.1.0 <3.0.0" diff --git a/packages/syncfusion_flutter_core/example/pubspec.yaml b/packages/syncfusion_flutter_core/example/pubspec.yaml index 1a0ff4c39..233d20ef6 100644 --- a/packages/syncfusion_flutter_core/example/pubspec.yaml +++ b/packages/syncfusion_flutter_core/example/pubspec.yaml @@ -9,7 +9,7 @@ dependencies: flutter: sdk: flutter syncfusion_flutter_charts: - path: ../syncfusion_flutter_charts + path: ../../syncfusion_flutter_charts cupertino_icons: ^0.1.3 diff --git a/packages/syncfusion_flutter_core/pubspec.yaml b/packages/syncfusion_flutter_core/pubspec.yaml index 7f9007eb2..58a2f8f25 100644 --- a/packages/syncfusion_flutter_core/pubspec.yaml +++ b/packages/syncfusion_flutter_core/pubspec.yaml @@ -1,7 +1,7 @@ name: syncfusion_flutter_core description: Syncfusion Flutter Core is a dependent package for all the Syncfusion Flutter widgets. version: 18.3.35 -homepage: https://github.com/syncfusion/flutter-examples +homepage: https://github.com/syncfusion/flutter-widgets/tree/master/packages/syncfusion_flutter_core environment: sdk: ">=2.1.0 <3.0.0" diff --git a/packages/syncfusion_flutter_datagrid/pubspec.yaml b/packages/syncfusion_flutter_datagrid/pubspec.yaml index 17cadfce8..d176e0b47 100644 --- a/packages/syncfusion_flutter_datagrid/pubspec.yaml +++ b/packages/syncfusion_flutter_datagrid/pubspec.yaml @@ -1,7 +1,7 @@ name: syncfusion_flutter_datagrid description: The Syncfusion Flutter DataGrid is used to display and manipulate data in a tabular view. Its rich feature set includes different types of columns, selections, column sizing, etc. version: 18.3.35-beta -homepage: https://github.com/syncfusion/flutter-examples +homepage: https://github.com/syncfusion/flutter-widgets/tree/master/packages/syncfusion_flutter_datagrid environment: sdk: ">=2.1.0 <3.0.0" diff --git a/packages/syncfusion_flutter_datepicker/analysis_options.yaml b/packages/syncfusion_flutter_datepicker/analysis_options.yaml index 59e7227c9..2f547af5d 100644 --- a/packages/syncfusion_flutter_datepicker/analysis_options.yaml +++ b/packages/syncfusion_flutter_datepicker/analysis_options.yaml @@ -1 +1,5 @@ -include: lib/analysis_options.yaml \ No newline at end of file +include: package:syncfusion_flutter_core/analysis_options.yaml + +analyzer: + errors: + include_file_not_found: ignore \ No newline at end of file diff --git a/packages/syncfusion_flutter_datepicker/lib/analysis_options.yaml b/packages/syncfusion_flutter_datepicker/lib/analysis_options.yaml deleted file mode 100644 index 221601219..000000000 --- a/packages/syncfusion_flutter_datepicker/lib/analysis_options.yaml +++ /dev/null @@ -1,6 +0,0 @@ -include: package:syncfusion_flutter_core/analysis_options.yaml - -analyzer: - errors: - include_file_not_found: ignore - diff --git a/packages/syncfusion_flutter_datepicker/pubspec.yaml b/packages/syncfusion_flutter_datepicker/pubspec.yaml index 20c1af57c..08ec9c27a 100644 --- a/packages/syncfusion_flutter_datepicker/pubspec.yaml +++ b/packages/syncfusion_flutter_datepicker/pubspec.yaml @@ -1,7 +1,7 @@ name: syncfusion_flutter_datepicker description: The Syncfusion Flutter Date Range Picker widget allows users to easily select dates or a range of dates. It has built-in views that allow quick navigation to the desired date. version: 18.3.35-beta -homepage: https://github.com/syncfusion/flutter-examples +homepage: https://github.com/syncfusion/flutter-widgets/tree/master/packages/syncfusion_flutter_datepicker environment: sdk: ">=2.1.0 <3.0.0" diff --git a/packages/syncfusion_flutter_gauges/pubspec.yaml b/packages/syncfusion_flutter_gauges/pubspec.yaml index fee50d4f0..17fbb54c4 100644 --- a/packages/syncfusion_flutter_gauges/pubspec.yaml +++ b/packages/syncfusion_flutter_gauges/pubspec.yaml @@ -1,7 +1,7 @@ name: syncfusion_flutter_gauges description: Syncfusion Flutter gauges library includes data visualization widgets such as radial gauge, which is written in dart, to create modern, interactive, and animated gauges. version: 18.3.35 -homepage: https://github.com/syncfusion/flutter-examples +homepage: https://github.com/syncfusion/flutter-widgets/tree/master/packages/syncfusion_flutter_gauges environment: sdk: ">=2.1.0 <3.0.0" diff --git a/packages/syncfusion_flutter_maps/CHANGELOG.md b/packages/syncfusion_flutter_maps/CHANGELOG.md index 85e631456..23f0607b8 100644 --- a/packages/syncfusion_flutter_maps/CHANGELOG.md +++ b/packages/syncfusion_flutter_maps/CHANGELOG.md @@ -1,6 +1,20 @@ ## [18.3.35-beta] - 10/01/2020 -No changes. +**Features** + +* Tile layer +* Zooming and panning in both layers +* Custom widget for tooltips +* Legend for bubbles +* Improvement in interaction animations and web platform hovering + +**Breaking changes** + +* The `showLegend` property has been removed and the same behavior can be achieved by setting the `legendSource` property to `MapElement.none`. +* The `toggledShapeColor` has been changed to `toggledItemColor` in `SfMapsThemeData` and `MapLegendSettings`. +* The `toggledShapeStrokeColor` has been changed to `toggledItemStrokeColor` in `SfMapsThemeData` and `MapLegendSettings`. +* The `toggledShapeStrokeWidth` has been changed to `toggledItemStrokeWidth` in `SfMapsThemeData` and `MapLegendSettings`. +* The `toggledShapeOpacity` has been changed to `toggledItemOpacity` in `MapLegendSettings`. ## [18.2.59-beta] - 09/23/2020 diff --git a/packages/syncfusion_flutter_maps/README.md b/packages/syncfusion_flutter_maps/README.md index 39271043a..53a58effe 100644 --- a/packages/syncfusion_flutter_maps/README.md +++ b/packages/syncfusion_flutter_maps/README.md @@ -55,13 +55,13 @@ Create a highly interactive and customizable maps widget that has features set i **Zooming and panning** - Zoom in shape layer for a closer look at a specific region by pinching, scrolling the mouse wheel or track pad, or using the toolbar on the web. Pan the map to navigate across the regions. -![maps zoompan](http://cdn.syncfusion.com/content/images/zoompan.gif) +![maps zoompan](https://cdn.syncfusion.com/content/images/zoompan.gif) ### Tile layer **Markers** - Show markers for the tile layer in the specific latitudes and longitudes. -![tile layer marker](http://cdn.syncfusion.com/content/images/Tile_withmarker.png) +![tile layer marker](https://cdn.syncfusion.com/content/images/Tile_withmarker.png) **Zooming and panning** - Zoom in tile layer for a closer look at a specific region by pinching, scrolling the mouse wheel or track pad, or using the toolbar on the web. Pan the map to navigate across the regions. diff --git a/packages/syncfusion_flutter_maps/lib/maps.dart b/packages/syncfusion_flutter_maps/lib/maps.dart index 58c2e3385..82b6f96cc 100644 --- a/packages/syncfusion_flutter_maps/lib/maps.dart +++ b/packages/syncfusion_flutter_maps/lib/maps.dart @@ -1,3 +1,12 @@ +/// Syncfusion Flutter Maps is a data visualization library written natively in +/// Dart for creating beautiful and customizable maps. +/// +/// To use, import `package:syncfusion_flutter_maps/maps.dart`; +/// +/// See also: +/// * [Syncfusion Flutter Maps product page](https://www.syncfusion.com/flutter-widgets/flutter-maps) +/// * [User guide documentation](https://help.syncfusion.com/flutter/maps/overview) + library maps; import 'dart:async'; diff --git a/packages/syncfusion_flutter_maps/lib/src/layer/maps_tile_layer.dart b/packages/syncfusion_flutter_maps/lib/src/layer/maps_tile_layer.dart index becfa3ebb..436b14e13 100644 --- a/packages/syncfusion_flutter_maps/lib/src/layer/maps_tile_layer.dart +++ b/packages/syncfusion_flutter_maps/lib/src/layer/maps_tile_layer.dart @@ -3,8 +3,8 @@ part of maps; /// Tile layer which renders the tiles returned from the Web Map Tile /// Services (WMTS) like OpenStreetMap, Bing Maps, Google Maps, TomTom etc. /// -/// The [urlTemplate] accepts the URL in WMTS format i.e. {z} — zoom level, {x} -/// and {y} — tile coordinates. +/// The [MapTileLayer.urlTemplate] accepts the URL in WMTS format +/// i.e. {z} — zoom level, {x} and {y} — tile coordinates. /// /// This URL might vary slightly depends on the providers. The formats can be, /// https://exampleprovider/{z}/{x}/{y}.png, @@ -15,24 +15,26 @@ part of maps; /// current center point and the zoom level. /// /// The subscription key may be needed for some of the providers. Please include -/// them in the [urlTemplate] itself as mentioned in above example. Please note -/// that the format may vary between the each map providers. You can check the -/// exact URL format needed for the providers in their official websites. +/// them in the [MapTileLayer.urlTemplate] itself as mentioned in above example. +/// Please note that the format may vary between the each map providers. You can +/// check the exact URL format needed for the providers in their official +/// websites. /// /// Regarding the tile rendering, at the lowest zoom level (Level 0), the map is /// 256 x 256 pixels and the /// whole world map renders as a single tile. At each increase in level, the map /// width and height grow by a factor of 2 i.e. Level 1 is 512 x 512 pixels with /// 4 tiles ((0, 0), (0, 1), (1, 0), (1, 1) where 0 and 1 are {x} and {y} in -/// [urlTemplate]), Level 2 is 2048 x 2048 pixels with 8 +/// [MapTileLayer.urlTemplate]), Level 2 is 2048 x 2048 pixels with 8 /// tiles (from (0, 0) to (3, 3)), and so on. /// (These details are just for your information and all these calculation are /// done internally.) /// -/// However, based on the size of the [SfMaps] widget, [initialFocalLatLng] and -/// [initialZoomLevel] number of initial tiles needed in the view port alone -/// will be rendered. While zooming and panning, new tiles will be requested and -/// rendered on demand based on the current zoom level and focal point. +/// However, based on the size of the [SfMaps] widget, +/// [MapTileLayer.initialFocalLatLng] and [MapTileLayer.initialZoomLevel] number +/// of initial tiles needed in the view port alone will be rendered. +/// While zooming and panning, new tiles will be requested and rendered on +/// demand based on the current zoom level and focal point. /// The current zoom level and focal point can be obtained from the /// [MapZoomPanBehavior.zoomLevel] and [MapZoomPanBehavior.focalLatLng] /// respectively. Once the particular tile is rendered, it will be stored in the @@ -57,8 +59,8 @@ part of maps; /// ``` /// /// See also: -/// * For enabling zooming and panning, set [zoomPanBehavior] with the instance -/// of [MapZoomPanBehavior]. +/// * For enabling zooming and panning, set [MapTileLayer.zoomPanBehavior] +/// with the instance of [MapZoomPanBehavior]. class MapTileLayer extends MapLayer { /// Creates a [MapTileLayer]. MapTileLayer({ @@ -86,8 +88,8 @@ class MapTileLayer extends MapLayer { /// URL to request the tiles from the providers. /// - /// The [urlTemplate] accepts the URL in WMTS format i.e. {z} — zoom level, - /// {x} and {y} — tile coordinates. + /// The [MapTileLayer.urlTemplate] accepts the URL in WMTS format + /// i.e. {z} — zoom level, {x} and {y} — tile coordinates. /// /// This URL might vary slightly depends on the providers. The formats can be, /// https://exampleprovider/{z}/{x}/{y}.png, @@ -98,10 +100,10 @@ class MapTileLayer extends MapLayer { /// current center point and the zoom level. /// /// The subscription key may be needed for some of the providers. Please - /// include them in the [urlTemplate] itself as mentioned in above example. - /// Please note that the format may vary between the each map providers. You - /// can check the exact URL format needed for the providers in their official - /// websites. + /// include them in the [MapTileLayer.urlTemplate] itself as mentioned in + /// above example. Please note that the format may vary between the each + /// map providers. You can check the exact URL format needed for the providers + /// in their official websites. /// /// ```dart /// @override @@ -122,7 +124,7 @@ class MapTileLayer extends MapLayer { /// URL varies from the other tile services. Hence, we have added a top-level /// [getBingUrlTemplate] method which returns the URL in the required format. /// You can use the URL returned from this method to pass it to the - /// [urlTemplate] property. + /// [MapTileLayer.urlTemplate] property. /// /// ```dart /// @override @@ -151,31 +153,32 @@ class MapTileLayer extends MapLayer { /// /// Some of the providers provide different map types. For example, Bing Maps /// provide map types like Road, Aerial, AerialWithLabels etc. These types too - /// can be passed in the [urlTemplate] itself as shown in the above example. - /// You can check the official websites of the tile providers to know about - /// the available types and the code for it. + /// can be passed in the [MapTileLayer.urlTemplate] itself as shown in the + /// above example. You can check the official websites of the tile providers + /// to know about the available types and the code for it. /// /// See also: /// * For Bing Maps, use the [getBingUrlTemplate] method to get the URL in - /// required format and set it to the [urlTemplate]. + /// required format and set it to the [MapTileLayer.urlTemplate]. final String urlTemplate; /// Represents the initial focal latitude and longitude position. /// - /// Based on the size of the [SfMaps] widget, [initialFocalLatLng] and - /// [initialZoomLevel] number of initial tiles needed in the view port alone - /// will be rendered. While zooming and panning, new tiles will be requested - /// and rendered on demand based on the current zoom level and focal point. - /// The current zoom level and focal point can be obtained from the - /// [MapZoomPanBehavior.zoomLevel] and [MapZoomPanBehavior.focalLatLng]. + /// Based on the size of the [SfMaps] widget,[MapTileLayer.initialFocalLatLng] + /// and [MapTileLayer.initialZoomLevel] number of initial tiles needed in the + /// view port alone will be rendered. While zooming and panning, new tiles + /// will be requested and rendered on demand based on the current zoom level + /// and focal point. The current zoom level and focal point can be obtained + /// from the [MapZoomPanBehavior.zoomLevel] and + /// [MapZoomPanBehavior.focalLatLng]. /// /// This properties cannot be changed dynamically. /// /// Defaults to `MapLatLng(0.0, 0.0)`. /// /// See also: - /// * For enabling zooming and panning, set [zoomPanBehavior] with the - /// instance of [MapZoomPanBehavior]. + /// * For enabling zooming and panning, set [MapTileLayer.zoomPanBehavior] + /// with the instance of [MapZoomPanBehavior]. /// * [MapZoomPanBehavior.focalLatLng], to dynamically change the center /// position. /// * [MapZoomPanBehavior.zoomLevel], to dynamically change the zoom level. @@ -183,20 +186,21 @@ class MapTileLayer extends MapLayer { /// Represents the initial zooming level. /// - /// Based on the size of the [SfMaps] widget, [initialFocalLatLng] and - /// [initialZoomLevel] number of initial tiles needed in the view port alone - /// will be rendered. While zooming and panning, new tiles will be requested - /// and rendered on demand based on the current zoom level and focal point. - /// The current zoom level and focal point can be obtained from the - /// [MapZoomPanBehavior.zoomLevel] and [MapZoomPanBehavior.focalLatLng]. + /// Based on the size of the [SfMaps] widget,[MapTileLayer.initialFocalLatLng] + /// and [MapTileLayer.initialZoomLevel] number of initial tiles needed in the + /// view port alone will be rendered. While zooming and panning, new tiles + /// will be requested and rendered on demand based on the current zoom level + /// and focal point. The current zoom level and focal point can be obtained + /// from the [MapZoomPanBehavior.zoomLevel] and + /// [MapZoomPanBehavior.focalLatLng]. /// /// This properties cannot be changed dynamically. /// /// Defaults to 1. /// /// See also: - /// * For enabling zooming and panning, set [zoomPanBehavior] with the - /// instance of [MapZoomPanBehavior]. + /// * For enabling zooming and panning, set [MapTileLayer.zoomPanBehavior] + /// with the instance of [MapZoomPanBehavior]. /// * [MapZoomPanBehavior.focalLatLng], to dynamically change the center /// position. /// * [MapZoomPanBehavior.zoomLevel], to dynamically change the zoom level. @@ -933,7 +937,7 @@ class _MapTileLayerState extends State<_MapTileLayer> { ); } - // Converts the [urlTemplate] format into respective map + // Converts the [MapTileLayer.urlTemplate] format into respective map // providers URL format. String _getTileUrl(int x, int y, int z) { String previousLetter; diff --git a/packages/syncfusion_flutter_maps/lib/src/maps.dart b/packages/syncfusion_flutter_maps/lib/src/maps.dart index 772b2ceed..415b6671d 100644 --- a/packages/syncfusion_flutter_maps/lib/src/maps.dart +++ b/packages/syncfusion_flutter_maps/lib/src/maps.dart @@ -76,8 +76,8 @@ part of maps; /// Tile layer which renders the tiles returned from the Web Map Tile /// Services (WMTS) like OpenStreetMap, Bing Maps, Google Maps, TomTom etc. /// -/// The [urlTemplate] accepts the URL in WMTS format i.e. {z} — zoom level, {x} -/// and {y} — tile coordinates. +/// The [MapTileLayer.urlTemplate] accepts the URL in WMTS format +/// i.e. {z} — zoom level, {x} and {y} — tile coordinates. /// /// This URL might vary slightly depends on the providers. The formats can be, /// https://exampleprovider/{z}/{x}/{y}.png, @@ -88,24 +88,26 @@ part of maps; /// current center point and the zoom level. /// /// The subscription key may be needed for some of the providers. Please include -/// them in the [urlTemplate] itself as mentioned in above example. Please note -/// that the format may vary between the each map providers. You can check the -/// exact URL format needed for the providers in their official websites. +/// them in the [MapTileLayer.urlTemplate] itself as mentioned in above example. +/// Please note that the format may vary between the each map providers. +/// You can check the exact URL format needed for the providers in their +/// official websites. /// /// Regarding the tile rendering, at the lowest zoom level (Level 0), the map is /// 256 x 256 pixels and the /// whole world map renders as a single tile. At each increase in level, the map /// width and height grow by a factor of 2 i.e. Level 1 is 512 x 512 pixels with /// 4 tiles ((0, 0), (0, 1), (1, 0), (1, 1) where 0 and 1 are {x} and {y} in -/// [urlTemplate]), Level 2 is 2048 x 2048 pixels with 8 +/// [MapTileLayer.urlTemplate]), Level 2 is 2048 x 2048 pixels with 8 /// tiles (from (0, 0) to (3, 3)), and so on. /// (These details are just for your information and all these calculation are /// done internally.) /// -/// However, based on the size of the [SfMaps] widget, [initialFocalLatLng] and -/// [initialZoomLevel] number of initial tiles needed in the view port alone -/// will be rendered. While zooming and panning, new tiles will be requested and -/// rendered on demand based on the current zoom level and focal point. +/// However, based on the size of the [SfMaps] widget, +/// [MapTileLayer.initialFocalLatLng] and [MapTileLayer.initialZoomLevel] number +/// of initial tiles needed in the view port alone will be rendered. +/// While zooming and panning, new tiles will be requested and rendered on +/// demand based on the current zoom level and focal point. /// The current zoom level and focal point can be obtained from the /// [MapZoomPanBehavior.zoomLevel] and [MapZoomPanBehavior.focalLatLng] /// respectively. Once the particular tile is rendered, it will be stored in the @@ -134,8 +136,8 @@ part of maps; /// bubbles, legends, selection etc. /// * [MapShapeLayerDelegate], for providing the data for the elements like data /// labels, tooltip, bubbles, legends etc. -/// * For enabling zooming and panning, set [zoomPanBehavior] with the instance -/// of [MapZoomPanBehavior]. +/// * For enabling zooming and panning, set [MapTileLayer.zoomPanBehavior] +/// with the instance of [MapZoomPanBehavior]. class SfMaps extends StatefulWidget { /// Creates a [SfMaps]. diff --git a/packages/syncfusion_flutter_maps/pubspec.yaml b/packages/syncfusion_flutter_maps/pubspec.yaml index 615f8abfd..e1f0e3355 100644 --- a/packages/syncfusion_flutter_maps/pubspec.yaml +++ b/packages/syncfusion_flutter_maps/pubspec.yaml @@ -1,7 +1,7 @@ name: syncfusion_flutter_maps -description: Syncfusion Flutter Maps is a data visualization library written natively in Dart for creating beautiful and customizable maps from GeoJSON data. They are used to build high-performance mobile applications with rich UIs using Flutter. +description: Syncfusion Flutter Maps is a data visualization library written natively in Dart for creating beautiful and customizable maps. version: 18.3.35-beta -homepage: https://github.com/syncfusion/flutter-examples +homepage: https://github.com/syncfusion/flutter-widgets/tree/master/packages/syncfusion_flutter_maps environment: sdk: ">=2.1.0 <3.0.0" diff --git a/packages/syncfusion_flutter_pdf/lib/src/pdf/implementation/pdf_document/pdf_catalog.dart b/packages/syncfusion_flutter_pdf/lib/src/pdf/implementation/pdf_document/pdf_catalog.dart index ed4c4894a..97a64e0e5 100644 --- a/packages/syncfusion_flutter_pdf/lib/src/pdf/implementation/pdf_document/pdf_catalog.dart +++ b/packages/syncfusion_flutter_pdf/lib/src/pdf/implementation/pdf_document/pdf_catalog.dart @@ -16,7 +16,7 @@ class _PdfCatalog extends _PdfDictionary { PdfSectionCollection _sections; // ignore: unused_field PdfDocument _document; - // ignore: unused_field + // ignore: unused_element PdfSectionCollection get _pages => _sections; set _pages(PdfSectionCollection sections) { if (_sections != sections) { diff --git a/packages/syncfusion_flutter_pdf/pubspec.yaml b/packages/syncfusion_flutter_pdf/pubspec.yaml index 8184dab11..709e039d2 100644 --- a/packages/syncfusion_flutter_pdf/pubspec.yaml +++ b/packages/syncfusion_flutter_pdf/pubspec.yaml @@ -1,7 +1,7 @@ name: syncfusion_flutter_pdf description: Syncfusion Flutter PDF is a library written natively in Dart for creating PDF documents from scratch. version: 18.3.35-beta -homepage: https://github.com/syncfusion/flutter-examples +homepage: https://github.com/syncfusion/flutter-widgets/tree/master/packages/syncfusion_flutter_pdf environment: sdk: '>=2.1.0 <3.0.0' diff --git a/packages/syncfusion_flutter_pdfviewer/pubspec.yaml b/packages/syncfusion_flutter_pdfviewer/pubspec.yaml index f3c55760c..701e10a9c 100644 --- a/packages/syncfusion_flutter_pdfviewer/pubspec.yaml +++ b/packages/syncfusion_flutter_pdfviewer/pubspec.yaml @@ -1,7 +1,7 @@ name: syncfusion_flutter_pdfviewer description: Syncfusion Flutter PDF Viewer is used to display a PDF document seamlessly and efficiently. version: 18.3.35-beta -repository: https://gitlab.syncfusion.com/essential-studio/flutter-pdfviewer +repository: https://github.com/syncfusion/flutter-widgets/tree/master/packages/syncfusion_flutter_pdfviewer environment: sdk: ">=2.1.0 <3.0.0" diff --git a/packages/syncfusion_flutter_signaturepad/pubspec.yaml b/packages/syncfusion_flutter_signaturepad/pubspec.yaml index 9b5a202c3..ea822e3d1 100644 --- a/packages/syncfusion_flutter_signaturepad/pubspec.yaml +++ b/packages/syncfusion_flutter_signaturepad/pubspec.yaml @@ -1,7 +1,7 @@ name: syncfusion_flutter_signaturepad description: The Signature Pad widget allows you to capture smooth and more realistic signatures through drawn gestures and save it as an image. version: 18.3.35-beta -homepage: https://github.com/syncfusion/flutter-examples +homepage: https://github.com/syncfusion/flutter-widgets/tree/master/packages/syncfusion_flutter_signaturepad environment: sdk: ">=2.7.0 <3.0.0" diff --git a/packages/syncfusion_flutter_sliders/CHANGELOG.md b/packages/syncfusion_flutter_sliders/CHANGELOG.md index 1cedb6a10..a1a92c4cd 100644 --- a/packages/syncfusion_flutter_sliders/CHANGELOG.md +++ b/packages/syncfusion_flutter_sliders/CHANGELOG.md @@ -1,6 +1,36 @@ -## [18.3.35-beta] - 10/01/2020 +## [18.3.35] - 10/01/2020 -No changes. +## Slider + +### Features + +* **Material design improvements** - The following UI improvements have been made based on the latest Material design guidelines: + + * Difference in active and inactive track height. + * Shadow support for the thumbs. + * Changes in default divider radius. + +## Range Slider + +### Features + +* **Material design improvements** - The following UI improvements have been made based on the latest Material design guidelines: + + * Difference in default active and inactive track height. + * Shadow support for the thumbs. + * Overlapping stroke for thumb and tooltip. + * Changes in default divider radius. + +## Range Selector + +### Features + +* **Material design improvements** - The following UI improvements have been made based on the latest Material design guidelines: + + * Difference in default active and inactive track height. + * Shadow support for the thumbs. + * Overlapping stroke for thumb and tooltip. + * Changes in default divider radius. ## [18.2.59-beta] - 09/23/2020 diff --git a/packages/syncfusion_flutter_sliders/pubspec.yaml b/packages/syncfusion_flutter_sliders/pubspec.yaml index 2ad63b3bb..e61034eb4 100644 --- a/packages/syncfusion_flutter_sliders/pubspec.yaml +++ b/packages/syncfusion_flutter_sliders/pubspec.yaml @@ -1,7 +1,7 @@ name: syncfusion_flutter_sliders description: Syncfusion Flutter Sliders library is written natively in Dart for creating highly interactive and UI-rich slider controls for filtering purposes. version: 18.3.35 -homepage: https://github.com/syncfusion/flutter-examples +homepage: https://github.com/syncfusion/flutter-widgets/tree/master/packages/syncfusion_flutter_sliders environment: sdk: ">=2.1.0 <3.0.0" diff --git a/packages/syncfusion_flutter_xlsio/pubspec.yaml b/packages/syncfusion_flutter_xlsio/pubspec.yaml index 7353386c2..c71b3aac7 100644 --- a/packages/syncfusion_flutter_xlsio/pubspec.yaml +++ b/packages/syncfusion_flutter_xlsio/pubspec.yaml @@ -1,7 +1,7 @@ name: syncfusion_flutter_xlsio description: Syncfusion Flutter XlsIO is a library written natively in Dart for creating Excel documents from scratch. version: 18.3.35-beta -homepage: https://github.com/syncfusion/flutter-examples +homepage: https://github.com/syncfusion/flutter-widgets/tree/master/packages/syncfusion_flutter_xlsio environment: sdk: ">=2.1.0 <3.0.0" diff --git a/packages/syncfusion_localizations/pubspec.yaml b/packages/syncfusion_localizations/pubspec.yaml index a073c8b61..985c8555e 100644 --- a/packages/syncfusion_localizations/pubspec.yaml +++ b/packages/syncfusion_localizations/pubspec.yaml @@ -1,7 +1,7 @@ name: syncfusion_localizations description: Syncfusion Localizations package contains localized text for 77 cultures for all the applicable Syncfusion Flutter Widgets. version: 18.3.35 -homepage: https://github.com/syncfusion/flutter-examples +homepage: https://github.com/syncfusion/flutter-widgets/tree/master/packages/syncfusion_localizations environment: sdk: ">=2.1.0 <3.0.0" diff --git a/packages/syncfusion_officechart/README.md b/packages/syncfusion_officechart/README.md index 1d325922f..35e03bf60 100644 --- a/packages/syncfusion_officechart/README.md +++ b/packages/syncfusion_officechart/README.md @@ -1,4 +1,4 @@ -![syncfusion_flutter_officechart_banner]() +![syncfusion_flutter_officechart_banner](https://cdn.syncfusion.com/content/images/Flutter-OfficeChart-Banner.png) # Syncfusion Flutter OfficeChart diff --git a/packages/syncfusion_officechart/lib/src/chart/chart_collection.dart b/packages/syncfusion_officechart/lib/src/chart/chart_collection.dart index f00fd180f..5e106d8ae 100644 --- a/packages/syncfusion_officechart/lib/src/chart/chart_collection.dart +++ b/packages/syncfusion_officechart/lib/src/chart/chart_collection.dart @@ -17,24 +17,16 @@ class ChartCollection extends ChartHelper { /// Parent worksheet. Worksheet _worksheet; - /// Parent Serializer - ChartSerialization _chartSerialization; - - /// Parent Chart . - Chart _chart; - - /// Inner list. - List _innerList; - /// Represents parent worksheet. Worksheet get worksheet { return _worksheet; } - /// Represents parent Chart . - Chart get chart { - return _chart; - } + /// Parent Serializer + ChartSerialization _chartSerialization; + + /// Inner list. + List _innerList; /// Represents the innerlist List get innerList { @@ -61,10 +53,10 @@ class ChartCollection extends ChartHelper { /// ``` Chart add() { final Chart chart = Chart(_worksheet); - chart._series = ChartSeriesCollection(worksheet, chart); - chart._primaryCategoryAxis = ChartCategoryAxis(worksheet, chart); - chart._primaryValueAxis = ChartValueAxis(worksheet, chart); - chart._plotArea = ChartPlotArea(worksheet, chart); + chart._series = ChartSeriesCollection(_worksheet, chart); + chart._primaryCategoryAxis = ChartCategoryAxis(_worksheet, chart); + chart._primaryValueAxis = ChartValueAxis(_worksheet, chart); + chart._plotArea = ChartPlotArea(_worksheet, chart); innerList.add(chart); chart.name = 'Chart' + innerList.length.toString(); chart.index = innerList.length; @@ -83,7 +75,7 @@ class ChartCollection extends ChartHelper { void serializeCharts(Worksheet sheet) { _chartSerialization ??= ChartSerialization(sheet.workbook); - _chartSerialization.saveCharts(sheet); + _chartSerialization._saveCharts(sheet); } /// Serialize the chart drawings. @@ -91,6 +83,6 @@ class ChartCollection extends ChartHelper { void serializeChartDrawing(XmlBuilder builder, Worksheet sheet) { _chartSerialization ??= ChartSerialization(sheet.workbook); - _chartSerialization.serializeChartDrawing(builder, sheet); + _chartSerialization._serializeChartDrawing(builder, sheet); } } diff --git a/packages/syncfusion_officechart/lib/src/chart/chart_impl.dart b/packages/syncfusion_officechart/lib/src/chart/chart_impl.dart index 4ea4337be..e8b37cd95 100644 --- a/packages/syncfusion_officechart/lib/src/chart/chart_impl.dart +++ b/packages/syncfusion_officechart/lib/src/chart/chart_impl.dart @@ -15,6 +15,50 @@ class Chart { /// Parent worksheet. Worksheet _worksheet; + /// DataRange for the chart series. + Range _dataRange; + + /// DataRange for the chart serieValues used in helper methods. + Range _serieValue; + + /// True if series are in rows in DataRange; + /// otherwise False. + bool _bSeriesInRows = true; + + /// Collection of all the series of this chart. + ChartSeriesCollection _series; + + /// Get or Set primaryCategoryAxis + ChartCategoryAxis _primaryCategoryAxis; + + /// Get or Set primary value axis + ChartValueAxis _primaryValueAxis; + + /// Represent the chart text area object. + ChartTextArea _textArea; + + /// Represent the default chart title name. + final String _defaultChartTitle = 'Chart Title'; + + /// Represent the indicates whether show the legend or not. + bool _bHasLegend = false; + + /// Represent the chart legend. + ChartLegend _legend; + + /// Represent the clustered chart collection. + final List _chartsCluster = [ + ExcelChartType.bar, + ExcelChartType.column, + ]; + + /// Represent the stacked chart collection. + final List _stackedCharts = [ + ExcelChartType.barStacked, + ExcelChartType.columnStacked, + ExcelChartType.lineStacked, + ]; + /// Represent chart index. int index; @@ -106,25 +150,6 @@ class Chart { /// ``` int rightColumn; - /// DataRange for the chart series. - Range _dataRange; - - /// DataRange for the chart serieValues used in helper methods. - Range _serieValue; - - /// True if series are in rows in DataRange; - /// otherwise False. - bool _bSeriesInRows = true; - - /// Collection of all the series of this chart. - ChartSeriesCollection _series; - - /// Get or Set primaryCategoryAxis - ChartCategoryAxis _primaryCategoryAxis; - - /// Get or Set primary value axis - ChartValueAxis _primaryValueAxis; - /// Excel chart type /// /// ```dart @@ -148,31 +173,6 @@ class Chart { /// ``` ExcelChartType chartType = ExcelChartType.bar; - /// Represent the chart text area object. - ChartTextArea _textArea; - - /// Represent the default chart title name. - final String _defaultChartTitle = 'Chart Title'; - - /// Represent the indicates whether show the legend or not. - bool _bHasLegend = false; - - /// Represent the chart legend. - ChartLegend _legend; - - /// Represent the clustered chart collection. - final List _chartsCluster = [ - ExcelChartType.bar, - ExcelChartType.column, - ]; - - /// Represent the stacked chart collection. - final List _stackedCharts = [ - ExcelChartType.barStacked, - ExcelChartType.columnStacked, - ExcelChartType.lineStacked, - ]; - /// Gets the boolean value to display the chart legend, True by default. bool get hasLegend { return _bHasLegend; diff --git a/packages/syncfusion_officechart/lib/src/chart/chart_serialization.dart b/packages/syncfusion_officechart/lib/src/chart/chart_serialization.dart index 682cd66a9..7c9b852e2 100644 --- a/packages/syncfusion_officechart/lib/src/chart/chart_serialization.dart +++ b/packages/syncfusion_officechart/lib/src/chart/chart_serialization.dart @@ -21,7 +21,7 @@ class ChartSerialization { }; /// serializes charts from the worksheet. - void saveCharts(Worksheet sheet) { + void _saveCharts(Worksheet sheet) { for (final Chart chart in (sheet.charts as ChartCollection).innerList) { sheet.workbook.chartCount++; final builder = XmlBuilder(); @@ -40,10 +40,10 @@ class ChartSerialization { }); } builder.element('c:chart', nest: () { - if (chart.hasTitle) serializeTitle(builder, chart.chartTitleArea); - serializePlotArea(builder, chart); + if (chart.hasTitle) _serializeTitle(builder, chart.chartTitleArea); + _serializePlotArea(builder, chart); if (chart.series.count > 0 && chart.hasLegend) { - serializeLegend(builder, chart.legend); + _serializeLegend(builder, chart.legend); } builder.element('c:plotVisOnly', nest: () { builder.attribute('val', '1'); @@ -52,19 +52,19 @@ class ChartSerialization { builder.attribute('val', 'gap'); }); }); - serializeFill( + _serializeFill( builder, chart.linePattern, chart.linePatternColor, false); - serializePrinterSettings(builder, chart); + _serializePrinterSettings(builder, chart); }); final stringXml = builder.buildDocument().copy().toString(); final List bytes = utf8.encode(stringXml); - addToArchive(bytes, + _addToArchive(bytes, 'xl/charts/chart' + sheet.workbook.chartCount.toString() + '.xml'); } } /// serializes chart's legend. - void serializeLegend(XmlBuilder builder, ChartLegend chartLegend) { + void _serializeLegend(XmlBuilder builder, ChartLegend chartLegend) { builder.element('c:legend', nest: () { builder.element('c:legendPos', nest: () { final ExcelLegendPosition legendPostion = chartLegend.position; @@ -78,7 +78,7 @@ class ChartSerialization { builder.attribute('val', positionStr); }); if (chartLegend._hasTextArea) { - serializeDefaultTextAreaProperties(builder, chartLegend.textArea); + _serializeDefaultTextAreaProperties(builder, chartLegend.textArea); } builder.element('c:layout', nest: () {}); builder.element('c:overlay', nest: () { @@ -89,7 +89,7 @@ class ChartSerialization { } /// serializes chart's drawing. - void serializeChartDrawing(XmlBuilder builder, Worksheet sheet) { + void _serializeChartDrawing(XmlBuilder builder, Worksheet sheet) { for (final Chart chart in (sheet.charts as ChartCollection).innerList) { builder.element('xdr:twoCellAnchor', nest: () { builder.attribute('editAs', 'twoCell'); @@ -159,7 +159,7 @@ class ChartSerialization { } /// serialize default text area properties. - void serializeDefaultTextAreaProperties( + void _serializeDefaultTextAreaProperties( XmlBuilder builder, ChartTextArea textArea) { builder.element('c:txPr', nest: () { builder.element('a:bodyPr ', nest: () {}); @@ -194,7 +194,7 @@ class ChartSerialization { } /// serialize printer settings of charts - void serializePrinterSettings(XmlBuilder builder, Chart chart) { + void _serializePrinterSettings(XmlBuilder builder, Chart chart) { builder.element('c:printSettings', nest: () { builder.element('c:headerFooter', nest: () { builder.attribute('scaleWithDoc', '1'); @@ -214,7 +214,7 @@ class ChartSerialization { } /// serialize chart title. - void serializeTitle(XmlBuilder builder, ChartTextArea chartTextArea) { + void _serializeTitle(XmlBuilder builder, ChartTextArea chartTextArea) { builder.element('c:title', nest: () { if (chartTextArea._hasText) { builder.element('c:tx', nest: () { @@ -227,7 +227,7 @@ class ChartSerialization { builder.element('a:defRPr', nest: () {}); }); builder.element('a:r', nest: () { - serializeParagraphRunProperties(builder, chartTextArea); + _serializeParagraphRunProperties(builder, chartTextArea); builder.element('a:t', nest: () { builder.text(chartTextArea.text); }); @@ -240,12 +240,12 @@ class ChartSerialization { builder.element('c:overlay', nest: () { builder.attribute('val', chartTextArea._overlay ? '1' : '0'); }); - serializeFill(builder, ExcelChartLinePattern.none, null, false); + _serializeFill(builder, ExcelChartLinePattern.none, null, false); }); } /// serialize paragraph run properties. - void serializeParagraphRunProperties( + void _serializeParagraphRunProperties( XmlBuilder builder, ChartTextArea textArea) { builder.element('a:rPr', nest: () { builder.attribute('lang', 'en-US'); @@ -274,22 +274,22 @@ class ChartSerialization { } /// serialize plotarea of the chart - void serializePlotArea(XmlBuilder builder, Chart chart) { + void _serializePlotArea(XmlBuilder builder, Chart chart) { builder.element('c:plotArea', nest: () { builder.element('c:layout', nest: () {}); if (chart._series.count > 0) { - serializeMainChartTypeTag(builder, chart); + _serializeMainChartTypeTag(builder, chart); } else { - serializeEmptyChart(builder, chart); - serializeAxes(builder, chart); + _serializeEmptyChart(builder, chart); + _serializeAxes(builder, chart); } - serializeFill(builder, chart.plotArea.linePattern, + _serializeFill(builder, chart.plotArea.linePattern, chart.plotArea.linePatternColor, false); }); } /// serializes main chart tag. - void serializeMainChartTypeTag(XmlBuilder builder, Chart chart) { + void _serializeMainChartTypeTag(XmlBuilder builder, Chart chart) { if (builder == null) throw ("writer - Value can't be null"); if (chart == null) throw ("chart - Value can't be null"); @@ -298,34 +298,34 @@ class ChartSerialization { case ExcelChartType.bar: case ExcelChartType.barStacked: case ExcelChartType.columnStacked: - serializeBarChart(builder, chart); + _serializeBarChart(builder, chart); break; case ExcelChartType.line: case ExcelChartType.lineStacked: - serializeLineChart(builder, chart); + _serializeLineChart(builder, chart); break; case ExcelChartType.pie: - serializePieChart(builder, chart); + _serializePieChart(builder, chart); break; } } /// serializes Line chart. - void serializeLineChart(XmlBuilder builder, Chart chart) { + void _serializeLineChart(XmlBuilder builder, Chart chart) { if (builder == null) throw ("writer - Value can't be null"); if (chart == null) throw ("chart - Value can't be null"); builder.element('c:lineChart', nest: () { - serializeChartGrouping(builder, chart); + _serializeChartGrouping(builder, chart); builder.element('c:varyColors', nest: () { builder.attribute('val', 0); }); for (int i = 0; i < chart.series.count; i++) { final ChartSerie firstSerie = chart.series[i]; - serializeSerie(builder, firstSerie); + _serializeSerie(builder, firstSerie); } builder.element('c:gapWidth', nest: () { builder.attribute('val', 150); @@ -337,11 +337,11 @@ class ChartSerialization { builder.attribute('val', 57253888); }); }); - serializeAxes(builder, chart); + _serializeAxes(builder, chart); } /// serializes Bar/ColumnClustered chart. - void serializeBarChart(XmlBuilder builder, Chart chart) { + void _serializeBarChart(XmlBuilder builder, Chart chart) { if (builder == null) throw ("writer - Value can't be null"); if (chart == null) throw ("chart - Value can't be null"); @@ -352,13 +352,13 @@ class ChartSerialization { builder.element('c:barDir', nest: () { builder.attribute('val', strDirection); }); - serializeChartGrouping(builder, chart); + _serializeChartGrouping(builder, chart); builder.element('c:varyColors', nest: () { builder.attribute('val', 0); }); for (int i = 0; i < chart.series.count; i++) { final ChartSerie firstSerie = chart.series[i]; - serializeSerie(builder, firstSerie); + _serializeSerie(builder, firstSerie); } builder.element('c:gapWidth', nest: () { builder.attribute('val', 150); @@ -375,11 +375,11 @@ class ChartSerialization { builder.attribute('val', 57253888); }); }); - serializeAxes(builder, chart); + _serializeAxes(builder, chart); } /// serialize chart grouping. - void serializeChartGrouping(XmlBuilder builder, Chart chart) { + void _serializeChartGrouping(XmlBuilder builder, Chart chart) { String strGrouping; if (chart._getIsClustered(chart.chartType)) { strGrouping = 'clustered'; @@ -394,7 +394,7 @@ class ChartSerialization { } /// serializes pie chart. - void serializePieChart(XmlBuilder builder, Chart chart) { + void _serializePieChart(XmlBuilder builder, Chart chart) { if (builder == null) throw ("writer - Value can't be null"); if (chart == null) throw ("chart - Value can't be null"); @@ -405,7 +405,7 @@ class ChartSerialization { }); for (int i = 0; i < chart.series.count; i++) { final ChartSerie firstSerie = chart.series[i]; - serializeSerie(builder, firstSerie); + _serializeSerie(builder, firstSerie); } builder.element('c:firstSliceAng', nest: () { builder.attribute('val', 0); @@ -414,7 +414,7 @@ class ChartSerialization { } /// serializes series of chart. - void serializeSerie(XmlBuilder builder, ChartSerie firstSerie) { + void _serializeSerie(XmlBuilder builder, ChartSerie firstSerie) { builder.element('c:ser', nest: () { builder.element('c:idx', nest: () { builder.attribute('val', firstSerie._index); @@ -426,13 +426,13 @@ class ChartSerialization { builder.element('c:tx', nest: () { final String strName = firstSerie._nameOrFormula; if (strName.isNotEmpty) { - serializeStringReference( + _serializeStringReference( builder, strName, firstSerie, 'text', null); } }); } if (firstSerie.linePattern != ExcelChartLinePattern.none) { - serializeFill( + _serializeFill( builder, firstSerie.linePattern, firstSerie.linePatternColor, true); } if (firstSerie._serieType == ExcelChartType.line) { @@ -462,7 +462,7 @@ class ChartSerialization { }); final ChartTextArea textArea = firstSerie.dataLabels.textArea; if (textArea != null) { - serializeChartTextArea(builder, textArea); + _serializeChartTextArea(builder, textArea); } builder.element('c:showLegendKey', nest: () { builder.attribute('val', 0); @@ -519,11 +519,11 @@ class ChartSerialization { builder.element('c:formatCode', nest: firstRange.numberFormat); } - serializeNumCacheValues(builder, firstSerie, tempSheet); + _serializeNumCacheValues(builder, firstSerie, tempSheet); }); }); } else { - serializeStringReference( + _serializeStringReference( builder, firstSerie._categoryLabels.addressGlobal, firstSerie, @@ -559,7 +559,7 @@ class ChartSerialization { } else { builder.element('c:formatCode', nest: 'General'); } - serializeNumCacheValues(builder, firstSerie, tempSheet); + _serializeNumCacheValues(builder, firstSerie, tempSheet); }); }); }); @@ -573,7 +573,7 @@ class ChartSerialization { } /// serializes chart text area. - void serializeChartTextArea(XmlBuilder builder, ChartTextArea textArea) { + void _serializeChartTextArea(XmlBuilder builder, ChartTextArea textArea) { builder.element('c:txPr', nest: () { builder.element('a:bodyPr ', nest: () {}); builder.element('a:lstStyle', nest: () {}); @@ -608,7 +608,7 @@ class ChartSerialization { } /// serializes number cache values. - void serializeNumCacheValues( + void _serializeNumCacheValues( XmlBuilder builder, ChartSerie firstSerie, Worksheet dataSheet) { final Range serieRange = firstSerie._values; final int count = serieRange.count; @@ -631,22 +631,22 @@ class ChartSerialization { } /// serializes string cache reference. - void serializeStringReference(XmlBuilder builder, String range, + void _serializeStringReference(XmlBuilder builder, String range, ChartSerie firstSerie, String tagName, Worksheet dataSheet) { builder.element('c:strRef', nest: () { builder.element('c:f', nest: range); builder.element('c:strCache', nest: () { if (tagName == 'cat') { - serializeCategoryTagCacheValues(builder, firstSerie, dataSheet); + _serializeCategoryTagCacheValues(builder, firstSerie, dataSheet); } else { - serializeTextTagCacheValues(builder, firstSerie); + _serializeTextTagCacheValues(builder, firstSerie); } }); }); } /// serializes catergory cache values. - void serializeCategoryTagCacheValues( + void _serializeCategoryTagCacheValues( XmlBuilder builder, ChartSerie firstSerie, Worksheet dataSheet) { final Range serieRange = firstSerie._categoryLabels; final int count = serieRange.count; @@ -669,7 +669,7 @@ class ChartSerialization { } /// serializes text cache values. - void serializeTextTagCacheValues(XmlBuilder builder, ChartSerie firstSerie) { + void _serializeTextTagCacheValues(XmlBuilder builder, ChartSerie firstSerie) { builder.element('c:ptCount', nest: () { builder.attribute('val', 1); }); @@ -682,7 +682,7 @@ class ChartSerialization { } /// serializes fill for the charts. - void serializeFill(XmlBuilder builder, ExcelChartLinePattern linePattern, + void _serializeFill(XmlBuilder builder, ExcelChartLinePattern linePattern, String lineColor, bool hasSerie) { builder.element('c:spPr', nest: () { if (lineColor == null) { @@ -719,17 +719,17 @@ class ChartSerialization { } /// serializes axies of the series. - void serializeAxes(XmlBuilder builder, Chart chart) { + void _serializeAxes(XmlBuilder builder, Chart chart) { if (chart._isCategoryAxisAvail) { - serializeCategoryAxis(builder, chart.primaryCategoryAxis); + _serializeCategoryAxis(builder, chart.primaryCategoryAxis); } if (chart._isValueAxisAvail) { - serializeValueAxis(builder, chart.primaryValueAxis); + _serializeValueAxis(builder, chart.primaryValueAxis); } } /// serializes empty charts. - void serializeEmptyChart(XmlBuilder builder, Chart chart) { + void _serializeEmptyChart(XmlBuilder builder, Chart chart) { builder.element('c:barChart', nest: () { builder.element('c:barDir', nest: () { builder.attribute('val', 'col'); @@ -740,7 +740,7 @@ class ChartSerialization { builder.element('c:varyColors', nest: () { builder.attribute('val', 0); }); - serializeEmptyChartDataLabels(builder); + _serializeEmptyChartDataLabels(builder); builder.element('c:gapWidth', nest: () { builder.attribute('val', 150); }); @@ -754,7 +754,7 @@ class ChartSerialization { } /// serializes category axis of the chart. - void serializeCategoryAxis(XmlBuilder builder, ChartCategoryAxis axis) { + void _serializeCategoryAxis(XmlBuilder builder, ChartCategoryAxis axis) { builder.element('c:catAx', nest: () { builder.element('c:axId', nest: () { builder.attribute('val', 59983360); @@ -771,7 +771,7 @@ class ChartSerialization { builder.attribute('val', 'b'); }); if (axis._hasAxisTitle) { - serializeChartTextArea(builder, axis.titleArea); + _serializeChartTextArea(builder, axis.titleArea); } if (axis.numberFormat != null && axis.numberFormat != '' && @@ -818,7 +818,7 @@ class ChartSerialization { } /// serializes Value axis of the chart. - void serializeValueAxis(XmlBuilder builder, ChartValueAxis axis) { + void _serializeValueAxis(XmlBuilder builder, ChartValueAxis axis) { builder.element('c:valAx', nest: () { builder.element('c:axId', nest: () { builder.attribute('val', 57253888); @@ -845,7 +845,7 @@ class ChartSerialization { builder.attribute('val', 'l'); }); if (axis._hasAxisTitle) { - serializeChartTextArea(builder, axis.titleArea); + _serializeChartTextArea(builder, axis.titleArea); } if (axis.numberFormat != null && axis.numberFormat != '' && @@ -883,7 +883,7 @@ class ChartSerialization { } /// serializes empty chart's datalabels. - void serializeEmptyChartDataLabels(XmlBuilder builder) { + void _serializeEmptyChartDataLabels(XmlBuilder builder) { builder.element('c:dLbls', nest: () { builder.element('c:showLegendKey', nest: () { builder.attribute('val', 0); @@ -907,7 +907,7 @@ class ChartSerialization { } /// Add the workbook data with filename to ZipArchive. - void addToArchive(List data, String fileName) { + void _addToArchive(List data, String fileName) { final ArchiveFile item = ArchiveFile(fileName, data.length, data); _workbook.archive.addFile(item); } diff --git a/packages/syncfusion_officechart/lib/src/chart/chart_text_area.dart b/packages/syncfusion_officechart/lib/src/chart/chart_text_area.dart index a6668dc34..60bb1b319 100644 --- a/packages/syncfusion_officechart/lib/src/chart/chart_text_area.dart +++ b/packages/syncfusion_officechart/lib/src/chart/chart_text_area.dart @@ -3,15 +3,15 @@ part of officechart; /// Represent the Chart Text Area. class ChartTextArea { /// Create an instances of [ChartTextArea] class. - ChartTextArea(Object parent) { - _parent = parent; - if (parent is Chart) { - _chart = parent; - } else if (parent is ChartCategoryAxis) { - _chart = (parent)._chart; - } else if (parent is ChartValueAxis) { - _chart = (parent)._chart; - } else if (parent is ChartSerie) _chart = (parent)._chart; + ChartTextArea(Object _parent) { + _parent = _parent; + if (_parent is Chart) { + _chart = _parent; + } else if (_parent is ChartCategoryAxis) { + _chart = (_parent)._chart; + } else if (_parent is ChartValueAxis) { + _chart = (_parent)._chart; + } else if (_parent is ChartSerie) _chart = (_parent)._chart; _createFont(); } @@ -29,6 +29,7 @@ class ChartTextArea { } /// Parent object. + // ignore: unused_field Object _parent; /// Reprent the font. @@ -37,11 +38,6 @@ class ChartTextArea { /// Boolean value indicates whether other elements in chart can overlap this text area. final bool _overlay = false; - /// Parent. - Object get parent { - return _parent; - } - /// Gets bold. bool get bold { return _font.bold; diff --git a/packages/syncfusion_officechart/pubspec.yaml b/packages/syncfusion_officechart/pubspec.yaml index 8ea06df34..7610b2891 100644 --- a/packages/syncfusion_officechart/pubspec.yaml +++ b/packages/syncfusion_officechart/pubspec.yaml @@ -1,7 +1,7 @@ name: syncfusion_officechart description: Syncfusion Flutter Office Chart is a library written natively in Dart for creating Office charts from scratch. version: 18.3.35-beta -homepage: https://github.com/syncfusion/flutter-examples +homepage: https://github.com/syncfusion/flutter-widgets/tree/master/packages/syncfusion_officechart environment: sdk: ">=2.1.0 <3.0.0" diff --git a/packages/syncfusion_officecore/pubspec.yaml b/packages/syncfusion_officecore/pubspec.yaml index 2d9579042..ec9bfe17e 100644 --- a/packages/syncfusion_officecore/pubspec.yaml +++ b/packages/syncfusion_officecore/pubspec.yaml @@ -1,7 +1,7 @@ name: syncfusion_officecore -description: Syncfusion Flutter Office Core is a library written natively in Dart for creating Office documents from scratch. +description: Syncfusion Flutter Office Core is a dependant library for Syncfusion Flutter XlsIO, written natively in Dart for creating Excel charts from scratch. version: 18.3.35-beta -homepage: https://github.com/syncfusion/flutter-examples +homepage: https://github.com/syncfusion/flutter-widgets/tree/master/packages/syncfusion_officecore environment: sdk: ">=2.1.0 <3.0.0"