<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>gothedistance</author_name>
  <author_url>https://blog.hatena.ne.jp/gothedistance/</author_url>
  <blog_title>Life is Really Short, Have Your Life!!</blog_title>
  <blog_url>https://aroundthedistance.hatenadiary.jp/</blog_url>
  <categories>
    <anon>Flutter</anon>
  </categories>
  <description>Flutter2.x系からこの問題がフィーチャーされるようになった気がする。1.xの時はそこまで。 どんな問題？ 非同期でサーバーにデータを送った後、ダイアログを閉じるようなケース。 非同期でawaitを入れた所で、Flutterのウィジェットツリーの再構築が同期されたかは、全くもって保証されない。 そのため、非同期処理後に Navigator.of(context).pop() とかやると例外が発生する。 TextButton( child: const Text(&quot;いいえ(エラーになる)&quot;), onPressed: () async { await doSomething(); Navig…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Faroundthedistance.hatenadiary.jp%2Fentry%2F2022%2F07%2F13%2F150557&quot; title=&quot;Asynchronous Gap on BuildContext - Life is Really Short, Have Your Life!!&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-07-13 15:05:57</published>
  <title>Asynchronous Gap on BuildContext</title>
  <type>rich</type>
  <url>https://aroundthedistance.hatenadiary.jp/entry/2022/07/13/150557</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
