Giter Club home page Giter Club logo

Comments (8)

armandojimenez avatar armandojimenez commented on July 30, 2024 1

After updating to new version, now I'm getting the same error in another class, gif.dart:
type 'Null' is not a subtype of type 'Map<String, dynamic>' in type cast

from giphy_get.

armandojimenez avatar armandojimenez commented on July 30, 2024 1

After the update, still the same error

[VERBOSE-2:ui_dart_state.cc(186)] Unhandled Exception: type 'Null' is not a subtype of type 'String' #0 new GiphyPreviewImage.fromJson package:giphy_get/…/models/image.dart:328 #1 new GiphyImages.fromJson package:giphy_get/…/models/images.dart:100 #2 new GiphyGif.fromJson package:giphy_get/…/models/gif.dart:66 #3 new GiphyCollection.fromJson.<anonymous closure> package:giphy_get/…/models/collection.dart:13 #4 MappedListIterable.elementAt (dart:_internal/iterable.dart:411:31) #5 ListIterator.moveNext (dart:_internal/iterable.dart:340:26) #6 new _GrowableList._ofEfficientLengthIterable (dart:core-patch/growable_array.dart:188:27) #7 new _GrowableList.of (dart:core-patch/growable_array.dart:150:28) #8 new List.of (dart:core-patch/array_patch.dart:50:28) #9 ListIterable.toList (dart:_internal/iterable.dart:211:44) #10 new GiphyCollection.fromJson package:giphy_get/…/models/collection.dart:13 #11 GiphyClient._fetchCollection package:giphy_get/…/client/client.dart:117 <asynchronous suspension> #12 _GiphyTabDetailState._loadMore package:giphy_get/…/tab/giphy_tab_detail.dart:232 <asynchronous suspension> Could not signal service com.apple.WebKit.WebContent: 113: Could not find specified service

from giphy_get.

bazookon avatar bazookon commented on July 30, 2024 1

Fixed in 2.0.1 thanks @TramPamPam

from giphy_get.

armandojimenez avatar armandojimenez commented on July 30, 2024

So... is anyone still working on this package?

from giphy_get.

armandojimenez avatar armandojimenez commented on July 30, 2024

Hi, still the same error, now after opening, some gif appears, but on scroll, I get the same error and It does not fetch new gif:

[VERBOSE-2:ui_dart_state.cc(199)] Unhandled Exception: type 'Null' is not a subtype of type 'String'
#0      new GiphyFullImage.fromJson
package:giphy_get/…/models/image.dart:27
#1      new GiphyImages.fromJson
package:giphy_get/…/models/images.dart:60
#2      new GiphyGif.fromJson
package:giphy_get/…/models/gif.dart:66
#3      new GiphyCollection.fromJson.<anonymous closure>
package:giphy_get/…/models/collection.dart:13
#4      MappedListIterable.elementAt (dart:_internal/iterable.dart:412:31)
#5      ListIterator.moveNext (dart:_internal/iterable.dart:341:26)
#6      new _GrowableList._ofEfficientLengthIterable (dart:core-patch/growable_array.dart:188:27)
#7      new _GrowableList.of (dart:core-patch/growable_array.dart:150:28)
#8      new List.of (dart:core-patch/array_patch.dart:50:28)
#9      ListIterable.toList (dart:_internal/iterable.dart:212:44)
#10     new GiphyCollection.fromJson
package:giphy_get/…/models/collection.dart:13
#11     GiphyClient._fetchCollection
package:giphy_get/…/client/client.dart:117
<asynchronous suspension>
#12     _GiphyTabDetailState._loadMore
package:giphy_get/…/tab/giphy_tab_detail.dart:232
<asynchronous suspension>

from giphy_get.

bazookon avatar bazookon commented on July 30, 2024

I can't replicate error, do you have more information ore some pull request?

from giphy_get.

armandojimenez avatar armandojimenez commented on July 30, 2024

Just open the modal using

 final GiphyGif? gif = await GiphyGet.getGif(
              context: context,
              apiKey: ApiKey.giphy,
              lang: context.locale.languageCode,
              searchText: 'Search GIPHY',
              tabColor: Theme.of(context).accentColor,
            );

and keep scrolling until it appears and stop loading more gif

from giphy_get.

armandojimenez avatar armandojimenez commented on July 30, 2024

in image.dart, is receiveing null for mp4 in the json, but the param is not nullable

factory GiphyFullImage.fromJson(Map&lt;String, dynamic&gt; json) =&gt; GiphyFullImage( url: json['url'], width: json['width'], height: json['height'], size: json['size'], mp4: json['mp4'], mp4Size: json['mp4_size'], webp: json['webp'], webpSize: json['webp_size']);

from giphy_get.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.