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>
20 lines
560 B
Dart
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)));
|
|
}
|
|
}
|