medora-provider/lib/widgets/primary_button.dart
DhanshCOSQ 66c3b2fb9c Patient registration complete with authentication flow fixed (#3)
Patient registration complete with authentication flow fixed

Co-authored-by: Benoy Bose <benoybose@gmail.com>
Co-authored-by: Jipson George <152465898+Jipson-cosq@users.noreply.github.com>
Reviewed-on: cosqnet/telemednet#3
Reviewed-by: Benoy Bose <benoybose@cosq.net>
Co-authored-by: DhanshCOSQ <dhanshas@cosq.net>
Co-committed-by: DhanshCOSQ <dhanshas@cosq.net>
2024-10-31 14:20:35 +00:00

20 lines
560 B
Dart

import 'package:flutter/material.dart';
class PrimaryButton extends StatelessWidget {
final String text;
final void Function()? onPressed;
final IconData? icon;
const PrimaryButton(
{super.key, required this.text, required this.onPressed, this.icon});
@override
Widget build(BuildContext context) {
return ElevatedButton(
style: ElevatedButton.styleFrom(backgroundColor: Colors.blue),
onPressed: onPressed,
child: Text(text,
style: TextStyle(color: Theme.of(context).colorScheme.onPrimary)));
}
}