a-marenkov / gsheets

A Dart library for working with Google Sheets API.
Other
78 stars 31 forks source link

0.4.1 Error while init gsheets #74

Closed fedesenmartin closed 2 years ago

fedesenmartin commented 2 years ago

I configured my credentials ,added the library to project and init it with my sheet id and creds.

First final gsheets = GSheets(_credentials); seems no problem here(at least the console is not showing errors)

But after final ss = await gsheets.spreadsheet(_spreadsheetId)

Im getting this error in console Error: Expected a value of type 'List<Map<String, dynamic>>?', but got one of type 'List<dynamic>'

BTW Im trying on flutter web

a-marenkov commented 2 years ago

I configured my credentials ,added the library to project and init it with my sheet id and creds.

First

` final gsheets = GSheets(_credentials);

`

seems no problem here(at least the console is not showing errors)

But after

` final ss = await gsheets.spreadsheet(_spreadsheetId)

`

Im getting this error in console

Error: Expected a value of type 'List<Map<String, dynamic>>?', but got one of type 'List<dynamic>'

BTW Im trying on flutter web

Hi! I'll look into it

a-marenkov commented 2 years ago

I configured my credentials ,added the library to project and init it with my sheet id and creds.

First final gsheets = GSheets(_credentials); seems no problem here(at least the console is not showing errors)

But after final ss = await gsheets.spreadsheet(_spreadsheetId)

Im getting this error in console Error: Expected a value of type 'List<Map<String, dynamic>>?', but got one of type 'List<dynamic>'

BTW Im trying on flutter web

Hi, can you please check if you have problem on 0.4.2

fedesenmartin commented 2 years ago

@a-marenkov Hi! checked with 0.4.2. It seems fixed! Awesome! Thanks