How to add padding using Media query in Flutter?
Remove const
and you should be good to go.
padding: EdgeInsets.all(MediaQuery.of(context).size.width/10),
padding: const EdgeInsets.symmetric(horizontal: MediaQuery.of(context).size.width/10), // errorpadding: EdgeInsets.symmetric(horizontal: MediaQuery.of(context).size.width/10), //after removing const