syncfusion_flutter_datagrid_export
35.2.12, released 3 days ago by syncfusion.com
Export Syncfusion Flutter DataGrid content to Excel and PDF formats
What it does
The Syncfusion Flutter DataGrid Export library allows developers to export DataGrid contents such as headers, rows, stacked headers, and table summary rows into Excel and PDF formats with various customization options. It integrates with a GlobalKey attached to the SfDataGrid widget to trigger export methods.
AI-written summary of version 35.1.43, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to export tabular data displayed in a Syncfusion DataGrid to Excel spreadsheets or PDF documents.
- Your application requires generating reports or downloadable files from grid content.
Skip it when
- You are not using the Syncfusion Flutter DataGrid widget.
- You need to export standard Flutter tables or widgets other than SfDataGrid.
Strengths
- Supports exporting headers, rows, stacked headers, and table summary rows.
- Provides direct methods to output to both Excel workbooks and PDF documents.
Weaknesses
- Commercial package requiring a Syncfusion commercial or Community License.
- Strictly tied to the syncfusion_flutter_datagrid package.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 6
Requires a valid Syncfusion commercial license or free Community License. Import syncfusion_flutter_datagrid_export/export.dart and attach a GlobalKey<SfDataGridState> to the SfDataGrid widget.
Future<void> exportDataGridToExcel() async {
final Workbook workbook = _key.currentState!.exportToExcelWorkbook();
final List<int> bytes = workbook.saveAsStream();
File('DataGrid.xlsx').writeAsBytes(bytes);
workbook.dispose();
}Alternatives
Packages that do the same job and could replace syncfusion_flutter_datagrid_export.
- slide_switcher
Create customizable horizontal or vertical sliding switch widgets in Flutter.
42Compare - flutter_full_pdf_viewer_null_safe
A Flutter plugin to display PDF files on Android and iOS.
48Compare
Works with
Packages commonly used together with syncfusion_flutter_datagrid_export: ones it builds on, ones built on it, and its own family.
- material_uisyncfusion_flutter_datagrid_export depends on itOfficial Flutter Material UI library implementing Google’s Material Design system.
- syncfusion_flutter_pdfsyncfusion_flutter_datagrid_export depends on itNative Dart library for creating, reading, editing, and securing PDF files.
- syncfusion_flutter_datagridsyncfusion_flutter_datagrid_export depends on itDataGrid widget for tabular data with editing, sorting, paging and export.
- syncfusion_flutter_xlsiosyncfusion_flutter_datagrid_export depends on itCreate, format, and manipulate Excel documents programmatically in Dart and Flutter.
- syncfusion_officecoresyncfusion_flutter_datagrid_export depends on itDependent library for Syncfusion Flutter XlsIO and OfficeChart.
- syncfusion_flutter_coreSame familyCore dependency for Syncfusion Flutter widgets, providing shared functionality.
- syncfusion_flutter_chartsSame familyA comprehensive charting library for creating cartesian, circular, and spark charts.
- syncfusion_flutter_signaturepadSame familyWidget to capture smooth hand-drawn signatures and export them as images.