{"action":"created","issue":{"url":"https://api.github.com/repos/flutter/flutter/issues/4630","repository_url":"https://api.github.com/repos/flutter/flutter","labels_url":"https://api.github.com/repos/flutter/flutter/issues/4630/labels{/name}","comments_url":"https://api.github.com/repos/flutter/flutter/issues/4630/comments","events_url":"https://api.github.com/repos/flutter/flutter/issues/4630/events","html_url":"https://github.com/flutter/flutter/issues/4630","id":161267025,"number":4630,"title":"AppBarBehavior.scroll can yield unreadable status bar","user":{"login":"tvolkert","id":15253456,"avatar_url":"https://avatars.githubusercontent.com/u/15253456?v=3","gravatar_id":"","url":"https://api.github.com/users/tvolkert","html_url":"https://github.com/tvolkert","followers_url":"https://api.github.com/users/tvolkert/followers","following_url":"https://api.github.com/users/tvolkert/following{/other_user}","gists_url":"https://api.github.com/users/tvolkert/gists{/gist_id}","starred_url":"https://api.github.com/users/tvolkert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tvolkert/subscriptions","organizations_url":"https://api.github.com/users/tvolkert/orgs","repos_url":"https://api.github.com/users/tvolkert/repos","events_url":"https://api.github.com/users/tvolkert/events{/privacy}","received_events_url":"https://api.github.com/users/tvolkert/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/flutter/flutter/labels/affects:%20material%20design","name":"affects: material design","color":"E91E63"},{"url":"https://api.github.com/repos/flutter/flutter/labels/customer:%20gallery","name":"customer: gallery","color":"d4c5f9"},{"url":"https://api.github.com/repos/flutter/flutter/labels/%E2%8C%BA%E2%80%AC%20platform-ios","name":"⌺‬ platform-ios","color":"FCEAD2"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-20T18:51:19Z","updated_at":"2016-06-20T21:16:15Z","closed_at":null,"body":"On iOS, using `AppBarBehavior.scroll` can cause the status bar overlay to go from being painted over a dark background to over a light one (or vice versa).  Doing so without calling `SystemnChrome.setSystemUIOverlayStyle()` will mean that the status bar will be hard to see in one of the app bar states (either visible or scrolled off).\r\n\r\ne.g. in the Flutter Gallery's contacts demo:\r\n\r\n#### App Bar visible\r\n![scrolled-up](https://cloud.githubusercontent.com/assets/15253456/16206422/40e6bdba-36dd-11e6-9d8e-0073e8c16aa2.png)\r\n\r\n#### App Bar scrolled away\r\n![scrolled-down](https://cloud.githubusercontent.com/assets/15253456/16206430/47b6273e-36dd-11e6-82fb-a768b626e3ad.png)\r\n"},"comment":{"url":"https://api.github.com/repos/flutter/flutter/issues/comments/227272002","html_url":"https://github.com/flutter/flutter/issues/4630#issuecomment-227272002","issue_url":"https://api.github.com/repos/flutter/flutter/issues/4630","id":227272002,"user":{"login":"HansMuller","id":1377460,"avatar_url":"https://avatars.githubusercontent.com/u/1377460?v=3","gravatar_id":"","url":"https://api.github.com/users/HansMuller","html_url":"https://github.com/HansMuller","followers_url":"https://api.github.com/users/HansMuller/followers","following_url":"https://api.github.com/users/HansMuller/following{/other_user}","gists_url":"https://api.github.com/users/HansMuller/gists{/gist_id}","starred_url":"https://api.github.com/users/HansMuller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HansMuller/subscriptions","organizations_url":"https://api.github.com/users/HansMuller/orgs","repos_url":"https://api.github.com/users/HansMuller/repos","events_url":"https://api.github.com/users/HansMuller/events{/privacy}","received_events_url":"https://api.github.com/users/HansMuller/received_events","type":"User","site_admin":false},"created_at":"2016-06-20T21:16:15Z","updated_at":"2016-06-20T21:16:15Z","body":"The contacts demo already adds a shadow. The shadow doesn't help in this case because it's being added to the flexibleSpaceBar which fades out when the app bar get smaller than its toolbar.\r\n\r\nWe can't just make the shadow (the DecoratedBox with a gradient child, see contacts_demo.dart) the AppBar's parent because the Scaffold expects it's appBar to be an AppBar so that it can change its elevation and etc.\r\n\r\nWe could make the AppBar render the shadow itself with a flag for turning that on and off. Not super fluttery but probably the simplest tack.\r\n"}}
{"actor":{"display_login":"HansMuller"}}