import 'package:fluro/fluro.dart';
import 'package:yumi/modules/room/edit/room_edit_page.dart';
import 'package:yumi/modules/room/them/room_theme_page.dart';
import 'package:yumi/modules/room/voice_room_page.dart';
import 'package:yumi/app/routes/sc_router_init.dart';
class VoiceRoomRoute implements SCIRouterProvider {
  static String voiceRoom = '/room';
  static String roomEdit = '/room/roomEdit';
  static String roomTheme = '/room/roomTheme';

  @override
  void initRouter(FluroRouter router) {
    router.define(voiceRoom,
        handler: Handler(handlerFunc: (_, params) => VoiceRoomPage()));
    router.define(roomTheme,
        handler: Handler(handlerFunc: (_, params) => RoomThemePage()));
    router.define(roomEdit,
        handler: Handler(handlerFunc: (_, params) => RoomEditPage(needRestCurrentRoomInfo: params['need']!.first)));
  }
}
