Skip to content

Instantly share code, notes, and snippets.

@Sunbreak
Last active January 8, 2020 07:34
Show Gist options
  • Save Sunbreak/ff3d8e1cf7532401cd31a9351ca12e79 to your computer and use it in GitHub Desktop.
Save Sunbreak/ff3d8e1cf7532401cd31a9351ca12e79 to your computer and use it in GitHub Desktop.
`BlendMode` for `Image` works on Android/iOS, not Web

ErrorReport

Target Platform: Web

Target OS version/browser: Chrome

Devices: Chrome

BlendMode for Image works on Android/iOS, not Web

flutter/flutter#48383

import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: Center(
child: Image.network(
'https://raw.githubusercontent.com/flutter/flutter/master/dev/docs/favicon.ico',
color: Colors.amber,
colorBlendMode: BlendMode.dstOver,
),
),
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment