import 'package:comwell_key_app/utils/l10n_utils.dart';
import 'package:flutter/material.dart';
class LoginButton extends StatelessWidget {
final VoidCallback onPressed;
const LoginButton({
required this.onPressed,
super.key,
});
@override
Widget build(BuildContext context) {
return Container(
margin: const EdgeInsets.symmetric(horizontal: 30),
child: ElevatedButton(
onPressed: onPressed,
style: ElevatedButton.styleFrom(
minimumSize: const Size(358, 52),
backgroundColor: Theme.of(context).colorScheme.surface,
textStyle: TextStyle(
color: Theme.of(context).colorScheme.onSurface,
fontSize: 16,
fontWeight: FontWeight.w600,
),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(30),
),
),
child: Text(context.strings.login_button),
),
);
}
}