1234567891011121314151617181920212223242526272829303132333435 |
- import 'package:fluro/fluro.dart';
- import 'package:common_project/config/routers_path.dart';
- import 'package:common_project/utils/router_util/configure_routers.dart';
- import 'package:flutter/material.dart';
- import 'package:module_home/view/home_room_list_page.dart';
- import 'package:module_home/view/home_search_index_page.dart';
- class HomeRouters with RouterPath{
- String roomPage = "/roomPage";
- String searchIndex = "searchIndex";
- }
- class ModuleConfigRouters extends ConfigureRouters{
- @override
- void configureRouters(FluroRouter router) {
- // TODO: implement configureRouters
- // router.define(HomeRouters().roomPage, handler: roomPageHandler);
- router.define(HomeRouters().searchIndex, handler: HomeSearchIndexPageHandler);
- }
- Handler HomeSearchIndexPageHandler = Handler(
- type: HandlerType.route,
- handlerFunc: (BuildContext? context, Map<String, List<String>> parameters) {
- return HomeSearchIndexPage();
- },
- );
- }
|