excel
4.0.6, released 2 years ago by justkawal.dev
Read, create, edit and write XLSX Excel files in Dart/Flutter.
What it does
Provides APIs to decode XLSX bytes into workbook objects, manipulate sheets, rows, cells and styles, and encode back to bytes. Supports both client and server environments.
AI-written summary of version 4.0.6, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to import or export Excel spreadsheets without native platform code
- You work with data tables that must be compatible with Microsoft Excel
Skip it when
- You require advanced Excel features like macros, pivot tables, or complex chart generation
Strengths
- Pure Dart implementation works on all Flutter platforms
- Strong typing for cell values with sealed classes
- Supports custom number formats and date/time types
Weaknesses
- No support for Excel formulas evaluation or advanced features
- Limited to XLSX; no XLS or CSV handling
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 4
import 'package:excel/excel.dart';
var bytes = File('test.xlsx').readAsBytesSync();
var excel = Excel.decodeBytes(bytes);
var sheet = excel['Sheet1'];
sheet.cell(CellIndex.indexByString('A1')).value = TextCellValue('Hello');
File('out.xlsx').writeAsBytesSync(excel.encode()!);Alternatives
Packages that do the same job and could replace excel.
- simple_secure_storage
Secure key‑value storage for Flutter with platform‑specific backends.
77Compare - minio
Unofficial MinIO and S3-compatible object storage client SDK for Dart and Flutter.
61Compare - mysql_client_plus
Native MySQL client written in Dart with connection pooling, transactions, and TLS support.
74Compare - cross_local_storage
SharedPreferences wrapper for Mobile, Web, and Desktop with JSON file storage support.
49Compare
Works with
Packages commonly used together with excel: ones it builds on, ones built on it, and its own family.
- archiveexcel depends on itEncodes and decodes archive and compression formats such as zip, tar, gzip, and zlib.
- xmlexcel depends on itFull-featured XML and XPath library for DOM parsing, SAX streaming, and fluent building.
- equatableexcel depends on itProvides value‑based equality for Dart objects without manual == and hashCode.