47 lines
1.1 KiB
Dart
47 lines
1.1 KiB
Dart
import 'package:flutter/material.dart';
|
|
|
|
import 'controls/top_bar.dart';
|
|
import 'view/student_item.dart';
|
|
import 'view/waiting_start.dart';
|
|
|
|
class TRoomPage extends StatefulWidget {
|
|
const TRoomPage({super.key});
|
|
|
|
@override
|
|
State<TRoomPage> createState() => _TRoomPageState();
|
|
}
|
|
|
|
class _TRoomPageState extends State<TRoomPage> {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
backgroundColor: Color(0xff2c3032),
|
|
appBar: TopBar(),
|
|
body: true ? WaitingStart() : Padding(
|
|
padding: const EdgeInsets.all(10),
|
|
child: Row(
|
|
spacing: 15,
|
|
children: [
|
|
Expanded(
|
|
child: StudentItem(),
|
|
),
|
|
SizedBox(
|
|
width: 300,
|
|
child: ListView.separated(
|
|
itemBuilder: (_, index) {
|
|
return SizedBox(
|
|
height: 250,
|
|
child: StudentItem(),
|
|
);
|
|
},
|
|
separatorBuilder: (_, __) => SizedBox(height: 15),
|
|
itemCount: 7,
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|