'After upgrading to flutter 2.10: appears widget's ancestor is unsafe

After upgrading to flutter 2.10, the project I'm currently working on has randomly started showing me this message. Does anyone know what has changed to make this happen? I haven't seen anything relevant in the official documentation.



Solution 1:[1]

Just perform flutter clean and flutter run this work for me

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Jogendra Singh