buildAuthWidget method

  1. @override
Widget buildAuthWidget()
override

This can be used to show either the Auth Widget directly, or trigger the auth flow (e.g. popup)

Implementation

@override
Widget buildAuthWidget() => MaterialButton(
    onPressed: () {
      /// This is called to set that we are now signed in with this delegate
      locate<AuthenticationState>().setSignedIn(true, this);

      /// Pop the auth dialog
      navigator.pop();
    },
    child: Text("Click to sign in"));