i am using excel package to view excel file but confuse how to display file in whole body can someone help me with that
var file = "HERE IS THE FILE PATH";
var bytes = File(file).readAsBytesSync();
var excel = Excel.decodeBytes(bytes);
for (var table in excel.tables.keys) {
print(table); //sheet Name
print(excel.tables[table].maxCols);
print(excel.tables[table].maxRows);
for (var row in excel.tables[table].rows) {
print("$row");
}
}
im pass file path but cofuse how to show it inside whole body
This should work: