In general everything works for me, nevertheless I get an error in my console regarding Getx & Beamer types
Expected a value of type 'GetNavConfig', but got one of type 'RouteInformation'
I think that I know where the RouteInformation comes from:
List<BeamPage> buildPages(
BuildContext context, RouteInformationSerializable state) {
return [HomePage.beamLocation];
}
it is an argument of the buildPages() method, that has to be implemented due to the abstract Beamer class.
On the other hand I think that the
GetMaterialApp
expects a GetNavConfig, but gets a RouteInformation. I'm not really sure whether the things that I interpreted are correct. So I have no idea how to do something against the error. How could I fix the problem?
Well, since you're trying to rely on the beamer package instead of the
Getxrouting management feature, then you do not need theGetMaterialApp, you need to just use theMaterialApp, and for the beamer you need to use theMaterialApp.router.Getxis a package that offers separate features, you could get state management and dependency injection... working fine withoutGetMaterialApp.However, this means that you will not be allowed to use navigation methods such as
Get.to()andGet.toNamed(), you cannot use theGet.context, and you cannot use theGetx's bottom sheet and dialogs.