Open ChinaPuffer opened 2 years ago
I have the same issue, please any updates on this?
Sorry for the trouble.
Can you please confirm that are you having this trouble in latest version: excel: 2.0.1
If you are still having trouble, please feel free to re-open the issue again.
The issue is still happening with excel: 2.0.1 version
[minified:ik, minified:ik, minified:ik, minified:ik, minified:ik, minified:ik, minified:ik, minified:ik]
This is how was mounted
Some Advise?
try {
FilePickerResult? _result = await FilePicker.platform.pickFiles(
type: FileType.custom,
allowedExtensions: widget.allowedExtensions ?? ['xlsx'],
allowMultiple: false,
);
print('RESULT KEY');
if (_result != null) {
// File file = File(result.files.single.path);
if (!mounted) return;
var bytes = _result.files.single.bytes;
var excel = Excel.decodeBytes(bytes!);
for (var table in excel.tables.keys) {
print(table); //sheet Name
print(excel.tables[table]); //sheet Name
print(excel.tables[table]?.maxCols);
print(excel.tables[table]?.maxRows);
for (var row in excel.tables[table]!.rows) {
print("$row");
}
}
// setState(() {
// _fileName = _result;
// });
} else {
// User canceled the picker
print('FAIL');
}
} catch (e) {
print("Unsupported operation" + e.toString());
}
}
Some update here?
@justkawal could help you on this when he finds the time...
This is present in version 4.0.0
I am not able to download the file. The console shows this line:
Another exception was thrown: Instance of 'minified:jd<void>'
points to main.dart.js:
return}if(typeof console=="object"&&typeof console.log!="undefined"){console.log(a)
UPDATE: I made two changes which solved the issue for me:
Same thing here. Any news ?
Flutter 3.22.0 Excel: 4.0.3
When developing, using Chrome web, read a row will get the data like
[Data(WangKun, 3, 6, nul),Data(WangKun, 3, 6, nul)]
, if useflutter build web
and put the web site in a nginx server, read a row will get the data like[[minified:f2, minified:f2, minified:f2, minified:f2, minified:f2, minified:f2, minified:f2, minified:f2, minified:f2, minified:f2, minified:f2, null]]
What's the matter?