devkrest / flutter_story_presenter

Easily display media as stories in your Flutter app with customizable features and smooth navigation! 🚀📷
MIT License
11 stars 9 forks source link

Header and Footer widget for StoryItem? #15

Closed AlcoholicCoder closed 2 weeks ago

AlcoholicCoder commented 3 weeks ago

Please allow setting custom header and footer widget for each StoryItem rather than footer for FlutterStoryView.

AlcoholicCoder commented 3 weeks ago

I've tried but footerWidget doesn't get rebuilt on index change.

footerWidget: Builder(builder: (context) {
        Uri? uri = widget.story.status[controller.storyStatus.index].link;
        if (uri != null) {
          return ElevatedButton(
            onPressed: () {
              print("Click registered");
            },
            child: const Text("Click me"),
          );
        }
        return const SizedBox.shrink();
      }),
Kaival-Patel commented 2 weeks ago

@AlcoholicCoder Thanks for raising the issue and shredding light on vital functionality that's having issues. We would soon check this and resolve it.

AlcoholicCoder commented 2 weeks ago

@AlcoholicCoder Thanks for raising the issue and shredding light on vital functionality that's having issues. We would soon check this and resolve it.

Thank you for this awesome library I've used ValueNotifier to solve this issue. Works fine.