https://github.com/0xfnzero/fxpoi
fxpoi is a flutter plugins for read/export excel, csv
https://github.com/0xfnzero/fxpoi
Last synced: 5 months ago
JSON representation
fxpoi is a flutter plugins for read/export excel, csv
- Host: GitHub
- URL: https://github.com/0xfnzero/fxpoi
- Owner: 0xfnzero
- License: other
- Created: 2019-11-15T06:40:30.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-20T09:27:02.000Z (over 6 years ago)
- Last Synced: 2025-05-19T07:35:24.412Z (about 1 year ago)
- Language: Java
- Size: 15.4 MB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# fxpoi
fxpoi is a Flutter plugins for read/export excel, csv.
## Getting Started
1. Read excel/csv to list
```dart
import 'package:fxpoi/fxpoi.dart';
var filePath = "/usr/local/users.csv"; // or users.xls|xlsx
int offsetLine = 0;
int limitLine = 1000;
var list = await Fxpoi.readExcelCSVByPage(
filePath, offsetLine, limitLine);
for (int i = 0; i <= list.length; i++) {
var item = list[i];
debugPrint("item: $item \n");
debugPrint("item1: ${item[0]} \n");
debugPrint("item2: ${item[1]} \n");
}
```
2. Get the number of excel/csv rows
```dart
import 'package:fxpoi/fxpoi.dart';
var filePath = "/usr/local/users.xls"; // or users.csv|xlsx
int rowCount = await Fxpoi.getRowCount(filePath);
```