format changes
This commit is contained in:
@@ -14,7 +14,7 @@ class MyTournamentsCarousel extends StatefulWidget {
|
|||||||
class _MyTournamentsCarouselState extends State<MyTournamentsCarousel> {
|
class _MyTournamentsCarouselState extends State<MyTournamentsCarousel> {
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final teamProvider = Provider.of<TeamProvider>(context);
|
final teamProvider = Provider.of<TeamProvider>(context);
|
||||||
return FutureBuilder<List<Map<String, dynamic>>>(
|
return FutureBuilder<List<Map<String, dynamic>>>(
|
||||||
future: teamProvider.getMyTeamsTournaments(),
|
future: teamProvider.getMyTeamsTournaments(),
|
||||||
builder: (context, snapshot) {
|
builder: (context, snapshot) {
|
||||||
@@ -30,7 +30,7 @@ class _MyTournamentsCarouselState extends State<MyTournamentsCarousel> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
final tournaments = snapshot.data ?? [];
|
final tournaments = snapshot.data ?? [];
|
||||||
|
|
||||||
if (tournaments.isEmpty) {
|
if (tournaments.isEmpty) {
|
||||||
return Column(
|
return Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
@@ -51,7 +51,11 @@ class _MyTournamentsCarouselState extends State<MyTournamentsCarousel> {
|
|||||||
child: Column(
|
child: Column(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
Icon(Icons.emoji_events_outlined, size: 48, color: Colors.grey),
|
Icon(
|
||||||
|
Icons.emoji_events_outlined,
|
||||||
|
size: 48,
|
||||||
|
color: Colors.grey,
|
||||||
|
),
|
||||||
const SizedBox(height: 8),
|
const SizedBox(height: 8),
|
||||||
const Text(
|
const Text(
|
||||||
'No tournaments found',
|
'No tournaments found',
|
||||||
@@ -111,7 +115,8 @@ class _TournamentCard extends StatelessWidget {
|
|||||||
Navigator.push(
|
Navigator.push(
|
||||||
context,
|
context,
|
||||||
MaterialPageRoute(
|
MaterialPageRoute(
|
||||||
builder: (context) => TournamentDetailPage(tournament: tournament),
|
builder: (context) =>
|
||||||
|
TournamentDetailPage(tournament: tournament),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
@@ -149,15 +154,15 @@ class _TournamentCard extends StatelessWidget {
|
|||||||
Row(
|
Row(
|
||||||
children: [
|
children: [
|
||||||
Icon(
|
Icon(
|
||||||
tournament.isRegistrationOpen
|
tournament.isRegistrationOpen
|
||||||
? Icons.check_circle
|
? Icons.check_circle
|
||||||
: Icons.cancel,
|
: Icons.cancel,
|
||||||
size: 18,
|
size: 18,
|
||||||
),
|
),
|
||||||
const SizedBox(width: 4),
|
const SizedBox(width: 4),
|
||||||
Text(
|
Text(
|
||||||
tournament.isRegistrationOpen
|
tournament.isRegistrationOpen
|
||||||
? 'Registration Open'
|
? 'Registration Open'
|
||||||
: 'Registration Closed',
|
: 'Registration Closed',
|
||||||
style: const TextStyle(fontSize: 14),
|
style: const TextStyle(fontSize: 14),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user