{"action":"created","issue":{"url":"https://api.github.com/repos/flutter/flutter/issues/4565","repository_url":"https://api.github.com/repos/flutter/flutter","labels_url":"https://api.github.com/repos/flutter/flutter/issues/4565/labels{/name}","comments_url":"https://api.github.com/repos/flutter/flutter/issues/4565/comments","events_url":"https://api.github.com/repos/flutter/flutter/issues/4565/events","html_url":"https://github.com/flutter/flutter/issues/4565","id":160309987,"number":4565,"title":"DrawerHeader content ignores Container constraints","user":{"login":"DaveShuckerow","id":14947366,"avatar_url":"https://avatars.githubusercontent.com/u/14947366?v=3","gravatar_id":"","url":"https://api.github.com/users/DaveShuckerow","html_url":"https://github.com/DaveShuckerow","followers_url":"https://api.github.com/users/DaveShuckerow/followers","following_url":"https://api.github.com/users/DaveShuckerow/following{/other_user}","gists_url":"https://api.github.com/users/DaveShuckerow/gists{/gist_id}","starred_url":"https://api.github.com/users/DaveShuckerow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DaveShuckerow/subscriptions","organizations_url":"https://api.github.com/users/DaveShuckerow/orgs","repos_url":"https://api.github.com/users/DaveShuckerow/repos","events_url":"https://api.github.com/users/DaveShuckerow/events{/privacy}","received_events_url":"https://api.github.com/users/DaveShuckerow/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-06-14T23:47:45Z","updated_at":"2016-06-15T02:39:09Z","closed_at":null,"body":"I created a Container in a DrawerHeader as follows:\r\n```\r\n      new DrawerHeader(\r\n          background: new Material(color: theme.primaryColor),\r\n              child: new Container(\r\n                  constraints: const BoxConstraints.expand(height: 48.0),\r\n      ...\r\n```\r\n\r\nHowever, the constraints on height are ignored unless I put the Container inside of a Center:\r\n```\r\n      new DrawerHeader(\r\n          background: new Material(color: theme.primaryColor),\r\n          content: new Center(\r\n              widthFactor: 1.0,\r\n              child: new Container(\r\n                  constraints: const BoxConstraints.expand(height: 48.0),\r\n```\r\n\r\nIs this happening because DrawerHeader expects its entire size to be filled by its child widget?  If so, is there a way to make this more explicit or to respect the constraints imposed on Container?"},"comment":{"url":"https://api.github.com/repos/flutter/flutter/issues/comments/226073095","html_url":"https://github.com/flutter/flutter/issues/4565#issuecomment-226073095","issue_url":"https://api.github.com/repos/flutter/flutter/issues/4565","id":226073095,"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-06-15T02:39:09Z","updated_at":"2016-06-15T02:39:09Z","body":"If you call debugDumpRenderTree() you should be able to see if maybe the drawer header or one of its widgets is setting a tight constraint that's overriding the height constraint you're giving."}}
{"actor":{"display_login":"Hixie"}}