From 5681c9022773ea4f8a80e5956640a7ed353e58ab Mon Sep 17 00:00:00 2001 From: otbenjello Date: Mon, 20 Nov 2023 10:54:24 +0100 Subject: [PATCH] remove parse --- lib/view/activity/web/web_list_activity.dart | 9 --------- 1 file changed, 9 deletions(-) diff --git a/lib/view/activity/web/web_list_activity.dart b/lib/view/activity/web/web_list_activity.dart index 08de8aa..675219d 100644 --- a/lib/view/activity/web/web_list_activity.dart +++ b/lib/view/activity/web/web_list_activity.dart @@ -29,16 +29,7 @@ class _WebListActivityState extends State { IDataStrategy strategy = RequestApi(); //late File x = File(file.path); - List parseFile(Uint8List bytes) { - String csvString = utf8.decode(bytes); // Convertit les bytes en chaîne UTF-8 - List 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();