Settings finalizadas
This commit is contained in:
@@ -33,7 +33,7 @@ class _EntrarSheetState extends State<EntrarSheet> {
|
||||
|
||||
// Show success message above the sheet
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
const SnackBar(
|
||||
SnackBar(
|
||||
content: Text(AppStrings.loginSuccess),
|
||||
backgroundColor: Colors.green,
|
||||
),
|
||||
@@ -66,7 +66,7 @@ class _EntrarSheetState extends State<EntrarSheet> {
|
||||
final email = _emailController.text.trim();
|
||||
if (email.isEmpty) {
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
const SnackBar(
|
||||
SnackBar(
|
||||
content: Text(AppStrings.validatorEmailEmpty),
|
||||
backgroundColor: Colors.orange,
|
||||
),
|
||||
@@ -82,7 +82,7 @@ class _EntrarSheetState extends State<EntrarSheet> {
|
||||
|
||||
// Show success message above the sheet
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
const SnackBar(
|
||||
SnackBar(
|
||||
content: Text(AppStrings.resetPasswordEmailSent),
|
||||
backgroundColor: Colors.green,
|
||||
),
|
||||
@@ -115,7 +115,7 @@ class _EntrarSheetState extends State<EntrarSheet> {
|
||||
minChildSize: 0.4, // 40% minimum
|
||||
maxChildSize: 0.9, // 90% maximum
|
||||
snap: true, // Enable snap points
|
||||
snapSizes: [0.6, 0.9], // Snap to 60% or 90%
|
||||
snapSizes: const [0.6, 0.9], // Snap to 60% or 90%
|
||||
builder: (context, scrollController) {
|
||||
return Container(
|
||||
decoration: BoxDecoration(
|
||||
@@ -151,9 +151,9 @@ class _EntrarSheetState extends State<EntrarSheet> {
|
||||
const SizedBox(height: 24),
|
||||
|
||||
// Title
|
||||
const Text(
|
||||
Text(
|
||||
AppStrings.loginTitle,
|
||||
style: TextStyle(
|
||||
style: const TextStyle(
|
||||
fontSize: 28,
|
||||
fontWeight: FontWeight.bold,
|
||||
color: Colors.white,
|
||||
@@ -162,9 +162,9 @@ class _EntrarSheetState extends State<EntrarSheet> {
|
||||
const SizedBox(height: 32),
|
||||
|
||||
// Email field
|
||||
const Text(
|
||||
Text(
|
||||
AppStrings.labelEmail,
|
||||
style: TextStyle(fontSize: 16, color: Colors.white70),
|
||||
style: const TextStyle(fontSize: 16, color: Colors.white70),
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
Form(
|
||||
@@ -196,9 +196,9 @@ class _EntrarSheetState extends State<EntrarSheet> {
|
||||
const SizedBox(height: 20),
|
||||
|
||||
// Password field
|
||||
const Text(
|
||||
Text(
|
||||
AppStrings.labelPassword,
|
||||
style: TextStyle(fontSize: 16, color: Colors.white70),
|
||||
style: const TextStyle(fontSize: 16, color: Colors.white70),
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
TextFormField(
|
||||
@@ -245,9 +245,9 @@ class _EntrarSheetState extends State<EntrarSheet> {
|
||||
? const CircularProgressIndicator(
|
||||
color: Colors.white,
|
||||
)
|
||||
: const Text(
|
||||
: Text(
|
||||
AppStrings.btnLogin,
|
||||
style: TextStyle(
|
||||
style: const TextStyle(
|
||||
fontSize: 18,
|
||||
fontWeight: FontWeight.w600,
|
||||
),
|
||||
@@ -260,9 +260,9 @@ class _EntrarSheetState extends State<EntrarSheet> {
|
||||
Center(
|
||||
child: TextButton(
|
||||
onPressed: _handlePasswordReset,
|
||||
child: const Text(
|
||||
child: Text(
|
||||
AppStrings.forgotPassword,
|
||||
style: TextStyle(color: Colors.white70, fontSize: 16),
|
||||
style: const TextStyle(color: Colors.white70, fontSize: 16),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user