問題タブ [bloc]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
dart - Flutter: アイテムを変更してもリスト ビューが更新されない
BloC アーキテクチャ パターンを使用して「todo」フラッター アプリを開発しています。
私の「ホーム」UI は todo リストを表示し、ユーザーは項目のボタンをクリックしてステータスを「todo」から「完了」に変更できます。
項目が完了したら、完了していない他の Todo とは異なる別の色で表示する必要があります。
しかし、「完了」ボタンをクリックしても、リスト ビューが更新されません。
以下は私のUIコードです:
そして、ここに私のBloCクラスがあります: