{"action":"created","issue":{"url":"https://api.github.com/repos/diegoveloper/flutter_keyboard_actions/issues/43","repository_url":"https://api.github.com/repos/diegoveloper/flutter_keyboard_actions","labels_url":"https://api.github.com/repos/diegoveloper/flutter_keyboard_actions/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/diegoveloper/flutter_keyboard_actions/issues/43/comments","events_url":"https://api.github.com/repos/diegoveloper/flutter_keyboard_actions/issues/43/events","html_url":"https://github.com/diegoveloper/flutter_keyboard_actions/issues/43","id":491537291,"node_id":"MDU6SXNzdWU0OTE1MzcyOTE=","number":43,"title":"Looking up a deactivated widget's ancestor is unsafe.","user":{"login":"bookerss","id":16452556,"node_id":"MDQ6VXNlcjE2NDUyNTU2","avatar_url":"https://avatars0.githubusercontent.com/u/16452556?v=4","gravatar_id":"","url":"https://api.github.com/users/bookerss","html_url":"https://github.com/bookerss","followers_url":"https://api.github.com/users/bookerss/followers","following_url":"https://api.github.com/users/bookerss/following{/other_user}","gists_url":"https://api.github.com/users/bookerss/gists{/gist_id}","starred_url":"https://api.github.com/users/bookerss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bookerss/subscriptions","organizations_url":"https://api.github.com/users/bookerss/orgs","repos_url":"https://api.github.com/users/bookerss/repos","events_url":"https://api.github.com/users/bookerss/events{/privacy}","received_events_url":"https://api.github.com/users/bookerss/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2019-09-10T08:51:18Z","updated_at":"2019-09-10T13:51:27Z","closed_at":null,"author_association":"NONE","body":"error when Navigator.pop(context)\r\n\r\n\r\n~~~\r\n\r\n  \r\n════════ Exception Caught By scheduler library ═════════════════════════════════\r\nThe following assertion was thrown during a scheduler callback:\r\nLooking up a deactivated widget's ancestor is unsafe.\r\n\r\nAt this point the state of the widget's element tree is no longer stable.\r\n\r\nTo safely refer to a widget's ancestor in its dispose() method, save a reference to the ancestor by calling inheritFromWidgetOfExactType() in the widget's didChangeDependencies() method.\r\n\r\n\r\n~~~"},"comment":{"url":"https://api.github.com/repos/diegoveloper/flutter_keyboard_actions/issues/comments/529944969","html_url":"https://github.com/diegoveloper/flutter_keyboard_actions/issues/43#issuecomment-529944969","issue_url":"https://api.github.com/repos/diegoveloper/flutter_keyboard_actions/issues/43","id":529944969,"node_id":"MDEyOklzc3VlQ29tbWVudDUyOTk0NDk2OQ==","user":{"login":"diegoveloper","id":4898256,"node_id":"MDQ6VXNlcjQ4OTgyNTY=","avatar_url":"https://avatars1.githubusercontent.com/u/4898256?v=4","gravatar_id":"","url":"https://api.github.com/users/diegoveloper","html_url":"https://github.com/diegoveloper","followers_url":"https://api.github.com/users/diegoveloper/followers","following_url":"https://api.github.com/users/diegoveloper/following{/other_user}","gists_url":"https://api.github.com/users/diegoveloper/gists{/gist_id}","starred_url":"https://api.github.com/users/diegoveloper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diegoveloper/subscriptions","organizations_url":"https://api.github.com/users/diegoveloper/orgs","repos_url":"https://api.github.com/users/diegoveloper/repos","events_url":"https://api.github.com/users/diegoveloper/events{/privacy}","received_events_url":"https://api.github.com/users/diegoveloper/received_events","type":"User","site_admin":false},"created_at":"2019-09-10T13:51:27Z","updated_at":"2019-09-10T13:51:27Z","author_association":"OWNER","body":"I can't run your sample, reduce your code in a sample that I can run from\nhere\n\nOn Tue, Sep 10, 2019, 4:26 AM 一字码 <notifications@github.com> wrote:\n\n> pageA:\n>\n>\n>\n>   @override\n>\n>   Widget build(BuildContext context) {\n>\n>     return GestureDetector(\n>\n>         onTap: () {\n>\n>           FocusScope.of(context).requestFocus(FocusNode());\n>\n>         },\n>\n>         child: Scaffold(\n>\n>       resizeToAvoidBottomPadding: false,\n>\n>       appBar: AppBar(\n>\n>           elevation: 0.0,\n>\n>           automaticallyImplyLeading: false,\n>\n>           title: Text('客户明细'),\n>\n>           centerTitle: false,\n>\n>           actions: actions),\n>\n>       // tabbarView\n>\n>       body: FormKeyboardActions(\n>\n>           autoScroll: true,\n>\n>           child: CustomerCreateWidget(customer: widget.customer)),\n>\n>     ));\n>\n>   }\n>\n>\n>\n>\n>\n>\n> CustomerCreateWidget\n>\n>    @override\n>\n>   void initState() {\n>\n>     super.initState();\n>\n>\n>\n>     init();\n>\n>   }\n>\n>\n>\n> init(){\n>\n>\n>\n>       // 设置配置\n>\n>       // TODO:Looking up a deactivated widget's ancestor is unsafe.？？？\n>\n>     FormKeyboardActions.setKeyboardActions(\n>\n>         context,\n>\n>         _buildConfig(\n>\n>           context,\n>\n>         ));\n>\n>     // setState(() {});\n>\n>   }\n>\n> }\n>\n>\n>\n> KeyboardActionsConfig _buildConfig(\n>\n>     BuildContext context,\n>\n>   ) {\n>\n>     List<KeyboardAction> _actions = [];\n>\n>     _requirList.forEach((item) {\n>\n>       if (item.focusNode != null) {\n>\n>         _actions.add(\n>\n>           KeyboardAction(\n>\n>             focusNode: item.focusNode,\n>\n>              closeWidget: Padding(\n>\n>             padding: EdgeInsets.all(8.0),\n>\n>             child: Icon(Icons.close),\n>\n>           ),\n>\n>           ),\n>\n>         );\n>\n>       }\n>\n>     });\n>\n>     _contactList.forEach((item) {\n>\n>       if (item.focusNode != null) {\n>\n>         _actions.add(\n>\n>           KeyboardAction(\n>\n>             focusNode: item.focusNode,\n>\n>              closeWidget: Padding(\n>\n>             padding: EdgeInsets.all(8.0),\n>\n>             child: Icon(Icons.close),\n>\n>           ),\n>\n>           ),\n>\n>         );\n>\n>       }\n>\n>     });\n>\n>     _dataList.forEach((item) {\n>\n>       if (item.focusNode != null) {\n>\n>         _actions.add(\n>\n>           KeyboardAction(\n>\n>             focusNode: item.focusNode,\n>\n>           ),\n>\n>         );\n>\n>       }\n>\n>     });\n>\n>     return KeyboardActionsConfig(\n>\n>         keyboardActionsPlatform: KeyboardActionsPlatform.ALL,\n>\n>         keyboardBarColor: Colors.grey[200],\n>\n>         nextFocus: true,\n>\n>         actions: _actions);\n>\n>   }\n>\n>\n>\n>\n>\n>\n>\n>   @override\n>\n>   Widget build(BuildContext context) {\n>\n>\n>\n>\n>\n>     CreateProvider _createPrivider = Provider.of<CreateProvider>(context);\n>\n>\n>\n>     if (_createPrivider.submiting) {\n>\n>       onSave();\n>\n>       _createPrivider.submiting = false;\n>\n>     }\n>\n>     return  Form(\n>\n>       key: _formKey,\n>\n>       child: _buildLayout(),\n>\n>     );\n>\n>   }\n>\n>\n>\n>\n> —\n> You are receiving this because you commented.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/diegoveloper/flutter_keyboard_actions/issues/43?email_source=notifications&email_token=ABFL3UDCW3VN47ZBJWYCE6LQI5R5RA5CNFSM4IVEZ3PKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6KORZQ#issuecomment-529852646>,\n> or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/ABFL3UHYQF4KUS6VKTH6JITQI5R5RANCNFSM4IVEZ3PA>\n> .\n>\n"}}
{"actor":{"display_login":"diegoveloper"}}