Merge pull request #29 from kenzieschmoll/optimizations
Use GradientContainer to optimize raster performance
This commit is contained in:
commit
d5f9da01b4
@ -112,7 +112,7 @@ class _CollapsingPullQuoteImage extends StatelessWidget {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
Stack _buildImage(double collapseAmt) {
|
Widget _buildImage(double collapseAmt) {
|
||||||
return Stack(
|
return Stack(
|
||||||
fit: StackFit.expand,
|
fit: StackFit.expand,
|
||||||
children: [
|
children: [
|
||||||
@ -124,16 +124,13 @@ class _CollapsingPullQuoteImage extends StatelessWidget {
|
|||||||
opacity: AlwaysStoppedAnimation(1 - collapseAmt * .7),
|
opacity: AlwaysStoppedAnimation(1 - collapseAmt * .7),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
BlendMask(
|
GradientContainer(
|
||||||
blendModes: const [BlendMode.colorBurn],
|
[
|
||||||
opacity: .9,
|
Color(0xFFBEABA1).withOpacity(1),
|
||||||
child: VtGradient(
|
Color(0xFFA6958C).withOpacity(1),
|
||||||
[
|
],
|
||||||
Color(0xFFBEABA1).withOpacity(1),
|
const [0.0, 1.0],
|
||||||
Color(0xFFA6958C).withOpacity(1),
|
blendMode: BlendMode.colorBurn,
|
||||||
],
|
|
||||||
const [0, 1],
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user