New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WidgetStory AnimationController exception #5
Comments
Forget everything, you've already done it! The way you built it makes it truly simple to create any "Custom Slide/ContentType Template" you want! Please try to make your own ContentType and battle test it. I think you nailed it! Probably just a couple tweaks (see end of message) to the way gesture is handled. I can help write documentation on custom ContentTypes and Custom Templates if you want. Here's the data I customized:
Here's the customized class:
Here's the template I made:
Only problem is, when tapping the TextButton it breaks: If this gets fixed, I should be able to drop this in as a replacement to my setup and really start to contribute to your code :) PS: PPS: Great job again, this really is an awesome package! |
Wanted to note there's a foregroundBuilder option in this package:
Figure you can use some ideas from there? |
Hi, thanks for your feedback. WidgetStory throws an error when first item in story view, I can reproduce issue. I will release a new version today to fix this issue.
How will it be useful in this package? You can use WidgetStory if it's about using custom widgets over the image or video media. I will add a way to use cached media inside WidgetStory in next releases, this way you don't have to create your own caching mechanism for custom story types.
I'm grateful for your all kind of supports, I will add be a sponsor or buy me a coffee button to the readme 🙏🏼 |
You're welcome. I'm starting to understand how things are working under the hood now :) Yes, you're right I think it's fine the way you have it, just thought foregroundBuilder was an interesting concept. And yes, I was just thinking about the caching mechanism as part of the WidgetStory slide. That is vital and will unlock a lot of power to create super cool or complex slides. Not sure how or if you support pre-caching or pre-loading? Would be nice to specify how many pages forward/back to preload. This package seems to work ok: https://pub.dev/packages/preload_page_view I'll back off with the feature requests/suggesgtions. There's just a couple more nagging at me but I'll wait to see if I can help implement them. I will most certainly buy you a giant coffee! Or perhaps become a sponsor once I get it implemented into my app. Please notify when you get the link up. Again, really great job on the package and awesome job following up on issues 👍 |
Bug fixed, added parameters to enable/disable preloading, thanks for your suggestions. |
Is your feature request related to a problem? Please describe.
There is no problem, only opportunity.
The widget type is limitless which is great, but what if you want different widget types for say "Image with text" or "3 image rows" or "Video with scrolling text" or "Video with image overlay"?
Describe the solution you'd like
Allow devs to define custom content types with templates. Could be as simple as placing dart files within a content_type or content_template folder:
image_with_text.dart
,three_image_rows.dart
,video_with_scrolling_text.dart
orvideo_with_image_overlay.dart
The syntax in the template file could look something like:
ContentTypeVideoWithScrollingText
or
ContentType.videoWithScrollingText
or
SlideTemplateVideoWithScrollingText
or
SlideTemplate.videoWithScrollingText
Then in the "cluster" json that populates the stories, you could simply specify what content type / content template will be used for each individual slide. ex
ImageWithTextSlide
,VideoWithScrollingTextSlide
,MyCustomTemplateSlide
orContentType.myCustomTemplate
orSlide.myNewSlideTemplate
along with your built inImageSlide
VideoSlide
WidgetContent
.or
or
Describe alternatives you've considered
Hacking and breaking your code
Additional context
Your story player outperforms all other packages I've tried. I appreciate your built in functionality and your opinionated approach as is. I think if you break it up a bit and modularize it a bit, it could become one of the more powerful packages for content display, particularly in this full screen story format. Not sure of your goals with this package though.
Not sure how much I can help with code, I'm not an expert. I've never done a PR and still wrapping my head around your code. I can do product development and map things out no problem, but implementing them into your code might be tough.
I can do a $ bounty to get this implemented with the other features if it can become a priority.
The text was updated successfully, but these errors were encountered: