36 lines
804 B
Dart
36 lines
804 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
import 'student_item.dart';
|
|
|
|
class ContentView extends StatelessWidget {
|
|
const ContentView({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return 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,
|
|
),
|
|
),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|