Skip to content
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

Update Bottom Widget #5

Open
ethagana opened this issue Apr 22, 2020 · 1 comment
Open

Update Bottom Widget #5

ethagana opened this issue Apr 22, 2020 · 1 comment

Comments

@ethagana
Copy link

Hello, thanks for sharing such an awesome widget.

Been trying to update the Bottom widget with data but it appears to be static, how can I go about changing it?

@dylantheriot
Copy link

Hi there. I also ran into this issue, and it seems like the issue is they didn't check to see if the bottomCardWidget was updated in their class file (I'm not sure if this was intentional or not).

I am now able to conditionally render the bottom widget by doing the following:

In the slimy_card.dart file, find the didUpdateWidget(SlimyCard oldWidget) function.
Add the following conditional in the setState function:
if (widget.bottomCardWidget != null) { bottomCardWidget = widget.bottomCardWidget; } else {}

Now hard restart your app (and potentially run flutter packages get, again) and you should be able to conditionally render your bottom widget! Hope this helps.

OmarHosamCodes added a commit to OmarHosamCodes/SlimyCard-Animated-Flutter-Package that referenced this issue Dec 3, 2023
* removed slimeColor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants