【问题标题】:How to find the resource id for a textfield in Flutter?如何在 Flutter 中查找文本字段的资源 ID?
【发布时间】:2021-09-13 13:25:27
【问题描述】:

我想为 Google Play 中的发布前测试报告注册测试帐户凭据。除了用户名和密码,我还需要提供资源 ID。

我想知道如何获取 Flutter 项目中的资源 ID 以将其添加到发布前报告中。

Google Play Console screenshot

感谢您的帮助!

【问题讨论】:

  • 嗨,Sandra,你找到解决办法了吗?
  • 不,很遗憾没有

标签: flutter app-store google-play-console resource-id prelaunch


【解决方案1】:

尝试使用小部件键。示例:

TextFormField(
  key: const Key('username'),
  controller: controller,
  decoration: InputDecoration(
    hintText: label,
    suffixIcon: suffixIcon,
    filled: true,
    errorStyle: TextStyle(
      color: Colors.red[400],
      fontWeight: FontWeight.bold,
      fontSize: 13,
    ),
  ),
),

您还可以在 Firebase 测试实验室中进行测试,以确认它是否有效,然后再在 goog 中实际提交您的应用

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-09-13
    • 2018-01-26
    • 1970-01-01
    • 1970-01-01
    • 2020-03-29
    • 2019-06-16
    • 1970-01-01
    • 2020-05-20
    相关资源
    最近更新 更多