autentificacion por celular

This commit is contained in:
Juan Felipe Duarte
2023-03-30 10:02:21 -05:00
parent b80c99469c
commit f2f35d3966
13 changed files with 193 additions and 158 deletions
+29
View File
@@ -1,4 +1,5 @@
import 'package:flutter/material.dart';
import 'package:prosappco/src/authentication/authentication_repository.dart';
class WelcomeScreen extends StatefulWidget {
const WelcomeScreen({super.key});
@@ -34,6 +35,34 @@ class _WelcomeScreenState extends State<WelcomeScreen> {
height: 100,
),
),
Container(
child: Padding(
padding: const EdgeInsets.all(10),
child: Align(
alignment: Alignment.topRight,
child: ElevatedButton(
onPressed: () {
AuthenticationRepository.instance.logout();
},
child: Text(
'Cerrar Sesión',
style: TextStyle(
color: Colors.white,
fontWeight: FontWeight.bold,
fontSize: 15,
),
),
style: ElevatedButton.styleFrom(
primary: Color(0xFF2BA4EC),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(50),
),
elevation: 0,
minimumSize: Size(150, 40),
),
)),
),
),
Container(
padding: const EdgeInsets.symmetric(horizontal: 0, vertical: 20),
margin: const EdgeInsets.only(top: 170),