08.1376 Migration: Tweets previews problems deprecating BlLazyElement by BrAsyncWidget.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2022-04-10 12:37:25 -05:00
parent 94ce588376
commit 2c2ee3b132

View File

@ -12,5 +12,14 @@ gtTweetsFor: aView
c horizontal matchParent ];
padding: (BlInsets all: 10).
self tweets do: [ :each |
container addChild: each asCardElement ].
imageContainer := BrAsyncWidget new
aptitude: BrShadowAptitude new;
background: Color white;
margin: (BlInsets all: 10);
constraintsDo: [ :c |
c vertical exact: 275.
c horizontal exact: 480 ];
stencil: [ each asCardElement margin: (BlInsets all: 15) ].
container addChild: imageContainer
].
container asScrollableElement ]