Comments (18)
same error for me, for the example code itself.
I used firstWhereOrNull instead of 'firstWhere' everywhere in 'story_view.dart', function from 'collection' package and it solved my problem.
from flutter_instagram_stories.
Good, when I go to use the library, the same error has occurred to me, when I click on the story I get an error just like the one you show in the images.
Have you been able to fix it already?
from flutter_instagram_stories.
Hi,
I'll try to fix it during the week (or next weekend).
from flutter_instagram_stories.
Ok, thank you
from flutter_instagram_stories.
I've updated dependencies in the package and in the example and it works again.
I didn't change the code itself.
Please check how it works with updated package.
flutter_instagram_stories: ^1.0.1
Please pay attention to the new way of Firebase initialization
https://firebase.flutter.dev/docs/overview/#initialization
from flutter_instagram_stories.
Ok, thank you. I will review and update it throughout this week or on the weekend and I'll tell you
from flutter_instagram_stories.
The same thing keeps happening to me, I updated the dependencies to the version you indicated, but it keeps giving me an error. Here I attach the screenshots of it.
from flutter_instagram_stories.
It looks like wrong data in the Firestore.
Please double check fields names.
from flutter_instagram_stories.
This is a screenshot of the firestore data
from flutter_instagram_stories.
Hello @awaik , have you been able to review the capture that I attached in the last comment about the name of the firestore database fields?
from flutter_instagram_stories.
Hey @MiguelAngelLopezBlanca
is it array in your database?
from flutter_instagram_stories.
@awaik if it is an array
from flutter_instagram_stories.
from flutter_instagram_stories.
Can you please try to remove all file
records and paste test one
"file": [ { "filetype": "image", "url": { "en": "https://firebasestorage.googleapis.com/v0/b/flutter-instagram-stories.appspot.com/o/in31.jpg?alt=media&token=3ff0173a-0d97-4339-8136-86603f449446" } } ]
from flutter_instagram_stories.
Exact same issue as described by @MiguelAngelLopezBlanca
Can you please try to remove all
file
records and paste test one
"file": [ { "filetype": "image", "url": { "en": "https://firebasestorage.googleapis.com/v0/b/flutter-instagram-stories.appspot.com/o/in31.jpg?alt=media&token=3ff0173a-0d97-4339-8136-86603f449446" } } ]
@awaik above This not helped
from flutter_instagram_stories.
@MiguelAngelLopezBlanca
Had you chance to fix it?
from flutter_instagram_stories.
Can't find a bug, because test app with real Firestore database works. You can check it yourself, the database is open to read and Example
folder in repo contains all the code.
Screen.Recording.2022-03-12.at.09.44.46.mov
from flutter_instagram_stories.
Fixed with the new version, please check
flutter_instagram_stories: ^1.0.2
Thanks for the help @kevinZartek
from flutter_instagram_stories.
Related Issues (20)
- Add reactions to individual stories HOT 2
- Cannot use json api HOT 1
- Timer issue
- Not showing stories HOT 8
- _CastError (type '_InternalLinkedHashMap<String, dynamic>' is not a subtype of type 'List<dynamic>?' in type cast) HOT 9
- what could be the problem ? HOT 19
- the background HOT 1
- stories not showing web app HOT 1
- Wait until video file loading or show video during loading
- type '() => Null' is not a subtype of type '(() => StoryItem)?' of 'orElse' HOT 13
- Not showing stories in release android app HOT 3
- Video is not visible - but sound works (when i open the stories video not visible ). HOT 2
- Adapt plugin for any source of stories data
- not to start the timer until image loading
- bad example page
- Missing license HOT 3
- Flexible ontap/gesture event HOT 4
- how to use onStoryShow property like in story_view ?
- Adding caption support to each slide HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_instagram_stories.