SunnyApp / flutter_contact

A flutter plugin for retrieving, creating, saving, and watching contacts on native devices
BSD 3-Clause "New" or "Revised" License
80 stars 62 forks source link

Update dependencies, fix list cast issue #57

Closed aaqibismail closed 3 years ago

aaqibismail commented 3 years ago

When I try to use the existing package, I am receiving several compilation errors coming from this package. It seems to be a casting issue. I am on the Flutter beta v2.2.0-10.1pre

/C:/Users/aaqib/AppData/Local/Pub/Cache/git/flutter_contact-22a3bea76f2b03bdc649f3245e770f3d653b1b1d/lib/contact.dart:306:12: Error: The argument type 'Iterable<Item>' can't be assigned to the parameter type 'List<Item>?'.
 - 'Iterable' is from 'dart:core'.
 - 'Item' is from 'package:flutter_contact/contact.dart' ('/C:/Users/aaqib/AppData/Local/Pub/Cache/git/flutter_contact-22a3bea76f2b03bdc649f3245e770f3d653b1b1d/lib/contact.dart').
 - 'List' is from 'dart:core'.
          .notNull(),
           ^
/C:/Users/aaqib/AppData/Local/Pub/Cache/git/flutter_contact-22a3bea76f2b03bdc649f3245e770f3d653b1b1d/lib/contact.dart:308:12: Error: The argument type 'Iterable<Item>' can't be assigned to the parameter type 'List<Item>?'.
 - 'Iterable' is from 'dart:core'.
 - 'Item' is from 'package:flutter_contact/contact.dart' ('/C:/Users/aaqib/AppData/Local/Pub/Cache/git/flutter_contact-22a3bea76f2b03bdc649f3245e770f3d653b1b1d/lib/contact.dart').
 - 'List' is from 'dart:core'.
          .notNull(),

/C:/Users/aaqib/AppData/Local/Pub/Cache/git/flutter_contact-22a3bea76f2b03bdc649f3245e770f3d653b1b1d/lib/contact.dart:313:12: Error: The argument type 'Iterable<Item>' can't be assigned to the parameter type 'List<Item>?'.
 - 'Iterable' is from 'dart:core'.
 - 'Item' is from 'package:flutter_contact/contact.dart' ('/C:/Users/aaqib/AppData/Local/Pub/Cache/git/flutter_contact-22a3bea76f2b03bdc649f3245e770f3d653b1b1d/lib/contact.dart').
 - 'List' is from 'dart:core'.
          .notNull(),
           ^
/C:/Users/aaqib/AppData/Local/Pub/Cache/git/flutter_contact-22a3bea76f2b03bdc649f3245e770f3d653b1b1d/lib/contact.dart:316:9: Error: The argument type 'Iterable<ContactDate>' can't be assigned to the parameter type 'List<ContactDate>?'.
 - 'Iterable' is from 'dart:core'.
 - 'ContactDate' is from 'package:flutter_contact/contact.dart' ('/C:/Users/aaqib/AppData/Local/Pub/Cache/git/flutter_contact-22a3bea76f2b03bdc649f3245e770f3d653b1b1d/lib/contact.dart').
 - 'List' is from 'dart:core'.
      ].notNull(),
        ^
/C:/Users/aaqib/AppData/Local/Pub/Cache/git/flutter_contact-22a3bea76f2b03bdc649f3245e770f3d653b1b1d/lib/contact.dart:320:9: Error: The argument type 'Iterable<PostalAddress>' can't be assigned to the parameter type 'List<PostalAddress>?'.
 - 'Iterable' is from 'dart:core'.
 - 'PostalAddress' is from 'package:flutter_contact/contact.dart' ('/C:/Users/aaqib/AppData/Local/Pub/Cache/git/flutter_contact-22a3bea76f2b03bdc649f3245e770f3d653b1b1d/lib/contact.dart').
ericmartineau commented 3 years ago

Thanks for the report. this was fixed in another commit