a-marenkov / gsheets

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

0.4.1: '_GrowableList<dynamic>' is not a subtype of type 'List<Map<String, dynamic>>?' #73

Closed dluksza closed 2 years ago

dluksza commented 2 years ago

Does 0.4.1 require any (breaking) API changes? I've got this error:

type '_GrowableList<dynamic>' is not a subtype of type 'List<Map<String, dynamic>>?'
#0      new SpreadsheetData._fromJson (package:gsheets/src/gsheets.dart:334)
#1      new Spreadsheet._fromJson (package:gsheets/src/gsheets.dart:435)
#2      GSheets.spreadsheet (package:gsheets/src/gsheets.dart:207)

on the first attempt to persist data in gsheet.

Haven't changed anything in my code after bumping the version from 0.3.2 to 0.4.1. Also, everything compiled without any type errors, therefore would assume that it should work.

a-marenkov commented 2 years ago

Does 0.4.1 require any (breaking) API changes? I've got this error:


type '_GrowableList<dynamic>' is not a subtype of type 'List<Map<String, dynamic>>?'

#0      new SpreadsheetData._fromJson (package:gsheets/src/gsheets.dart:334)

#1      new Spreadsheet._fromJson (package:gsheets/src/gsheets.dart:435)

#2      GSheets.spreadsheet (package:gsheets/src/gsheets.dart:207)

on the first attempt to persist data in gsheet.

Haven't changed anything in my code after bumping the version from 0.3.2 to 0.4.1. Also, everything compiled without any type errors, therefore would assume that it should work.

Hi! I'll look into it, seems that there's a bug

Thanks

a-marenkov commented 2 years ago

0 new SpreadsheetData._fromJson (package:gsheets/src/gsheets.dart:334)

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

dluksza commented 2 years ago

Couldn't reproduce the same error on 0.4.2. Thank you!