2024-06-10 12:43:54 -05:00
|
|
|
import 'package:easy_localization/easy_localization.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
2025-12-02 13:10:35 -06:00
|
|
|
class LoginButton extends StatelessWidget {
|
|
|
|
|
final VoidCallback onPressed;
|
2024-06-10 12:43:54 -05:00
|
|
|
|
2025-07-29 00:34:03 +05:30
|
|
|
const LoginButton({super.key, required this.onPressed});
|
2024-06-10 12:43:54 -05:00
|
|
|
|
|
|
|
|
@override
|
2025-12-02 13:10:35 -06:00
|
|
|
Widget build(BuildContext context) {
|
2024-06-10 12:43:54 -05:00
|
|
|
return ElevatedButton.icon(
|
2025-07-29 00:34:03 +05:30
|
|
|
style: ElevatedButton.styleFrom(padding: const EdgeInsets.symmetric(vertical: 12)),
|
2024-06-10 12:43:54 -05:00
|
|
|
onPressed: onPressed,
|
|
|
|
|
icon: const Icon(Icons.login_rounded),
|
2025-07-29 00:34:03 +05:30
|
|
|
label: const Text("login", style: TextStyle(fontSize: 14, fontWeight: FontWeight.bold)).tr(),
|
2024-06-10 12:43:54 -05:00
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|