<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>t2s-single</author_name>
  <author_url>https://blog.hatena.ne.jp/t2s-single/</author_url>
  <blog_title>クッパのてっく備忘録</blog_title>
  <blog_url>https://t2s-single.hatenablog.jp/</blog_url>
  <categories>
    <anon>Flutter</anon>
  </categories>
  <description>やりたいこと iOSアプリでよく見る、前画面に戻る際にスワイプで戻れるようにしたい。 ただし、前画面に戻る以外の画面遷移はスワイプしないようにする。 解決策 CupertinoPageRouteクラスを作成 ※引数がいくつか入っていますが、適宜変更してください CupertinoPageRouteにDurationを設定 次の画面に進む処理を0秒に設定 クラスを任意の画面遷移処理の部分で呼び出す // スワイプバック可能にする class MyCupertinoPageRoute&lt;T&gt; extends CupertinoPageRoute&lt;T&gt; { MyCupertinoPageRoute({…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ft2s-single.hatenablog.jp%2Fentry%2F2021%2F03%2F27%2F160812&quot; title=&quot;【Flutter】CupertinoPageRouteで前画面に戻るときだけスワイプ可能にする - クッパのてっく備忘録&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>2021-03-27 16:08:12</published>
  <title>【Flutter】CupertinoPageRouteで前画面に戻るときだけスワイプ可能にする</title>
  <type>rich</type>
  <url>https://t2s-single.hatenablog.jp/entry/2021/03/27/160812</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
