Closed soumyaDghosh closed 5 months ago
@soumyaDghosh Thanks for submitting an issue. Feel free to create a PR if you think this is a bug to fix it.
I have no idea why is this bug even happening. I am kinda newbiew. So, atleast guide me on the debugging. Are you atleast able to reproduce it?
@soumyaDghosh I don't have a Linux machine now. On the macOS example, the project works as expected for all targets. Can you run it on your machine, please? Could you make sure that you're on a stable channel?
As I said in my issue, the example works but not after I copy paste the code to my project. Kindly check if you can run this given test code.
I am facing the same issue @soumyaDghosh , did you fix this?
I am facing the same issue @soumyaDghosh , did you fix this?
Nah.. I just left this for now
@minikin fix this bug.
I understand this bug can be frustrating. Unfortunately, I can't commit to a fix due to limited resources or other priorities. However, I encourage you or others to contribute a fix via a pull request.
I think the problem is that you are using the context of the build method of your home page. Try wrapping your button in a stateless widget and using the context of that widget. @soumyaDghosh
I think the problem is that you are using the context of the build method of your home page. Try wrapping your button in a stateless widget and using the context of that widget. @soumyaDghosh
Thank you... I'll get it a look
I think the problem is that you are using the context of the build method of your home page. Try wrapping your button in a stateless widget and using the context of that widget. @soumyaDghosh
Thanks, this solves the issue perfectly.
I think the problem is that you are using the context of the build method of your home page. Try wrapping your button in a stateless widget and using the context of that widget. @soumyaDghosh
This solution is working flawlessly, thank you.
Is there an existing issue for this?
Current Behavior
There were existing bugs on this, but none were from the body of the scaffold. This is happening even in the body of a scaffold. When, I am clicking the button, I just see the app becoming grayish and that's all. No popup menu. This happens with my code only. How ever I try. Even if I just copy paste the code from the example folder. But, when I run from the example folder everything is fine.
Expected Behavior
There should be a popup.
What operating system are you seeing the problem on?
Linux, Android
Relevant log output
Anything else?
My
pubspec.yaml
fileAnd my flutter doctor output
Code of Conduct