github_signin_aksoyhlc 0.0.3 copy "github_signin_aksoyhlc: ^0.0.3" to clipboard
github_signin_aksoyhlc: ^0.0.3 copied to clipboard

This package is made to make it easier for Flutter developers to add Github login/register to their applications. Official Github OAuth API used.

Getting Started #

Add package dependency

github_signin_aksoyhlc: any  

Example #

	var params = GithubParamsModel(  
		clientId: 'xxxxxx',  
		clientSecret: 'yyyyyy',  
		callbackUrl: 'http://example.com',  
		scopes: 'read:user,user:email',  
	);  
	  
	dynamic result = Navigator.push(context, MaterialPageRoute(builder: (context) => GithubSignIn(params: params)));  
	  
	if (result == null) {  
		// user cancelled the sign in or error occurred
	}  
	  
	var data = result as GithubSignInResponse;  
	  
	if (data.status != ResultStatus.success) {  
		print(result.message);
	}  
	  
	///TODO: use response data  

Custom AppBar #

	GithubSignIn(
      params: params,
      appBar: PreferredSize(
        child: AppBar(
          title: Text("Github Sign In"),
        ),
        preferredSize: const Size.fromHeight(56),
      ),
    )
2
likes
150
pub points
41%
popularity

Publisher

verified publisheraksoyhlc.net

This package is made to make it easier for Flutter developers to add Github login/register to their applications. Official Github OAuth API used.

Repository (GitHub)
View/report issues

Documentation

Documentation
API reference

License

MIT (license)

Dependencies

flutter, flutter_inappwebview, http

More

Packages that depend on github_signin_aksoyhlc