Reduce SaveLayer count of advanced blends.
This commit is contained in:
parent
c7f00c8d32
commit
6523ec320b
@ -25,10 +25,8 @@ class _CollapsingPullQuoteImage extends StatelessWidget {
|
|||||||
if (top) offsetY *= -1; // flip?
|
if (top) offsetY *= -1; // flip?
|
||||||
return Transform.translate(
|
return Transform.translate(
|
||||||
offset: Offset(0, offsetY),
|
offset: Offset(0, offsetY),
|
||||||
child: BlendMask(
|
|
||||||
blendModes: const [BlendMode.colorBurn],
|
|
||||||
child:Text(value, style: quoteStyle, textAlign: TextAlign.center),
|
child:Text(value, style: quoteStyle, textAlign: TextAlign.center),
|
||||||
));
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return ValueListenableBuilder<double>(
|
return ValueListenableBuilder<double>(
|
||||||
@ -88,6 +86,8 @@ class _CollapsingPullQuoteImage extends StatelessWidget {
|
|||||||
Positioned.fill(
|
Positioned.fill(
|
||||||
child: Container(
|
child: Container(
|
||||||
margin: const EdgeInsets.symmetric(horizontal: 24),
|
margin: const EdgeInsets.symmetric(horizontal: 24),
|
||||||
|
child: BlendMask(
|
||||||
|
blendModes: const [BlendMode.colorBurn],
|
||||||
child: StaticTextScale(
|
child: StaticTextScale(
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
@ -106,6 +106,7 @@ class _CollapsingPullQuoteImage extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user