Relative Content

Tag Archive for flutterwidget

how to resolve model importation conflict in flutter

I don’t know what I did wrong here, everything was working well until I imported the ParishModel class and I started seeing some red lines. First was the CreateState() and when I hover around it, it says ‘ShowAllParishPage.createState’ (‘dynamic Function()’) isn’t a valid override of ‘StatefulWidget.createState’ (‘State Function()’). (Documentation)
The member being overridden (framework.dart:42) and the second error was from the State which says Try specifying a different superclass, or removing the extends clause. Please I need help on how to resolve it.

Stack widget is splitting the parent container in two

you may have to run the code to see what the problem is but for some reason when I try to add a Stack widget to the container within the flexible space it splits the container in two, and the image only shows on the left instead of the whole container.