プロトタイプ開発とFlutter

 プロトタイプ開発とFlutter

Dbab5e5a1fd54531e1119ede6b3b9e65?s=128

Ryosuke Horie

July 19, 2018
Tweet

Transcript

  1. © Start Today Technologies Inc. ϓϩτλΠϓ։ൃͱ'MVUUFS 'MVUUFS.FFUVQ5PLZP ελʔτΡσΟςΫϊϩδʔζ৽ࣄۀ૑଄෦ງߐ྄հ

  2. © Start Today Technologies Inc. ࣗݾ঺հ w ງߐ྄հ w ελʔττΡσΠςΫϊϩδʔζ

    w ৽ࣄۀ૑଄෦ϑϩϯτΤϯυνʔϜ w "OESPJEΤϯδχΞ w !)PSJF
  3. © Start Today Technologies Inc. ࣗݾ঺հ એ఻ w 1&",4͞Μ͔ΒຊΛग़͠·͢ʂ w

    "OESPJEςετશॻ w $*$%ͷষΛࣥච͍ͯ͠·͢
  4. © Start Today Technologies Inc. w Ҏ্ͷγϣοϓɺ Ҏ্ͷϒϥϯυͷऔ Γѻ͍ʢ೥݄຤࣌఺ʣ wৗ࣌ສ఺Ҏ্ͷ঎඼ΞΠςϜ਺ͱຖ೔ฏۉ

     ఺Ҏ্ͷ৽ண঎඼Λܝࡌ wଈ೔഑ૹαʔϏεΪϑτϥοϐϯάαʔϏεπ έ෷͍͓·͔ͤఆظศ ೔ຊ࠷େڃͷϑΝογϣϯγϣοϐϯάαΠτ
  5. © Start Today Technologies Inc. w࠾ੇ༻ϘσΟʔεʔπʮ;0;046*5ʯʹΑͬͯܭଌ ͨ͠ମܕσʔλ͔ΒɺΦʔμʔϝΠυํࣜͰ੡଄͠ ൢച͢ΔϓϥΠϕʔτϒϥϯυ wʮ;0;046*5ʯͷΦʔμʔ਺ສ݅ಥഁʢ ೥݄࣌఺ʣ

    w݄ॳ०͔ΒੈքΧࠃʹͯൢചΛ։࢝༧ఆ ϓϥΠϕʔτϒϥϯυʮ;0;0ʯ
  6. © Start Today Technologies Inc. w ສμ΢ϯϩʔυಥഁɺίʔσΟωʔτ౤ߘ૯ ਺͸ສ݅Ҏ্ʢ೥݄຤࣌఺ʣ wશੈքʢ"QQ4UPSF(PPHMFQMBZ͕ར༻Մೳͳશ ͯͷࠃʣͰμ΢ϯϩʔυ͕Մೳ

    w౳਎େͷண͜ͳ͕͠ࢧ࣋ΛूΊɺສਓҎ্ͷϑΥ ϩϫʔΛ࣋ͭ8&"3*45"Ϣʔβʔ΋஀ੜ ϑΝογϣϯίʔσΟωʔτΞϓϦ
  7. © Start Today Technologies Inc. wສμ΢ϯϩʔυಥഁɺίʔσΟωʔτ౤ߘ૯਺ ສ݅Ҏ্ wػցֶशΛ༻͍ͨϨίϝϯυ৽ػೳʮGPS:PVʯ w"QQMF͕ࣾબͿϕετΞϓϦʹબग़ɺ(PPHMF͕ࣾબ ͿϕετΞϓϦʹ೥࿈ଓͰબग़

    ϑΝογϣϯΞϓϦ
  8. © Start Today Technologies Inc. ͋Δ೔ lͪΐͬͱ76*ͰԿ͕Ͱ͖Δ͔ݕূͯ͠Έͯz

  9. © Start Today Technologies Inc. ϓϩτλΠϓ w εϚʔτεϐʔΧʔΛ࢖༻ͨ͠αʔϏεͷϓϩτλΠϐϯά w ՝୊෰બͼͷ೰ΈΛղܾͰ͖ͳ͍͔ʁ

    ໌೔ͳʹண͍͔ͯͬ͜ͳʜʁ ͱͬͯ΋೰Ή վળ͍ͨ͠
  10. © Start Today Technologies Inc. ʲௐࠪʳ෰બͼʹ೰ΜͩΒͲΜͳ͜ͱΛ͢Δͷ͔ wͱΓ͋͑ͣ෰ΛணͯΈͯɺೲಘ͢Δ·Ͱ୤͗ண͢Δ w਌΍࢞ͳͲʹࣅ߹͍ͬͯΔ͔Ͳ͏͔Λฉ͘ wʮΧʔΩτοϓεʯͳͲ(PPHMFɾ8&"3ͳͲͰݕࡧ ˠεϚʔτεϐʔΧʔʹஔ͖׵͑ΒΕͳ͍͔ʁ

  11. © Start Today Technologies Inc. ϓϩτλΠϓͷ࢓༷ w εϚʔτεϐʔΧʔͰʮ৭ʯʮࡐ࣭ʯʮ෰ʯΛೖྗ w ண͜ͳ͠΍߹ΘͤΔΞΠςϜΛฦ౴

    w ೖྗΛΫΤϦͱͯ͠8&"3ͷݕࡧ݁ՌΛΞϓϦͰදࣔ͢Δ w J04"OESPJEͰ࣮૷͠ɺϓογϡ௨஌Λड͚औΔ w ࢦఆ͞ΕͨΫΤϦͰ8&"3ͷݕࡧ݁ՌϖʔδΛ8FC7JFXͰදࣔ
  12. © Start Today Technologies Inc. ϓϩτλΠϓͷ࢓༷ w εϚʔτεϐʔΧʔͰʮ৭ʯʮࡐ࣭ʯʮ෰ʯΛೖྗ w ண͜ͳ͠΍߹ΘͤΔΞΠςϜΛฦ౴

    w ೖྗΛΫΤϦͱͯ͠8&"3ͷݕࡧ݁ՌΛΞϓϦͰදࣔ͢Δ w J04"OESPJEͰ࣮૷͠ɺϓογϡ௨஌Λड͚औΔ w ࢦఆ͞ΕͨΫΤϦͰ8&"3ͷݕࡧ݁ՌϖʔδΛ8FC7JFXͰදࣔ
  13. © Start Today Technologies Inc. 'MVUUFS w ϓϩτλΠϓͷΞϓϦଆΛ'MVUUFSͰ࣮૷

  14. © Start Today Technologies Inc. 'MVUUFSͰ࣮૷ͨ͠ཧ༝ w ΫϩεϓϥοτϑΥʔϜ w ਓͰJ04"OESPJE྆ํΛ࣮૷͢Δඞཁ͕͋ͬͨ

    w ϓογϡ௨஌Λड͚औΓ8FC7JFXΛදࣔ͢Δ୯७ͳΞϓϦ w ࢼ͠ʹ࣮૷ͯ͠ΈΔͷʹௐ౓Α͍ w "OESPJE4UVEJPͰ։ൃͰ͖Δ w "OESPJEΤϯδχΞͱͯ͠͸ັྗత
  15. σϞ

  16. © Start Today Technologies Inc. γεςϜߏ੒ w όοΫΤϯυ͸'JSFCBTFͰ࣮૷ (PPHMF)PNF ϓογϡ௨஌

  17. © Start Today Technologies Inc. 'MVUUFSଆͷ࣮૷ w ϩάΠϯॲཧ͸ະ࣮૷ w 66*%Ͱ୺຤ΛࣝผɺϩʔΧϧʹอଘ

    w ຊདྷͳΒ'JSFCBTF"VUIFOUJDBUJPOΛ࢖͏ͱྑͦ͞͏ w σόΠετʔΫϯΛ'JSFCBTF$MPVE'JSFTUPSFʹอଘ w '$.Ͱϓογϡ௨஌Λड͚औΓ w 8FC7JFXͰදࣔ
  18. © Start Today Technologies Inc. 'MVUUFSଆͷ࣮૷ w 66*%ͷੜ੒ w IUUQTQVCEBSUMBOHPSHQBDLBHFTVVJEΛ࢖༻

    w 3'$ͷ7FSTJPO  ʹ४ڌͨ͠66*%Λੜ੒ import 'package:uuid/uuid.dart'; var uuid = Uuid().v4();
  19. © Start Today Technologies Inc. 'MVUUFSଆͷ࣮૷ w 66*%ͷϩʔΧϧ΁ͷอଘ w IUUQTQVCEBSUMBOHPSHQBDLBHFTTIBSFE@QSFGFSFODFTΛ࢖༻

    _saveUUID(String uuid) async { var prefs = await SharedPreferences.getInstance(); await prefs.setString('uuid', uuid); } Future<String> _loadUUID() async { var prefs = await SharedPreferences.getInstance(); return await prefs.getString('uuid'); }
  20. © Start Today Technologies Inc. 'MVUUFSଆͷ࣮૷ w $MPVE'JSFTUPSF΁ͷอଘ w IUUQTQVCEBSUMBOHPSHQBDLBHFTDMPVE@pSFTUPSFΛ࢖༻

    import 'package:uuid/uuid.dart'; import 'package:cloud_firestore/cloud_firestore.dart'; var uuid = Uuid().v4(); Firestore.instance .collection('tokens') .document(uuid) .setData({'token': DEVICE_TOKEN});
  21. © Start Today Technologies Inc. 'MVUUFSଆͷ࣮૷ w '$.Ͱϓογϡ௨஌Λड͚औΓ w IUUQTQVCEBSUMBOHPSHQBDLBHFTpSFCBTF@NFTTBHJOHΛ࢖༻

    import 'package:firebase_messaging/firebase_messaging.dart'; final _firebaseMessaging = new FirebaseMessaging(); _firebaseMessaging.configure(onMessage: (Map<String, dynamic> message) { print("onMessage: $message"); }, onLaunch: (Map<String, dynamic> message) { print("onLaunch: $message"); }, onResume: (Map<String, dynamic> message) { print("onResume: $message"); });
  22. © Start Today Technologies Inc. 'MVUUFSଆͷ࣮૷ w 8FC7JFXͰͷදࣔ w IUUQTQVCEBSUMBOHPSHQBDLBHFTqVUUFS@XFCWJFX@QMVHJOΛ࢖༻

    new MaterialApp(routes: { "/": (_) => new WebviewScaffold( url: "https://www.google.com", appBar: new AppBar( title: new Text("Widget webview"), ), ) }, );
  23. © Start Today Technologies Inc. ·ͱΊ w 'MVUUFSΛϓϩτλΠϓ։ൃͰ࢖ͬͯΈͨ w ϓϩτλΠϓΛ଎͘࡞Δͷʹྑ͔ͬͨ

    w ΫϩεϓϥοτϑΥʔϜɺ)PU3FMPBEɺ"OESPJE4UVEJPͰͷ։ൃ w 'MVUUFS͔Β'JSFCBTFΛར༻͢Δͷ͸ඇৗʹ؆୯ w 'JSFCBTFศར
  24. ͋Γ͕ͱ͏͍͟͝·ͨ͠