{"action":"created","issue":{"url":"https://api.github.com/repos/flutter/flutter/issues/5518","repository_url":"https://api.github.com/repos/flutter/flutter","labels_url":"https://api.github.com/repos/flutter/flutter/issues/5518/labels{/name}","comments_url":"https://api.github.com/repos/flutter/flutter/issues/5518/comments","events_url":"https://api.github.com/repos/flutter/flutter/issues/5518/events","html_url":"https://github.com/flutter/flutter/issues/5518","id":172216452,"number":5518,"title":"Request for richer snippet/example for Reading/Writing files","user":{"login":"sethladd","id":5479,"avatar_url":"https://avatars.githubusercontent.com/u/5479?v=3","gravatar_id":"","url":"https://api.github.com/users/sethladd","html_url":"https://github.com/sethladd","followers_url":"https://api.github.com/users/sethladd/followers","following_url":"https://api.github.com/users/sethladd/following{/other_user}","gists_url":"https://api.github.com/users/sethladd/gists{/gist_id}","starred_url":"https://api.github.com/users/sethladd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sethladd/subscriptions","organizations_url":"https://api.github.com/users/sethladd/orgs","repos_url":"https://api.github.com/users/sethladd/repos","events_url":"https://api.github.com/users/sethladd/events{/privacy}","received_events_url":"https://api.github.com/users/sethladd/received_events","type":"User","site_admin":false},"labels":[{"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,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-08-19T20:42:40Z","updated_at":"2016-08-19T22:04:00Z","closed_at":null,"body":"Checking out the sample for reading and writing files, I see a call to runApp() twice. That first call isn't very obvious or ergonomic. https://flutter.io/reading-writing-files/\r\n\r\nHave we thought about a more obvious thing to do here? *Must* we initialize the shell this way? Or, can we do \"work\" before runApp in a more obvious way?\r\n\r\nNot sure how common this pattern is, but if we're showing it in docs, it's too easy to cargo cult. Not sure we want developers to use this pattern?\r\n\r\nThanks for any thoughts here."},"comment":{"url":"https://api.github.com/repos/flutter/flutter/issues/comments/241146999","html_url":"https://github.com/flutter/flutter/issues/5518#issuecomment-241146999","issue_url":"https://api.github.com/repos/flutter/flutter/issues/5518","id":241146999,"user":{"login":"sethladd","id":5479,"avatar_url":"https://avatars.githubusercontent.com/u/5479?v=3","gravatar_id":"","url":"https://api.github.com/users/sethladd","html_url":"https://github.com/sethladd","followers_url":"https://api.github.com/users/sethladd/followers","following_url":"https://api.github.com/users/sethladd/following{/other_user}","gists_url":"https://api.github.com/users/sethladd/gists{/gist_id}","starred_url":"https://api.github.com/users/sethladd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sethladd/subscriptions","organizations_url":"https://api.github.com/users/sethladd/orgs","repos_url":"https://api.github.com/users/sethladd/repos","events_url":"https://api.github.com/users/sethladd/events{/privacy}","received_events_url":"https://api.github.com/users/sethladd/received_events","type":"User","site_admin":false},"created_at":"2016-08-19T22:04:00Z","updated_at":"2016-08-19T22:04:00Z","body":"Thanks for the advice! Sounds like we need to update the doc to talk about the `ensureInitialized()` for the case where the file I/O is performed before runApp(). Not sure what the trade-offs are for doing File I/O before runApp()? Would that slow down the first paints of the app?"}}
{"actor":{"display_login":"sethladd"}}