Tensegritics / ClojureDart

Clojure dialect for Flutter and Dart
1.41k stars 90 forks source link

fix error (dynamic) => dynamic is not a subtype of type 'Widget' #266

Closed earthfail closed 1 year ago

earthfail commented 1 year ago

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.

dupuchba commented 1 year ago

@earthfail I fixed it using slightly different code. Thanks a lot for your report, it's really appreciated