import 'package:flutter/material.dart';
class MyListView extends StatelessWidget {
const MyListView({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
body: Column(
children: [
Container(
height: MediaQuery.of(context).size.height,
width: MediaQuery.of(context).size.width,
child: ListView(
children: [
Padding(
padding: const EdgeInsets.all(8.0),
child: Container(
height: 100,
width: MediaQuery.of(context).size.width,
decoration: BoxDecoration(
color: Colors.black,
borderRadius: BorderRadius.circular(20)),
child: Center(
child: Text(
"Hancie Phago",
style: TextStyle(color: Colors.white, fontSize: 18),
),
),
),
),
Padding(
padding: const EdgeInsets.all(8.0),
child: Container(
height: 100,
width: MediaQuery.of(context).size.width,
decoration: BoxDecoration(
color: Colors.black,
borderRadius: BorderRadius.circular(20)),
child: Center(
child: Text(
"Nitesh Hamal",
style: TextStyle(color: Colors.white, fontSize: 18),
),
),
),
),
Padding(
padding: const EdgeInsets.all(8.0),
child: Container(
height: 100,
width: MediaQuery.of(context).size.width,
decoration: BoxDecoration(
color: Colors.black,
borderRadius: BorderRadius.circular(20)),
child: Center(
child: Text(
"Ajaya Timsina",
style: TextStyle(color: Colors.white, fontSize: 18),
),
),
),
),
Padding(
padding: const EdgeInsets.all(8.0),
child: Container(
height: 100,
width: MediaQuery.of(context).size.width,
decoration: BoxDecoration(
color: Colors.black,
borderRadius: BorderRadius.circular(20)),
child: Center(
child: Text(
"Aveshesh KC",
style: TextStyle(color: Colors.white, fontSize: 18),
),
),
),
)
],
),
)
],
),
);
}
}