eliminar token y solicitud screen cambio de statefull a stateless
This commit is contained in:
@@ -301,7 +301,7 @@ class _ProfileScreenState extends State<ProfileScreen> {
|
||||
'Inicie sesión para asegurarnos de que seas tú .',
|
||||
snackPosition: SnackPosition.BOTTOM,
|
||||
);
|
||||
AuthenticationRepository.instance.logout();
|
||||
AuthenticationRepository.instance.logout(uid!);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -238,7 +238,7 @@ class _ProfileWebScreenState extends State<ProfileWebScreen> {
|
||||
'Inicie sesión para asegurarnos de que seas tú .',
|
||||
snackPosition: SnackPosition.BOTTOM,
|
||||
);
|
||||
AuthenticationRepository.instance.logout();
|
||||
AuthenticationRepository.instance.logout(uid!);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,29 +8,11 @@ import 'package:prosappco/src/models/event_model.dart';
|
||||
import 'package:prosappco/src/models/scores_model.dart';
|
||||
import 'package:prosappco/src/screens/cita.dart';
|
||||
|
||||
// class name extends StatelessWidget {
|
||||
// const name({super.key});
|
||||
|
||||
// @override
|
||||
// Widget build(BuildContext context) {
|
||||
// return Container();
|
||||
// }
|
||||
// }
|
||||
class SolicitudScreen extends StatefulWidget {
|
||||
class SolicitudScreen extends StatelessWidget {
|
||||
SolicitudScreen({super.key});
|
||||
|
||||
@override
|
||||
State<SolicitudScreen> createState() => _SolicitudScreenState();
|
||||
}
|
||||
|
||||
class _SolicitudScreenState extends State<SolicitudScreen> {
|
||||
DateTime today = DateTime.now();
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return SafeArea(
|
||||
|
||||
Reference in New Issue
Block a user