caused by returning function v (first-screen,second-screen) instead of the (v ctx). Since routes paramter expects Map<String, WidgetBuilder>?, the values of routes map should be functions of BuildContext to Widget. Instead the previous implementation had functions of BuildContext that return functions of BuildContext to Widget.
caused by returning function v (first-screen,second-screen) instead of the
(v ctx)
. Since routes paramter expectsMap<String, WidgetBuilder>?
, the values of routes map should be functions ofBuildContext
toWidget
. Instead the previous implementation had functions ofBuildContext
that return functions ofBuildContext
toWidget
.