While I don't know the main reason of why is this happening (because there might be some other part of your code producing this bug), but I could at least tell you it is highly recommended to have a single Scaffold
and pass your app content as an argument to Scaffold's content
parameter.