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

fix: Hot reload on changing textureType does not work #4

Open
LordOlumide opened this issue Nov 5, 2023 · 0 comments
Open

fix: Hot reload on changing textureType does not work #4

LordOlumide opened this issue Nov 5, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@LordOlumide
Copy link

LordOlumide commented Nov 5, 2023

Hot reload does not work after changing textureType.

Description
After changing the textyreType in a Textura widget, and you hot reload, the Textura widget is not rebuilt. But if you navigate back and come back to the screen with the Textura widget, it is built with the new changes.
Even when you change the child of the Textura widget and the textureType, then you hot reload, the widget is rebuilt with changes to the child but the texture is not rebuilt. Same thing with other widgets on the screen. They are rebuilt but the texture is not rebuilt.

Steps To Reproduce

  1. Build a widget like this in a stateful or stateless widget:
Textura(
    textureType: TextureType.chessboard,
    child: Container(
        width: 200,
        height: 200,
        child: Text(
            'Testing Textures to this',
        ),
    ),
),
  1. Change the textureType.
  2. Hot reload

Expected Behavior

I expected the screen to rebuild with the new changes but it did not rebuild. After I navigated back and moved to the screen again, the changes were in effect.

@LordOlumide LordOlumide added the bug Something isn't working label Nov 5, 2023
@Yczar Yczar self-assigned this Nov 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants