planets-flutter
planets-flutter copied to clipboard
Can not open planet detail page
Cant open the plant detail page, see screenshot, I am total new in flutter :-<

me too.
same here
@sergiandreplace pls help
Same here.
Change Routes.dart to :
import 'package:fluro/fluro.dart';
import 'package:flutter/material.dart';
import 'package:planets/ui/planet_detail/PlanetDetailPage.dart';
class Routes {
static final Router _router = new Router();
static var planetDetailHandler = new Handler(
handlerFunc: (BuildContext context, Map<String, dynamic> params) {
debugPrint(params["id"].toString().substring(1, params["id"].toString().length-1));
return new PlanetDetailPage(params["id"].toString().substring(1, params["id"].toString().length-1));
});
static void initRoutes() {
_router.define("/detail/:id", handler: planetDetailHandler);
}
static void navigateTo(context, String route, {TransitionType transition}) {
_router.navigateTo(context, route, transition: transition);
}
}
Thanks, working with @IAmSarthakVerma solution. You should PR this fix