Skip to content
pubscout

excel

4.0.6, released 2 years ago by justkawal.dev

Read, create, edit and write XLSX Excel files in Dart/Flutter.

WASM-readyQuiet but busy
$ flutter pub add excel
Source repository

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.

Works with

Packages commonly used together with excel: ones it builds on, ones built on it, and its own family.