{"action":"created","issue":{"url":"https://api.github.com/repos/flutter/flutter/issues/3764","repository_url":"https://api.github.com/repos/flutter/flutter","labels_url":"https://api.github.com/repos/flutter/flutter/issues/3764/labels{/name}","comments_url":"https://api.github.com/repos/flutter/flutter/issues/3764/comments","events_url":"https://api.github.com/repos/flutter/flutter/issues/3764/events","html_url":"https://github.com/flutter/flutter/issues/3764","id":153358960,"number":3764,"title":"Determining which widgets to wrap in padding to acheive margins seems arbitrary","user":{"login":"drewwarren","id":85351,"avatar_url":"https://avatars.githubusercontent.com/u/85351?v=3","gravatar_id":"","url":"https://api.github.com/users/drewwarren","html_url":"https://github.com/drewwarren","followers_url":"https://api.github.com/users/drewwarren/followers","following_url":"https://api.github.com/users/drewwarren/following{/other_user}","gists_url":"https://api.github.com/users/drewwarren/gists{/gist_id}","starred_url":"https://api.github.com/users/drewwarren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drewwarren/subscriptions","organizations_url":"https://api.github.com/users/drewwarren/orgs","repos_url":"https://api.github.com/users/drewwarren/repos","events_url":"https://api.github.com/users/drewwarren/events{/privacy}","received_events_url":"https://api.github.com/users/drewwarren/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/flutter/flutter/labels/customer:%20fast","name":"customer: fast","color":"bfdadc"},{"url":"https://api.github.com/repos/flutter/flutter/labels/%E2%9A%A0%20clear%20documentation","name":"⚠ clear documentation","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-05-06T01:12:00Z","updated_at":"2016-05-13T07:19:59Z","closed_at":null,"body":"Let's say I want to have an icon and some text with 5.0 spacing between them.\r\n```\r\nnew Row(\r\n  children: [\r\n    new Icon(...),\r\n    new Padding(\r\n      padding: const EdgeInsets.only(left: 5.0),\r\n      child: new Text(\"Hello\")\r\n    )\r\n  ]\r\n)\r\n```\r\nEasy enough to achieve, but why did I wrap the Text in the padding? I could have just as easily wrapped the Icon in a padding right of 5.0. It feels very unnatural to me coming from a web development background to do this. I guess if it was HTML I would make a similar arbitrary choice in the CSS on which element to apply margin to, but at least that was abstracted away from my markup. Without having this abstraction layer I feel like I want a HorizontalSpacing(5.0) widget to put between the elements. I could easily write that widget (or use a Container) but I prefer using paradigms that are built into the framework. In fact before I learned about the Padding widget I was using an empty Container(width: 5.0) to achieve this spacing."},"comment":{"url":"https://api.github.com/repos/flutter/flutter/issues/comments/218969659","html_url":"https://github.com/flutter/flutter/issues/3764#issuecomment-218969659","issue_url":"https://api.github.com/repos/flutter/flutter/issues/3764","id":218969659,"user":{"login":"Hixie","id":551196,"avatar_url":"https://avatars.githubusercontent.com/u/551196?v=3","gravatar_id":"","url":"https://api.github.com/users/Hixie","html_url":"https://github.com/Hixie","followers_url":"https://api.github.com/users/Hixie/followers","following_url":"https://api.github.com/users/Hixie/following{/other_user}","gists_url":"https://api.github.com/users/Hixie/gists{/gist_id}","starred_url":"https://api.github.com/users/Hixie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hixie/subscriptions","organizations_url":"https://api.github.com/users/Hixie/orgs","repos_url":"https://api.github.com/users/Hixie/repos","events_url":"https://api.github.com/users/Hixie/events{/privacy}","received_events_url":"https://api.github.com/users/Hixie/received_events","type":"User","site_admin":false},"created_at":"2016-05-13T07:19:59Z","updated_at":"2016-05-13T07:19:59Z","body":"@eseidelGoogle All of drew's bugs will at a minimum warrant doc improvements."}}