FLUTTER TIP! ❤️ To Avoid Overflow Error.
May 25, 2023
Most beginners use the SingleChildScrollView widget not only for scrolling but also to avoid overflow errors.
When the user tries to type in a TextField, the keyboard appears, and we get the overflow error. To prevent this error, do not wrap your widget with SingleChildScrollView. Instead, use a property in Scaffold named “resizeToAvoidBottomInset,” which is true by default.