I need to create excel file based on the data in the Supabase table. I already managed to code the file creation, but for some reason can't insert data from Supabase.
My code is below. I inserted only the part about Supabase cause everything else works fine. Could you please help me out to find the mistake? I have zero background in coding - that might be the reason I can't see the problem.
final supabase = Supabase.instance.client;
final response = await supabase.from('User projects').select().execute();
final List<dynamic> data = response.data;
for (var project in response.data) {
sheetObject.appendRow([project['project name'], project['task'], project['hours'], ]); }