tentative de firebase
This commit is contained in:
53
lib/models/home_models.dart
Normal file
53
lib/models/home_models.dart
Normal file
@@ -0,0 +1,53 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class SportStat {
|
||||
final String title;
|
||||
final String playerName;
|
||||
final String statValue;
|
||||
final String statLabel;
|
||||
final Color color;
|
||||
final IconData icon;
|
||||
final bool isHighlighted;
|
||||
|
||||
const SportStat({
|
||||
required this.title,
|
||||
required this.playerName,
|
||||
required this.statValue,
|
||||
required this.statLabel,
|
||||
required this.color,
|
||||
required this.icon,
|
||||
this.isHighlighted = false,
|
||||
});
|
||||
}
|
||||
|
||||
class HomeData {
|
||||
static List<SportStat> get sportStats => [
|
||||
SportStat(
|
||||
title: 'Mais Pontos',
|
||||
playerName: 'Michael Jordan',
|
||||
statValue: '34.5',
|
||||
statLabel: 'PPG',
|
||||
color: Colors.blue[800]!,
|
||||
icon: Icons.sports_basketball,
|
||||
isHighlighted: true,
|
||||
),
|
||||
SportStat(
|
||||
title: 'Mais Assistências',
|
||||
playerName: 'Magic Johnson',
|
||||
statValue: '12.8',
|
||||
statLabel: 'APG',
|
||||
color: Colors.green[800]!,
|
||||
icon: Icons.sports_basketball,
|
||||
isHighlighted: false,
|
||||
),
|
||||
SportStat(
|
||||
title: 'Mais Rebotes',
|
||||
playerName: 'Dennis Rodman',
|
||||
statValue: '15.3',
|
||||
statLabel: 'RPG',
|
||||
color: Colors.purple[800]!,
|
||||
icon: Icons.sports_basketball,
|
||||
isHighlighted: false,
|
||||
),
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user