Apply max width to editorial list content
This commit is contained in:
parent
f98cb93f23
commit
3721d75a8e
@ -81,7 +81,7 @@ class _WonderEditorialScreenState extends State<WonderEditorialScreen> {
|
||||
valueListenable: _scrollPos,
|
||||
builder: (_, value, __) {
|
||||
return Container(
|
||||
color: widget.data.type.bgColor.withOpacity(_scrollPos.value > 1000 ? 0 : 1),
|
||||
color: widget.data.type.bgColor.withOpacity(1),
|
||||
);
|
||||
},
|
||||
),
|
||||
@ -103,9 +103,13 @@ class _WonderEditorialScreenState extends State<WonderEditorialScreen> {
|
||||
),
|
||||
|
||||
/// Scrolling content - Includes an invisible gap at the top, and then scrolls over the illustration
|
||||
CustomScrollView(
|
||||
TopCenter(
|
||||
child: SizedBox(
|
||||
width: $styles.sizes.maxContentWidth,
|
||||
child: CustomScrollView(
|
||||
primary: false,
|
||||
controller: _scroller,
|
||||
scrollBehavior: ScrollConfiguration.of(context).copyWith(),
|
||||
cacheExtent: 1000,
|
||||
slivers: [
|
||||
/// Invisible padding at the top of the list, so the illustration shows through the btm
|
||||
@ -156,6 +160,8 @@ class _WonderEditorialScreenState extends State<WonderEditorialScreen> {
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
/// Home Btn
|
||||
AnimatedBuilder(
|
||||
|
Loading…
x
Reference in New Issue
Block a user