column and row widgets using divider horizontal line and vertical line in flutter
import 'package:basketball/colors/const.dart';
import 'package:flutter/material.dart';
class Uefa extends StatelessWidget {
const Uefa({super.key});
@override
Widget build(BuildContext context) {
final size = MediaQuery.of(context).size;
return Column(
children: [
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
'UEFA Nations League',
style: TextStyle(
color: white,
fontSize: 16,
),
),
Align(
alignment: Alignment.bottomCenter,
child: Text(
'See All',
style: TextStyle(color: liteGreen, fontSize: 16),
),
),
],
),
SizedBox(
height: 20,
),
Container(
width: double.infinity,
child: ListView.separated(
separatorBuilder: (context, index) => SizedBox(
height: 10,
),
shrinkWrap: true,
itemCount: 2,
itemBuilder: (context, index) {
return Container(
height: size.height * 0.18,
width: double.infinity,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(20),
color: lightBlack,
),
child: Column(
children: [
Row(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: [
Container(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(
height: 20,
),
Text(
'1/2 finals',
style: TextStyle(fontSize: 16, color: white),
),
SizedBox(
height: 10,
),
Text(
'Gibraltar vs Cyprus',
style: TextStyle(
fontSize: 12,
color: white.withOpacity(0.4),
),
),
],
),
),
Container(
child: Column(
children: [
Row(
mainAxisAlignment:
MainAxisAlignment.spaceBetween,
children: [
Text(
'2.40',
style:
TextStyle(fontSize: 16, color: white),
),
SizedBox(
width: 10,
),
IconButton(
onPressed: () {},
icon: Image.network(
'https://cdn-icons-png.flaticon.com/512/197/197430.png'),
),
],
),
],
),
),
],
),
SizedBox(
height: 5,
),
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Row(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: [
Container(
child: Text(
'Mar 21,2023 ',
style: TextStyle(fontSize: 16, color: white),
),
),
Container(
child: Row(
mainAxisAlignment:
MainAxisAlignment.spaceBetween,
children: [
Column(
children: [
Text(
'1.70',
style: TextStyle(
fontSize: 16, color: white),
),
],
),
SizedBox(
width: 10,
),
IconButton(
onPressed: () {},
icon: Image.network(
'https://cdn-icons-png.flaticon.com/512/197/197374.png',
height: 50,
),
),
],
),
)
],
)
],
)
],
),
);
},
),
)
],
);
}
}