[過去ログ] Flutterやろうよ!!! 2 (1002レス)
前次1-
抽出解除 必死チェッカー(本家) (べ) 自ID レス栞 あぼーん

このスレッドは過去ログ倉庫に格納されています。
次スレ検索 歴削→次スレ 栞削→次スレ 過去ログメニュー
103
(1): デフォルトの名無しさん (ワッチョイ d790-XJ0Q) [sage] 2021/02/09(火)22:30 ID:iPD7ZJPG0(1/4)
https://api.flutter.dev/flutter/widgets/ListView-class.html
のところに書いてあるでしょ

Child elements' lifecycle
Creation
While laying out the list, visible children's elements, states and render objects will be created lazily based on existing widgets (such as when using the default constructor) or lazily provided ones (such as when using the ListView.builder constructor).

リストをレイアウトするとき、見える子のElement,State,RenderObjectsがLazyに作成される
104
(1): デフォルトの名無しさん (ワッチョイ d790-XJ0Q) [sage] 2021/02/09(火)22:30 ID:iPD7ZJPG0(2/4)
Destruction
When a child is scrolled out of view, the associated element subtree, states and render objects are destroyed. A new child at the same position in the list will be lazily recreated along with new elements,
states and render objects when it is scrolled back.

子がビューからスクロールアウトしたら、関連するElement,State,RenderObjectsは全部破棄される
105
(1): デフォルトの名無しさん (ワッチョイ d790-XJ0Q) [sage] 2021/02/09(火)22:35 ID:iPD7ZJPG0(3/4)
で、その後に
Destruction mitigation
で続きがあって、ListView.BuilderのaddAutomaticKeepAlivesがtrueだと保持されるの??
ここら辺はまだよく知らねw
106: デフォルトの名無しさん (ワッチョイ d790-XJ0Q) [sage] 2021/02/09(火)23:28 ID:iPD7ZJPG0(4/4)
だから、結局、基本、見えてる部分+前後の多少のマージンの部分だけが保持されてるでOKじゃね??
見えてない部分は保持されてない

巨大なリストでも問題なし

でこの話は終了

異論は認めない
前次1-
スレ情報 赤レス抽出 画像レス抽出 歴の未読スレ AAサムネイル

ぬこの手 ぬこTOP 0.044s