【发布时间】:2018-12-24 18:47:14
【问题描述】:
列表> _userAccounts;
结果:
_CurrentUserAccounts: [
[Current Account, 10.06, United States Dollar USD],
[Demand Deposit, 55.22, British Pound GBP],
[Current Account, 250, Euro EUR],
[Deposit Account, 0, Euro EUR]
]
格式: [AccountName, CurrentBalance, CurrencyName],
我需要使用此信息 (List>) 来构建 ListTile。 这仅适用于一位用户。有些用户可能有 1 个帐户,有些用户可能有超过 10 个帐户。
显示这些数据的最佳做法是什么?我打算使用 ListTile 所以,如果用户选择 ListTile 以便他们可以获取详细信息 某个帐户。
那么,如何通过 FutureBuilder 使用 List 数据构建 ListTile?
【问题讨论】: