<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>excite-mthiroshi</author_name>
  <author_url>https://blog.hatena.ne.jp/excite-mthiroshi/</author_url>
  <blog_title>エキサイト TechBlog.</blog_title>
  <blog_url>https://tech.excite.co.jp/</blog_url>
  <categories>
    <anon>Flutter</anon>
    <anon>Dart</anon>
  </categories>
  <description>エキサイトの武藤です。 Flutterで多言語対応をする際、基本的にはWidget内でBuildContextからAppLocalizationsを呼び出して利用します。 しかし、複雑なロジックが必要な表示テキストの場合、Viewでそのロジックを書いてしまうとViewのコードが肥大化してしまいます。 その場合、View以外に表示テキストの生成処理を行うようになると思います。 今回は、RiverpodのProviderで表示テキストの生成を行う方法について説明します。 実行環境 l10nを使ったテキストの表示 ロジックを含む表示テキスト l10nを取得するBuildContext を扱うユニット…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.excite.co.jp%2Fentry%2F2023%2F01%2F24%2F093000&quot; title=&quot; [Flutter] l10nの操作をRiverpodのProviderで行う - エキサイト TechBlog.&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>https://cdn-ak.f.st-hatena.com/images/fotolife/e/excite-mthiroshi/20230123/20230123163303.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-01-24 09:30:00</published>
  <title> [Flutter] l10nの操作をRiverpodのProviderで行う</title>
  <type>rich</type>
  <url>https://tech.excite.co.jp/entry/2023/01/24/093000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
