2021-08-23 04:01:52 +00:00
|
|
|
ui
|
2021-08-22 00:47:09 +00:00
|
|
|
gtTweetsFor: aView
|
|
|
|
<gtView>
|
|
|
|
^ aView explicit
|
|
|
|
title: 'Tweets';
|
|
|
|
stencil: [
|
|
|
|
| container imageContainer |
|
|
|
|
container := BlElement new
|
|
|
|
layout: BlFlowLayout new;
|
|
|
|
constraintsDo: [ :c |
|
2021-09-01 02:41:52 +00:00
|
|
|
c vertical fitContent.
|
2021-08-22 00:47:09 +00:00
|
|
|
c horizontal matchParent ];
|
|
|
|
padding: (BlInsets all: 10).
|
|
|
|
self tweets do: [ :each |
|
|
|
|
imageContainer := BlLazyElement new
|
|
|
|
withGlamorousPreview;
|
2021-08-25 20:35:36 +00:00
|
|
|
aptitude: BrShadowAptitude new;
|
|
|
|
background: Color white;
|
|
|
|
margin: (BlInsets all: 10);
|
2021-08-22 00:47:09 +00:00
|
|
|
constraintsDo: [ :c |
|
2021-08-27 21:35:30 +00:00
|
|
|
c vertical exact: 145.
|
2021-08-23 04:01:52 +00:00
|
|
|
c horizontal matchParent ];
|
2021-08-27 21:35:30 +00:00
|
|
|
elementBuilder: [ each asCardElement margin: (BlInsets all: 20) ].
|
2021-08-22 00:47:09 +00:00
|
|
|
container addChild: imageContainer].
|
|
|
|
container asScrollableElement ]
|