【发布时间】:2021-01-15 03:31:22
【问题描述】:
我创建了一个非静态列表。使用按钮,您可以在此列表中添加和删除元素。现在我想在两个屏幕上显示这个列表。在一个屏幕上我想使用 ListView,在另一个屏幕上使用 StackCard.builder。我的目标是一次只有一个列表 - 如果它在一个屏幕中更改,它应该在另一个屏幕中自动更改。
现在我的问题是:如何在另一个班级中使用我在一个班级中创建的列表?
我会很高兴得到答案,提前感谢所有关注我问题的人!
Here is the Code for the Screen with the List
Here is the second screen, where I try to show the List with the StackCard.builder
【问题讨论】:
标签: list class flutter dart clone