搜尋套件、儲存庫與 APP 分類

GitHub 儲存庫Aksoyhlc/github_signin_aksoyhlc

github_signin_aksoyhlc

此套件旨在讓 Flutter 開發者更容易在其應用程式中加入 GitHub 登入/註冊功能。使用官方 GitHub OAuth API。

github_signin_aksoyhlc 專案封面
星標
1
分支
3
最近推送(UTC)
2025年9月7日
專案狀態
未封存

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。

Getting Started

Add package dependency

github_signin_aksoyhlc: any  

Example 1

	var params = GithubParamsModel(  
		clientId: 'xxxxxx',  
		clientSecret: 'yyyyyy',  
		callbackUrl: 'http://example.com',  
		scopes: 'read:user,user:email',  
	);  
	  
	GithubSignInResponse result = await GithubSignIn.signIn(context, params: params);

    	if (result.status != ResultStatus.success) {  
		// handle error
		print(result.message);
	} else {
		///TODO: use result  
	}  

Example 2

	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),
		)
	)
Ökkeş Aksoy GitHub avatar
GitHub 作者

Ökkeş Aksoy ↗

AksoyhlcTurkey官方網站 ↗
語言DartSwiftHTMLKotlinObjective-C

此儲存庫發佈的套件

使用的依賴

依賴清單 5 項

如何選擇適合專案的儲存庫?

先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。

  1. 透過儲存庫名稱、作者或描述搜尋,再依技術分類縮小範圍。
  2. 綜合星標、分支與最近推送比較專案;星標反映社群關注,不保證品質。
  3. 使用前在 GitHub 確認 README、授權條款與 Issues。

來源與維護

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗