showSecondaryButton method

Widget showSecondaryButton()

Displays the secondary button for email login.

Implementation

Widget showSecondaryButton() {
  return MaterialButton(
      onPressed: () {
        widget.emailCallBack!();
      },
      child: RichText(
        text: const TextSpan(
          // Note: Styles for TextSpans must be explicitly defined.
          // Child text spans will inherit styles from parent
          style: TextStyle(
            fontSize: 14.0,
            color: Colors.black,
          ),
          children: <TextSpan>[
            TextSpan(
              text: 'Have an email account?',
            ),
            TextSpan(
                text: ' Sign in',
                style: TextStyle(
                    fontWeight: FontWeight.bold,
                    color: Colors.deepPurpleAccent)),
          ],
        ),
      ));
}