Open ghost opened 1 year ago
I was hitting the same issue. Added the following as suggested here and it fixed it:
router.notFoundHandler = Handler(
handlerFunc: (BuildContext? context, Map<String, dynamic> params) {
return NotFoundPage();
});
I have url :
www.foobar.com/template/1234&token=1234
where the first 1234 is the template id. here is my code:and the app.dart is as:
Throws an
Expected a value of type 'Handler', but got one of type 'Null'
. When I tried running the same code but without the:templateId
it works fine.