如何用 flutter 更改 google_sign_in 的名称和徽标?

How can I change the name and the logo of google_sign_in with flutter?

我正在使用 google_sign_in + firebase 通过我的 flutter 应用程序中的 google 帐户对用户进行身份验证。 我不希望我的用户看到如下图所示的面板: (它有 flutter 标志和我的项目名称!但我想用应用标志和自定义名称代替。)

图片:

根据您问题中提供的图片,无法手动或通过上述屏幕截图中的代码编辑应用程序的图标和名称,唯一的方法是更改​​整个项目图标和项目名称,即指导如下

更改项目名称 Android

打开AndroidManifest.xml(位于android/app/src/main)

<application
      android:label="App Name" ...> // Your app name here

更改项目名称 iOS

打开info.plist(位于ios/Runner)

<key>CFBundleName</key>
<string>App Name</string> // Your app name here

别忘了运行

flutter clean

要更改项目图标,请使用以下 flutter 插件或观看此 youtube video

flutter_launcher_icons