Flutter – "Incorrect use of ParentDataWidget" error when creating new navigation route
I have a button that creates a new a navigation route, using the same build method as the page it's in. onPressed: () { Navigator.push( context, MaterialPageRoute(builder: (context) => ReadDb(value)), ); }, Calling the build method, this error gets thrown…