我已经在我的应用程序中使用 firebase auth 实现了谷歌登录。我正在尝试使用已登录的 google 帐户实现 GmailAPI,但无法同时找到有关它们的任何信息。我正在关注 https://github.com/dart-lang/googleapis/blob/master/generated/googleapis/lib/gmail/v1.dart 并在代码中实现了这一点
final FirebaseAuth _auth = FirebaseAuth.instance;
final GoogleSignIn googleSignIn = GoogleSignIn(
scopes: [
"https://www.googleapis.com/auth/gmail.compose",
"https://www.googleapis.com/auth/gmail.insert",
"https://www.googleapis.com/auth/gmail.labels",
"https://www.googleapis.com/auth/gmail.metadata",
"https://www.googleapis.com/auth/gmail.modify",
"https://www.googleapis.com/auth/gmail.readonly",
"https://www.googleapis.com/auth/gmail.send",
"https://www.googleapis.com/auth/gmail.settings.basic",
"https://www.googleapis.com/auth/gmail.settings.sharing",
]
);
Run Code Online (Sandbox Code Playgroud)
在此之后用户是否需要身份验证,或者uid由此生成的是否足以对用户进行身份验证?到处都是带有 googleAPI 示例的在线用户,用户已在线进行身份验证,但我找不到任何带有google sign in.
floatingActionButton: FloatingActionButton(
onPressed: () {},
child: Icon(Icons.add),
backgroundColor: Colors.blueGrey[800],
),
Run Code Online (Sandbox Code Playgroud)
如何为浮动操作按钮设置自定义不透明度/透明度值?是否有定义透明度百分比的属性?