Image color blend mode (#9486)

This commit is contained in:
Hans Muller
2017-04-19 17:46:00 -07:00
committed by GitHub
parent da7867be0e
commit 92e40b5c45
5 changed files with 78 additions and 12 deletions

View File

@@ -33,12 +33,11 @@ class SectionCard extends StatelessWidget {
],
),
),
child: new Opacity(
opacity: 0.075,
child: new Image.asset(
section.backgroundAsset,
fit: BoxFit.cover,
),
child: new Image.asset(
section.backgroundAsset,
color: const Color.fromRGBO(255, 255, 255, 0.075),
colorBlendMode: BlendMode.modulate,
fit: BoxFit.cover,
),
),
);