37 lines
867 B
Dart
37 lines
867 B
Dart
import 'package:app/request/dto/room/room_info_dto.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:provider/provider.dart';
|
|
import 'controls/top_bar.dart';
|
|
import 'widgets/status_view.dart';
|
|
import 'viewmodel/tch_room_vm.dart';
|
|
|
|
class TRoomPage extends StatefulWidget {
|
|
final RoomInfoDto roomInfo;
|
|
|
|
const TRoomPage({
|
|
super.key,
|
|
required this.roomInfo,
|
|
});
|
|
|
|
@override
|
|
State<TRoomPage> createState() => _TRoomPageState();
|
|
}
|
|
|
|
class _TRoomPageState extends State<TRoomPage> {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return ChangeNotifierProvider<TchRoomVM>(
|
|
create: (BuildContext context) {
|
|
return TchRoomVM(
|
|
roomInfo: widget.roomInfo,
|
|
);
|
|
},
|
|
child: Scaffold(
|
|
backgroundColor: Color(0xff2c3032),
|
|
appBar: TopBar(),
|
|
body: StatusView(),
|
|
),
|
|
);
|
|
}
|
|
}
|