NarekManukyan / story_maker

A package for creating instagram like story, you can use this package to edit images and make it story ready by adding other contents over it like text and gradients.
MIT License
5 stars 10 forks source link

Cannot open the StoryMaker more than once - why static GlobalKey? #2

Closed AleksandarSavic95 closed 2 years ago

AleksandarSavic95 commented 2 years ago

Hello author of StoryMaker!

When trying to open the StoryMaker screen the second time (I create one story, and then I want to navigate to StoryMaker again), I get an exception:

'package:flutter/src/widgets/framework.dart': Failed assertion: line 3888 pos 12: 'element._lifecycleState == _ElementLifecycle.inactive': is not true.
package:flutter/…/widgets/framework.dart:3888
The relevant error-causing widget was
StoryMaker

After modifying the source code to remove the static keyword, the StoryMaker screen can be opened again. Why is the GlobalKey static?

https://github.com/NarekManukyan/story_maker/blob/079fd310844219fb9bb8fb28ebced4c8d9454899/lib/story_maker.dart#L46

NarekManukyan commented 2 years ago

Hi @AleksandarSavic95 . Thanks for reporting. Will fix it.

AleksandarSavic95 commented 2 years ago

@NarekManukyan hello any updates on this?

AleksandarSavic95 commented 2 years ago

@NarekManukyan when are you gonna merge this?

NarekManukyan commented 2 years ago

@AleksandarSavic95 Sorry for such a late reply. The problem has been fixed.