{"action":"created","issue":{"url":"https://api.github.com/repos/flutter/flutter/issues/15569","repository_url":"https://api.github.com/repos/flutter/flutter","labels_url":"https://api.github.com/repos/flutter/flutter/issues/15569/labels{/name}","comments_url":"https://api.github.com/repos/flutter/flutter/issues/15569/comments","events_url":"https://api.github.com/repos/flutter/flutter/issues/15569/events","html_url":"https://github.com/flutter/flutter/issues/15569","id":305568748,"node_id":"MDU6SXNzdWUzMDU1Njg3NDg=","number":15569,"title":"Scroll-to-top feature on iOS is blocking touches","user":{"login":"vlidholt","id":1539812,"node_id":"MDQ6VXNlcjE1Mzk4MTI=","avatar_url":"https://avatars3.githubusercontent.com/u/1539812?v=4","gravatar_id":"","url":"https://api.github.com/users/vlidholt","html_url":"https://github.com/vlidholt","followers_url":"https://api.github.com/users/vlidholt/followers","following_url":"https://api.github.com/users/vlidholt/following{/other_user}","gists_url":"https://api.github.com/users/vlidholt/gists{/gist_id}","starred_url":"https://api.github.com/users/vlidholt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vlidholt/subscriptions","organizations_url":"https://api.github.com/users/vlidholt/orgs","repos_url":"https://api.github.com/users/vlidholt/repos","events_url":"https://api.github.com/users/vlidholt/events{/privacy}","received_events_url":"https://api.github.com/users/vlidholt/received_events","type":"User","site_admin":false},"labels":[{"id":288585660,"node_id":"MDU6TGFiZWwyODg1ODU2NjA=","url":"https://api.github.com/repos/flutter/flutter/labels/f:%20material%20design","name":"f: material design","color":"207de5","default":false},{"id":284437560,"node_id":"MDU6TGFiZWwyODQ0Mzc1NjA=","url":"https://api.github.com/repos/flutter/flutter/labels/framework","name":"framework","color":"207de5","default":false},{"id":283479936,"node_id":"MDU6TGFiZWwyODM0Nzk5MzY=","url":"https://api.github.com/repos/flutter/flutter/labels/%E2%8C%BA%E2%80%AC%20platform-ios","name":"⌺‬ platform-ios","color":"003570","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-03-15T14:12:08Z","updated_at":"2018-11-14T14:35:49Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"The scroll-to top-feature of Scaffold on iOS is blocking/consuming touches, even when there is no main scroll view attached to the Scaffold. This is an issue when creating a custom header for the Scaffold which may include custom widgets (like buttons etc).\r\n\r\nThe code that needs a small fix is in `scaffold.dart`.\r\n\r\nPerhaps only add the GestureDetector if `_primaryScrollController.hasClients`.\r\n\r\n```\r\n    if (themeData.platform == TargetPlatform.iOS) {\r\n      _addIfNonNull(\r\n        children,\r\n        new GestureDetector(\r\n          behavior: HitTestBehavior.opaque,\r\n          onTap: _handleStatusBarTap,\r\n          // iOS accessibility automatically adds scroll-to-top to the clock in the status bar\r\n          excludeFromSemantics: true,\r\n        ),\r\n        _ScaffoldSlot.statusBar,\r\n        removeLeftPadding: false,\r\n        removeTopPadding: true,\r\n        removeRightPadding: false,\r\n        removeBottomPadding: true,\r\n      );\r\n    }\r\n```"},"comment":{"url":"https://api.github.com/repos/flutter/flutter/issues/comments/438682839","html_url":"https://github.com/flutter/flutter/issues/15569#issuecomment-438682839","issue_url":"https://api.github.com/repos/flutter/flutter/issues/15569","id":438682839,"node_id":"MDEyOklzc3VlQ29tbWVudDQzODY4MjgzOQ==","user":{"login":"vlidholt","id":1539812,"node_id":"MDQ6VXNlcjE1Mzk4MTI=","avatar_url":"https://avatars3.githubusercontent.com/u/1539812?v=4","gravatar_id":"","url":"https://api.github.com/users/vlidholt","html_url":"https://github.com/vlidholt","followers_url":"https://api.github.com/users/vlidholt/followers","following_url":"https://api.github.com/users/vlidholt/following{/other_user}","gists_url":"https://api.github.com/users/vlidholt/gists{/gist_id}","starred_url":"https://api.github.com/users/vlidholt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vlidholt/subscriptions","organizations_url":"https://api.github.com/users/vlidholt/orgs","repos_url":"https://api.github.com/users/vlidholt/repos","events_url":"https://api.github.com/users/vlidholt/events{/privacy}","received_events_url":"https://api.github.com/users/vlidholt/received_events","type":"User","site_admin":false},"created_at":"2018-11-14T14:35:49Z","updated_at":"2018-11-14T14:35:49Z","author_association":"CONTRIBUTOR","body":"@rockingdice Quick fix is to comment out the code in material/scaffold.dart that adds the gesture detector at the top of the screen.\r\n\r\n![screen shot 2018-11-14 at 3 34 53 pm](https://user-images.githubusercontent.com/1539812/48489260-ef880100-e822-11e8-87a7-4b24270482f6.png)\r\n"}}
{"actor":{"display_login":"vlidholt"}}