{"action":"created","issue":{"url":"https://api.github.com/repos/flutter/flutter/issues/17124","repository_url":"https://api.github.com/repos/flutter/flutter","labels_url":"https://api.github.com/repos/flutter/flutter/issues/17124/labels{/name}","comments_url":"https://api.github.com/repos/flutter/flutter/issues/17124/comments","events_url":"https://api.github.com/repos/flutter/flutter/issues/17124/events","html_url":"https://github.com/flutter/flutter/issues/17124","id":318998529,"node_id":"MDU6SXNzdWUzMTg5OTg1Mjk=","number":17124,"title":"Using an AssetImage in a BoxDecoration uses wrong scale","user":{"login":"tingyouw","id":38863203,"node_id":"MDQ6VXNlcjM4ODYzMjAz","avatar_url":"https://avatars1.githubusercontent.com/u/38863203?v=4","gravatar_id":"","url":"https://api.github.com/users/tingyouw","html_url":"https://github.com/tingyouw","followers_url":"https://api.github.com/users/tingyouw/followers","following_url":"https://api.github.com/users/tingyouw/following{/other_user}","gists_url":"https://api.github.com/users/tingyouw/gists{/gist_id}","starred_url":"https://api.github.com/users/tingyouw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tingyouw/subscriptions","organizations_url":"https://api.github.com/users/tingyouw/orgs","repos_url":"https://api.github.com/users/tingyouw/repos","events_url":"https://api.github.com/users/tingyouw/events{/privacy}","received_events_url":"https://api.github.com/users/tingyouw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-04-30T19:02:14Z","updated_at":"2018-09-05T20:47:31Z","closed_at":null,"author_association":"NONE","body":"## Steps to Reproduce\r\n\r\nI am attempting to use an asset image to repeat itself as the background of a container, however, as soon as I use the image in a BoxDecoration, the scale is wrong. It seems to pick the right asset from the N.Nx/ directory, but then shows it at that scale (as opposed to scaling it down to fit the dpi).\r\n\r\nWhen just using a direction Image.asset or Image(...) the right scale is used.\r\n\r\nExample snippet:\r\n\r\n```\r\nnew Stack(\r\n    children: [\r\n      new Image(\r\n        image: new AssetImage('assets/my.png'),\r\n        fit: BoxFit.scaleDown,\r\n      ),\r\n      new Container(\r\n        constraints: new BoxConstraints.expand(),\r\n        decoration: new BoxDecoration(\r\n           image: new DecorationImage( \r\n             image: new AssetImage('assets/my.png'),\r\n             repeat: ImageRepeat.repeat,\r\n           ),\r\n        ),\r\n      ),\r\n    ],\r\n),\r\n```"},"comment":{"url":"https://api.github.com/repos/flutter/flutter/issues/comments/418875989","html_url":"https://github.com/flutter/flutter/issues/17124#issuecomment-418875989","issue_url":"https://api.github.com/repos/flutter/flutter/issues/17124","id":418875989,"node_id":"MDEyOklzc3VlQ29tbWVudDQxODg3NTk4OQ==","user":{"login":"mehmetf","id":6687929,"node_id":"MDQ6VXNlcjY2ODc5Mjk=","avatar_url":"https://avatars3.githubusercontent.com/u/6687929?v=4","gravatar_id":"","url":"https://api.github.com/users/mehmetf","html_url":"https://github.com/mehmetf","followers_url":"https://api.github.com/users/mehmetf/followers","following_url":"https://api.github.com/users/mehmetf/following{/other_user}","gists_url":"https://api.github.com/users/mehmetf/gists{/gist_id}","starred_url":"https://api.github.com/users/mehmetf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mehmetf/subscriptions","organizations_url":"https://api.github.com/users/mehmetf/orgs","repos_url":"https://api.github.com/users/mehmetf/repos","events_url":"https://api.github.com/users/mehmetf/events{/privacy}","received_events_url":"https://api.github.com/users/mehmetf/received_events","type":"User","site_admin":false},"created_at":"2018-09-05T20:47:31Z","updated_at":"2018-09-05T20:47:31Z","author_association":"CONTRIBUTOR","body":"@zoechi This is still an issue and it is affecting a Google customer who are on a fairly recent version of Flutter at all times."}}
{"actor":{"display_login":"mehmetf"}}