PersistentBottomNavBar icon indicating copy to clipboard operation
PersistentBottomNavBar copied to clipboard

pushDynamicScreen returns error

Open adt2 opened this issue 2 years ago • 0 comments

Trying to use an iconbutton '+' to open a modal (full screen) view. I can open the modal view just fine from a regular button on screens without the PersistentNavBar, but when I try...

IconButton(
            onPressed: () {
              PersistentNavBarNavigator.pushDynamicScreen(context,
                  screen: PageName(), withNavBar: false);
            },

...I get an error: "_CastError (type 'PageName' is not a subtype of type 'Route' in type case)". I'm not sure if I'm doing something wrong or if this is a bug.

adt2 avatar Apr 23 '23 17:04 adt2