【问题标题】:How can I change the name and the logo of google_sign_in with flutter?如何使用颤振更改 google_sign_in 的名称和徽标?
【发布时间】:2021-12-09 18:10:12
【问题描述】:

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

图片:

【问题讨论】:

标签: flutter dart firebase-authentication google-signin googlesigninapi


【解决方案1】:

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

在 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

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

flutter_launcher_icons 

【讨论】:

    猜你喜欢
    • 2022-01-20
    • 2019-01-03
    • 1970-01-01
    • 2020-08-15
    • 2021-06-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多