No Material widget foundNo Material widget found code example Example: No Material widget found. i solved this issue by adding Scaffold to my widget