import 'package:fluro/fluro.dart';
import 'package:liftmanager/internal/home/webview_page.dart';
import 'package:liftmanager/routers/router_init.dart';


class WorkRouter implements IRouterProvider{

static String webview = "/webview";
//  static String orderPage = "/order";
//  static String orderInfoPage = "/order/info";
//  static String orderSearchPage = "/order/search";
//  static String orderTrackPage = "/order/track";

  @override
  void initRouter(FluroRouter router) {
//    router.define(orderPage, handler: Handler(handlerFunc: (_, params) => OrderPage()));
//    router.define(orderInfoPage, handler: Handler(handlerFunc: (_, params) => OrderInfoPage()));
//    router.define(orderSearchPage, handler: Handler(handlerFunc: (_, params) => OrderSearchPage()));
//    router.define(orderTrackPage, handler: Handler(handlerFunc: (_, params) => OrderTrackPage()));
router.define(webview, handler: Handler(handlerFunc: (_, params){
      String url = params["url"].first;
      String title = params["title"].first;
      return WebViewPage(title: title,url: url);
    }));
  }

}