Named route navigation error: type ‘MaterialPageRoute’ is not a subtype of type ‘Route’

Blindingly obvious in hindsight.

I had added the String type-hint in Navigator.pushNamed<String>() as I thought I could receive a typed value back from the call. Removing that and receiving it into a var solved the problem.

Leaving this up for anyone else who gets themselves into the same state.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)