tentative de firebase
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class HomeController extends ChangeNotifier {
|
||||
// Se precisar de estado para a home screen
|
||||
int _selectedCardIndex = 0;
|
||||
|
||||
int get selectedCardIndex => _selectedCardIndex;
|
||||
|
||||
void selectCard(int index) {
|
||||
_selectedCardIndex = index;
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
// Métodos adicionais para lógica da home
|
||||
void navigateToDetails(String playerName) {
|
||||
print('Navegando para detalhes de $playerName');
|
||||
// Implementar navegação
|
||||
}
|
||||
|
||||
void refreshData() {
|
||||
print('Atualizando dados da home...');
|
||||
notifyListeners();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user