これは、風景やpotraitと異なるデバイスの解像度のためにどのような作品であるを見て、背景を切り替えることができます。実行時にそのレイヤーを保存するには、不透明度を画像に直接設定することができます。異なる解像度で背景を提供していることを確認してください。 https://flutter.io/assets-and-images/
注:renderMessageListContentはフォアグラウンドのコンテンツです!
@override
Widget build(BuildContext context) => new Stack(children: <Widget>[
new Positioned.fill(
child: new Opacity(
opacity: 0.2,
child: new Image.asset(
'assets/chat_background.png',
repeat: ImageRepeat.repeat,
fit: BoxFit.none
),
)),
new Opacity(
opacity: 0.15,
child: new Container(color: Theme.of(context).primaryColor)),
renderMessageListContent
]);
私はこれをよく読んでくれてありがとう、ありがとう。この特定のケースをどのように解決するかをもう少し明示してください。 –