Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Bloc PatternにおけるBloc分割の方針と実践例 / Division plan a...

yamarkz
November 07, 2019

Bloc PatternにおけるBloc分割の方針と実践例 / Division plan and practical example in bloc pattern

Flutter Meetup Tokyo #12

yamarkz

November 07, 2019
Tweet

More Decks by yamarkz

Other Decks in Programming

Transcript

  1. (MPCBM#MPD ɾΞϓϦ୯ҐͰɺ޿͍ൣғʹؔΘΔॲཧΛ·ͱΊΔ FYೝূॲཧ ΠϕϯτετϦʔϜΛଞ#MPDʹ఻೻͢Δॲཧ  -PDBM#MPD ɾεΫϦʔϯ୯ҐͰɺݶΒΕͨڱ͍ൣғʹؔΘΔॲཧΛ·ͱΊΔ FYඳը͢Δσʔλͷऔಘॲཧ ϦϩʔυͳͲͷը໘୯ҐͰߦΘΕΔॲཧ $PNQPOFOU#MPD

    ɾίϯϙʔωϯτ୯ҐͰɺݶΒΕͨ෦෼ʹؔΘΔॲཧΛ·ͱΊΔ FYϢʔβʔΞΫγϣϯ͕ൃੜ͢Δॲཧ ͓ؾʹೖΓ ࡟আ  5FNQMBUF#MPD ɾڞ௨ͷॲཧ୯ҐͰɺݶΒΕͨڱ͍ൣғʹؔΘΔॲཧΛ·ͱΊΔ FYೝূॲཧ ྨࣅը໘ͷྨࣅॲཧ ෼ׂํ਑ͷఆٛʹΑͬͯੜ·Εͨɺ#MPDͷ෼ྨ
  2. (MPCBM#MPD ɾΞϓϦ୯ҐͰɺ޿͍ൣғʹؔΘΔॲཧΛ·ͱΊΔ FYೝূॲཧ ΠϕϯτετϦʔϜΛଞ#MPDʹ఻೻͢Δॲཧ  -PDBM#MPD ɾεΫϦʔϯ୯ҐͰɺݶΒΕͨڱ͍ൣғʹؔΘΔॲཧΛ·ͱΊΔ FYඳը͢Δσʔλͷऔಘॲཧ ϦϩʔυͳͲͷը໘୯ҐͰߦΘΕΔॲཧ $PNQPOFOU#MPD

    ɾίϯϙʔωϯτ୯ҐͰɺݶΒΕͨ෦෼ʹؔΘΔॲཧΛ·ͱΊΔ FYϢʔβʔΞΫγϣϯ͕ൃੜ͢Δॲཧ ͓ؾʹೖΓ ࡟আ  5FNQMBUF#MPD ɾڞ௨ͷॲཧ୯ҐͰɺݶΒΕͨڱ͍ൣғʹؔΘΔॲཧΛ·ͱΊΔ FYೝূॲཧ ྨࣅը໘ͷྨࣅॲཧ ෼ׂํ਑ͷఆٛʹΑͬͯੜ·Εͨɺ#MPDͷ෼ྨ Χ΢ϧΞϓϦͰͷ#MPDΛ෼ྨ͝ͱʹৼΓ෼͚Δͱ