{"action":"created","issue":{"url":"https://api.github.com/repos/flutter/flutter/issues/12152","repository_url":"https://api.github.com/repos/flutter/flutter","labels_url":"https://api.github.com/repos/flutter/flutter/issues/12152/labels{/name}","comments_url":"https://api.github.com/repos/flutter/flutter/issues/12152/comments","events_url":"https://api.github.com/repos/flutter/flutter/issues/12152/events","html_url":"https://github.com/flutter/flutter/issues/12152","id":258626164,"number":12152,"title":"RichText and _ScrollableScope creation fails with a cryptic error that asked to file an issue","user":{"login":"DaveShuckerow","id":14947366,"avatar_url":"https://avatars2.githubusercontent.com/u/14947366?v=4","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,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-09-18T21:24:50Z","updated_at":"2017-09-19T22:09:30Z","closed_at":null,"author_association":"NONE","body":"## Steps to Reproduce\r\n\r\nThis happens while running the tests for the flutter_markdown library against the current version of Flutter.\r\n\r\n## Logs\r\n```\r\n══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════\r\nThe following assertion was thrown building MarkdownBody(state: _MarkdownWidgetState#8b946):\r\nA RichText was created with no textDirection and no ambient Directionality widget.\r\n'package:flutter/src/widgets/basic.dart': Failed assertion: line 3796 pos 12: 'direction != null'\r\n\r\nEither the assertion indicates an error in the framework itself, or we should provide substantially\r\nmore information in this error message to help you determine and fix the underlying cause.\r\nIn either case, please report this assertion by filing a bug on GitHub:\r\n  https://github.com/flutter/flutter/issues/new\r\n\r\nWhen the exception was thrown, this was the stack:\r\n#2      RichText.createRenderObject (package:flutter/src/widgets/basic.dart:3796:12)\r\n#3      RenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4170:28)\r\n#4      Element.inflateWidget (package:flutter/src/widgets/framework.dart:2900:14)\r\n#5      MultiChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4643:32)\r\n#6      Element.inflateWidget (package:flutter/src/widgets/framework.dart:2900:14)\r\n#7      MultiChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4643:32)\r\n#8      Element.inflateWidget (package:flutter/src/widgets/framework.dart:2900:14)\r\n#9      Element.updateChild (package:flutter/src/widgets/framework.dart:2703:12)\r\n#10     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3568:16)\r\n#11     Element.rebuild (package:flutter/src/widgets/framework.dart:3457:5)\r\n#12     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3536:5)\r\n#13     StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3674:22)\r\n#14     ComponentElement.mount (package:flutter/src/widgets/framework.dart:3531:5)\r\n#15     Element.inflateWidget (package:flutter/src/widgets/framework.dart:2900:14)\r\n#16     Element.updateChild (package:flutter/src/widgets/framework.dart:2703:12)\r\n#17     RenderObjectToWidgetElement._rebuild (package:flutter/src/widgets/binding.dart:759:16)\r\n#18     RenderObjectToWidgetElement.update (package:flutter/src/widgets/binding.dart:737:5)\r\n#19     RenderObjectToWidgetElement.performRebuild (package:flutter/src/widgets/binding.dart:751:7)\r\n#20     Element.rebuild (package:flutter/src/widgets/framework.dart:3457:5)\r\n#21     BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2261:33)\r\n#22     AutomatedTestWidgetsFlutterBinding.drawFrame (package:flutter_test/src/binding.dart:589:18)\r\n#23     BindingBase&SchedulerBinding&GestureBinding&RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:194:5)\r\n#24     BindingBase&SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:713:15)\r\n#25     BindingBase&SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:649:9)\r\n#26     AutomatedTestWidgetsFlutterBinding.pump.<anonymous closure> (package:flutter_test/src/binding.dart:558:9)\r\n#29     TestAsyncUtils.guard (package:flutter_test/src/test_async_utils.dart:69:44)\r\n#30     AutomatedTestWidgetsFlutterBinding.pump (package:flutter_test/src/binding.dart:546:27)\r\n#31     WidgetTester.pumpWidget.<anonymous closure> (package:flutter_test/src/widget_tester.dart:189:22)\r\n#34     TestAsyncUtils.guard (package:flutter_test/src/test_async_utils.dart:69:44)\r\n#35     WidgetTester.pumpWidget (package:flutter_test/src/widget_tester.dart:186:27)\r\n#36     main.<anonymous closure> (///usr/local/google/home/djshuckerow/Open/github.com/DaveShuckerow/flutter_markdown/test/flutter_markdown_test.dart:102:18)\r\n<asynchronous suspension>\r\n#37     testWidgets.<anonymous closure>.<anonymous closure>.<anonymous closure> (package:flutter_test/src/widget_tester.dart:58:25)\r\n#38     TestWidgetsFlutterBinding._runTestBody (package:flutter_test/src/binding.dart:457:19)\r\n<asynchronous suspension>\r\n#41     TestWidgetsFlutterBinding._runTest (package:flutter_test/src/binding.dart:444:14)\r\n#42     AutomatedTestWidgetsFlutterBinding.runTest.<anonymous closure> (package:flutter_test/src/binding.dart:625:24)\r\n#48     AutomatedTestWidgetsFlutterBinding.runTest (package:flutter_test/src/binding.dart:623:16)\r\n#49     testWidgets.<anonymous closure>.<anonymous closure> (package:flutter_test/src/widget_tester.dart:57:24)\r\n#50     Declarer.test.<anonymous closure>.<anonymous closure> (package:test/src/backend/declarer.dart:139:19)\r\n<asynchronous suspension>\r\n#51     Invoker.waitForOutstandingCallbacks.<anonymous closure> (package:test/src/backend/invoker.dart:206:15)\r\n<asynchronous suspension>\r\n#55     Invoker.waitForOutstandingCallbacks (package:test/src/backend/invoker.dart:203:5)\r\n#56     Declarer.test.<anonymous closure> (package:test/src/backend/declarer.dart:137:29)\r\n<asynchronous suspension>\r\n#57     Invoker._onRun.<anonymous closure>.<anonymous closure>.<anonymous closure> (package:test/src/backend/invoker.dart:351:23)\r\n<asynchronous suspension>\r\n#72     _Timer._runTimers (dart:isolate-patch/timer_impl.dart:367)\r\n#73     _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:401)\r\n#74     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:151)\r\n(elided 30 frames from class _AssertionError, class _FakeAsync, package dart:async, package\r\ndart:async-patch, and package stack_trace)\r\n════════════════════════════════════════════════════════════════════════════════════════════════════\r\n```\r\n\r\n## Flutter Doctor\r\n\r\n[✓] Flutter (on Linux, locale en_US.UTF-8, channel master)\r\n    • Flutter at ...\r\n    • Framework revision 88cd043d01 (32 minutes ago), 2017-09-18 13:42:06 -0700\r\n    • Engine revision 82fb559566\r\n    • Tools Dart version 1.25.0-dev.11.0\r\n..."},"comment":{"url":"https://api.github.com/repos/flutter/flutter/issues/comments/330688229","html_url":"https://github.com/flutter/flutter/issues/12152#issuecomment-330688229","issue_url":"https://api.github.com/repos/flutter/flutter/issues/12152","id":330688229,"user":{"login":"mehmetf","id":6687929,"avatar_url":"https://avatars3.githubusercontent.com/u/6687929?v=4","gravatar_id":"","url":"https://api.github.com/users/mehmetf","html_url":"https://github.com/mehmetf","followers_url":"https://api.github.com/users/mehmetf/followers","following_url":"https://api.github.com/users/mehmetf/following{/other_user}","gists_url":"https://api.github.com/users/mehmetf/gists{/gist_id}","starred_url":"https://api.github.com/users/mehmetf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mehmetf/subscriptions","organizations_url":"https://api.github.com/users/mehmetf/orgs","repos_url":"https://api.github.com/users/mehmetf/repos","events_url":"https://api.github.com/users/mehmetf/events{/privacy}","received_events_url":"https://api.github.com/users/mehmetf/received_events","type":"User","site_admin":false},"created_at":"2017-09-19T22:09:30Z","updated_at":"2017-09-19T22:09:30Z","author_association":"CONTRIBUTOR","body":"I am trying to understand this.\r\n- Is it still necessary to test all that in a non-translated app?\r\n- Why would the API force me to specify Directionality but not Locale or MediaQuery?"}}
{"actor":{"display_login":"mehmetf"}}