Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
ネイティブアプリで保存した値を Flutterで取得する方法
Search
Ryutaro Iseki
January 23, 2024
340
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
ネイティブアプリで保存した値を Flutterで取得する方法
Ebisu.mobile #4で登壇した内容です😁
https://hey.connpass.com/event/305181/
Ryutaro Iseki
January 23, 2024
More Decks by Ryutaro Iseki
See All by Ryutaro Iseki
Why MapLibre? Flexibility and the Freedom to Unlock Full Potential in Flutter Apps with Maps
iseruuuuu
0
49
FlutterエンジニアがMapLibreでスタイルをカスタマイズできるまで
iseruuuuu
0
130
MapLibreでやっていること・やりたいこと
iseruuuuu
0
290
Flutterを使用した個人開発でマネタイズ始めました
iseruuuuu
0
390
MapLibreを使用した安全かつ、効果的なマップアプリを作る
iseruuuuu
1
230
Flutter開発が快適になる〇選
iseruuuuu
0
420
FoodGram
iseruuuuu
0
360
FlutterとWeb 3
iseruuuuu
0
410
あなたの勉強会の登壇の不安を取り除くお手伝いをします
iseruuuuu
0
130
Featured
See All Featured
The agentic SEO stack - context over prompts
schlessera
0
980
Paper Plane (Part 1)
katiecoart
PRO
2
12k
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
580
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.6k
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
68
59k
Done Done
chrislema
187
17k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
3.1k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.6k
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
2
740
The Pragmatic Product Professional
lauravandoore
37
7.5k
AI: The stuff that nobody shows you
jnunemaker
PRO
10
1.2k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.6k
Transcript
ネイティブアプリで保存した値を Flutterで取得する方法 いせりゅー
自己紹介 名前 ・井関 竜太郎( いせりゅー) 職歴 ・株式会社ゆめみのFlutter エンジニア ・心理学系の大学院1 年生
好きなこと ・個人開発 ・サッカー観戦
ローカルデータの保存・取得ができるPackage shared_preferences native_shared_preferences sqflite(今回は割愛!) MySQLの様にSQLを使って操作できるデータベース 同じ形式のデータを大量に保存する場合や、JSONなど単一のデータとして扱うことが難 しい場合などに使われることが多い
単純なデータをローカルに保存したい場合に有効なPackage flutter.devが開発をしているため、Packageの信頼性は高い。 iOSでいうとUserDefault AndroidでいうとSharedPreferences https://pub.dev/packages/shared_preferences shared_preferencesについて
しかし...
shared_preferencesではダメな場合がある When? ネイティブ→Flutterリプレース作業
https://github.com/flutter/plugins/blob/e014c208909772cee2328a91b7225e667a2681a9/packages/shared_p references/shared_preferences/lib/shared_preferences.dart#L152-L166 shared_preferences
そんなときに
「shared_preferences」のキーにプレフィックスがないPacakge。 ネイティブアプリのローカルのデータ取得する必要がある場合にのみ使用する 基 本 的 に は 、 「 version_migration
」 と い う パ ッ ケ ー ジ を 併 用 し て 、 以 前 の ネイティブアプリバージョンからの取得のみに使用する。 https://pub.dev/packages/native_shared_preferences https://pub.dev/packages/version_migration native_shared_preferencesについて
https://github.com/yeniel/native_shared_preferences/blob/master/lib/native_shared_preferences.dart#L149 native_shared_preferences
まとめ ネイティブ→Flutterのリプレースをするときに注意が必要 Flutterエンジニア以外も知っておくといいかも。 Package内のコードを見ないとなかなかわからない
ちょっとしたおまけ
None
現状 ・iOS版はリリースされている。 ・Android版は、3月ごろを目安にリリース予定 ・現在、LPサイトを製作中 🗒️ @FoodGram_dev Apple Store
おわり ありがとう ございました