|
|
|
@ -29,16 +29,7 @@ class _WebListActivityState extends State<WebListActivity> {
|
|
|
|
|
IDataStrategy strategy = RequestApi();
|
|
|
|
|
|
|
|
|
|
//late File x = File(file.path);
|
|
|
|
|
List<String> parseFile(Uint8List bytes) {
|
|
|
|
|
String csvString = utf8.decode(bytes); // Convertit les bytes en chaîne UTF-8
|
|
|
|
|
List<String> lines = LineSplitter.split(csvString).toList(); // Sépare les lignes
|
|
|
|
|
|
|
|
|
|
for (String line in lines) {
|
|
|
|
|
print(line); // Affiche chaque ligne du fichier
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return lines; // Ou retournez les lignes du fichier
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void readFile(html.File file) async {
|
|
|
|
|
ManagerFile x = ManagerFile();
|
|
|
|
|