{"id":571,"date":"2021-04-08T09:52:03","date_gmt":"2021-04-08T00:52:03","guid":{"rendered":"http:\/\/localhost:8000\/?p=571"},"modified":"2021-04-29T16:23:41","modified_gmt":"2021-04-29T07:23:41","slug":"flutter-get-started","status":"publish","type":"post","link":"http:\/\/localhost:8000\/2021\/04\/flutter-get-started.html","title":{"rendered":"Flutter\u306e\u74b0\u5883\u69cb\u7bc9"},"content":{"rendered":"
<\/p>\n
\u5b50\u4f9b\u306e\u304a\u52c9\u5f37\u7528\u306b\u3061\u3087\u3063\u3068\u3057\u305f\u30cd\u30a4\u30c6\u30a3\u30d6\u30a2\u30d7\u30ea\u3092\u4f5c\u308a\u305f\u304f\u306a\u308a\u3001 Flutter<\/a> \u3067\u4f5c\u3063\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002 \u3053\u3053\u307e\u3067\u3067\u3001\u3059\u3067\u306bWeb\u30a2\u30d7\u30ea\u3068\u3057\u3066 Flutter \u30a2\u30d7\u30ea\u3092\u52d5\u304b\u3059\u74b0\u5883\u304c\u3067\u304d\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u30b5\u30f3\u30d7\u30eb\u30a2\u30d7\u30ea\u3092\u52d5\u304b\u3057\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n \u300c\uff0b\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001\u30ab\u30a6\u30f3\u30bf\u30fc\u304c\u30ab\u30a6\u30f3\u30c8\u30a2\u30c3\u30d7\u3055\u308c\u3066\u3044\u304d\u307e\u3059\u3002 \u6b21\u306f\u3001\u305d\u306e\u4ed6\u5fc5\u8981\u306a\u30bd\u30d5\u30c8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff0f\u8a2d\u5b9a\u3057\u3066\u3044\u304d\u307e\u3059\u3002 Google \u304c\u63d0\u4f9b\u3059\u308b Android \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u5411\u3051\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u958b\u767a\u7528\u306eIDE\u3067\u3042\u308b Android Studio \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n \u52d5\u4f5c\u78ba\u8a8d\u306e\u305f\u3081\u306b\u3001\u4ee5\u4e0b\u3092\u53c2\u8003\u306b Android \u30a8\u30df\u30e5\u30ec\u30fc\u30bf\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002 \u4eba\u9593\u304c\u3044\u3061\u3044\u3061\u6c17\u306b\u3059\u308b\u6642\u9593\u304c\u52ff\u4f53\u306a\u3044\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u4e8c\u70b9\u306e\u8a2d\u5b9a\u3092\u5165\u308c\u3066\u304a\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n <\/p>\n \u3053\u3053\u307e\u3067\u3067Android\u306e\u8a2d\u5b9a\u306f\u4e00\u65e6\u5b8c\u4e86\u3067\u3059\u3002 \u30bf\u30fc\u30df\u30ca\u30eb\u304b\u3089 \u3053\u3061\u3089\u306f\u30ad\u30e3\u30d7\u30c1\u30e3\u306f\u7701\u304d\u307e\u3059\u304c\u3001\u4ee5\u4e0b\u306e\u624b\u9806\u3067 Android \u3084 iOS \u3068\u540c\u69d8\u306b\u52d5\u4f5c\u78ba\u8a8d\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n \u30a8\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u753b\u9762\u3067 \u3092\u306a\u3069\u3092\u5909\u66f4\u3057\u3066\u307f\u308b\u3068\u3044\u3044\u3068\u601d\u3044\u307e\u3059\u3002 \u3061\u306a\u307f\u306b\u3001Hot Reload \u306f\u3001\u3053\u3061\u3089<\/a>\u306b\u3042\u308b\u3088\u3046\u306b\u3001Widget \u30c4\u30ea\u30fc\u3092\u30ea\u30d3\u30eb\u30c9\u3059\u308b\u3082\u306e\u3067\u3001\u72b6\u614b\uff08state\uff09\u306f\u5931\u3044\u307e\u305b\u3093\u3002\u3064\u307e\u308a\u3001 Android Studio \u304b\u3089\u3001\u30a8\u30df\u30e5\u30ec\u30fc\u30bf\u30fc\u306b\u30a2\u30d7\u30ea\u3092\u30c7\u30d7\u30ed\u30a4\u3057\u3066\u5b9f\u884c\u3059\u308b\u306e\u3068\u540c\u3058\u3088\u3046\u306b\u3001\u5b9f\u6a5f\u306b\u5bfe\u3057\u3066\u3082\u30c7\u30d7\u30ed\u30a4\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n \u81ea\u5206\u306f\u3001Android Studio\u3092\u4f7f\u3063\u3066\u308b\u306e\u3067\u57fa\u672c\u306f\u3053\u3061\u3089\u3092\u5229\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n \u3053\u3061\u3089<\/a> \u306b\u3042\u308b\u3088\u3046\u306b\u3001xCode\u304b\u3089\u3082\u5b9f\u6a5f\u306b\u30a2\u30d7\u30ea\u3092\u30c7\u30d7\u30ed\u30a4\u3057\u3066\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n xCode\u3060\u3068\u3001iOS\u56fa\u6709\u306e\u8a2d\u5b9a\u3092\u5909\u66f4\u3067\u304d\u3066\u3001\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306b\u53cd\u6620\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u307f\u305f\u3044\u3067\u3059\u3002 \u3053\u3061\u3089<\/a> \u306b\u3042\u308b\u3088\u3046\u306b\u4ee5\u4e0b\u306e\u4f5c\u696d\u304c\u5fc5\u8981\u3067\u3057\u305f\u3002<\/p>\n Flutter \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3001Android\/iOS\/Web \u306e\u52d5\u4f5c\u78ba\u8a8d\u304c\u884c\u3048\u308b\u30a8\u30df\u30e5\u30ec\u30fc\u30c8\u74b0\u5883\u3092\u69cb\u7bc9\u3057\u3001\u304b\u3064\u5b9f\u6a5f\u3078\u306e\u30c7\u30d7\u30ed\u30a4\u307e\u3067\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\u3002 \u5b50\u4f9b\u306e\u304a\u52c9\u5f37\u7528\u306b\u3061\u3087\u3063\u3068\u3057\u305f\u30cd\u30a4\u30c6\u30a3\u30d6\u30a2\u30d7\u30ea\u3092\u4f5c\u308a\u305f\u304f\u306a\u308a\u3001 Flutter \u3067\u4f5c\u3063\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002 \u672c\u8a18\u4e8b\u306f\u3001\u516c\u5f0f\u306e Get Started \u3092\u898b\u306a\u304c\u3089\u3001Android\uff0fiOS\uff0fWeb \u306e\u30af\u30ed\u30b9\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u52d5\u4f5c\u74b0\u5883\u3092\u69cb\u7bc9\u3057\u3066\u3001\u30b5\u30f3\u30d7\u30eb\u30a2\u30d7\u30ea\u3092\u8efd\u304f\u52d5\u304b\u3057\u3066\u307f\u308b\u3068\u3053\u308d\u307e\u3067\u306e\u5185\u5bb9\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002 Flutter\u306e\u7279\u5fb4 1\u3064\u306e\u30b3\u30fc\u30c9\u30d9\u30fc\u30b9\u3067\u3001\u30af\u30ed\u30b9\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\uff08Android\/MacOS\/Windows\/Linux\/iOS\/Web\uff09\u3067\u52d5\u4f5c\u3059\u308b\u30a2\u30d7\u30ea\u3092\u4f5c\u308c\u308b => \u958b\u767a\u30fb\u904b\u7528\u30fb\u5b66\u7fd2\u30b3\u30b9\u30c8\u304c\u5c0f\u3055\u3044 Google \u304c\u30ea\u30fc\u30c9\u3059\u308b OSS => \u958b\u767a\u304c\u983b\u7e41 \u72ec\u81ea\u306e\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u30a8\u30f3\u30b8\u30f3\u3092\u4f7f\u3063\u3066\u3044\u308b => swift\u3084kotlin\u3092\u4f7f\u3063\u305f\u30cd\u30a4\u30c6\u30a3\u30d6\u958b\u767a\u3088\u308a\u4f4e\u901f \u4e00\u822c\u7684\u306a\u7aef\u672b\u56fa\u6709\u6a5f\u80fd\u306f\u5bfe\u5fdc\u3057\u3066\u3044\u308b => \u5168\u90e8\u5bfe\u5fdc\u3057\u3066\u308b\u8a33\u3067\u306f\u306a\u304f\u3001\u6700\u65b0\u6a5f\u80fd\u3078\u306e\u5bfe\u5fdc\u3082\u5c11\u3057\u9045\u308c\u308b widget <\/span>Continue Reading<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[38],"tags":[],"_links":{"self":[{"href":"http:\/\/localhost:8000\/wp-json\/wp\/v2\/posts\/571"}],"collection":[{"href":"http:\/\/localhost:8000\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/localhost:8000\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/localhost:8000\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/localhost:8000\/wp-json\/wp\/v2\/comments?post=571"}],"version-history":[{"count":1,"href":"http:\/\/localhost:8000\/wp-json\/wp\/v2\/posts\/571\/revisions"}],"predecessor-version":[{"id":597,"href":"http:\/\/localhost:8000\/wp-json\/wp\/v2\/posts\/571\/revisions\/597"}],"wp:attachment":[{"href":"http:\/\/localhost:8000\/wp-json\/wp\/v2\/media?parent=571"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/localhost:8000\/wp-json\/wp\/v2\/categories?post=571"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/localhost:8000\/wp-json\/wp\/v2\/tags?post=571"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}
\n\u672c\u8a18\u4e8b\u306f\u3001\u516c\u5f0f\u306e Get Started<\/a> \u3092\u898b\u306a\u304c\u3089\u3001Android\uff0fiOS\uff0fWeb \u306e\u30af\u30ed\u30b9\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u52d5\u4f5c\u74b0\u5883\u3092\u69cb\u7bc9\u3057\u3066\u3001\u30b5\u30f3\u30d7\u30eb\u30a2\u30d7\u30ea\u3092\u8efd\u304f\u52d5\u304b\u3057\u3066\u307f\u308b\u3068\u3053\u308d\u307e\u3067\u306e\u5185\u5bb9\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\nFlutter\u306e\u7279\u5fb4<\/h2>\n
\n
\n
\n
\n
\n
\n
\n
\n
Requirement<\/h2>\n
\n
Flutter SDK\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n
\n
\n
\n\uff08\u672c\u8a18\u4e8b\u3067\u306f2.0.4-stable\u3092\u5229\u7528\uff09<\/li>\n<\/ul>\n<\/li>\n\n
~\/tools\/<\/code>\u306b\u89e3\u51cd\uff09<\/li>\n<\/ul>\n<\/li>\n
\n
~\/.bash_profile<\/code>\u3084
~\/.bashrc<\/code>\u306b\u3066PATH\u3092\u8a2d\u5b9a\u3057\u307e\u3059\n
vi ~\/.bash_profile\n+ export PATH=$PATH:~\/tools\/flutter\/bin\nsource ~\/.bash_profile\nwhich flutter\n> \/Users\/xxx\/tools\/flutter\/bin\/flutter<\/code><\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n
\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u30fb\u5b9f\u884c<\/h2>\n
\n
flutter create flutter_sample<\/code><\/pre>\n<\/li>\n
cd flutter_sample\nflutter run<\/code><\/pre>\n<\/li>\n
\n<\/li>\n<\/ol>\n
\n\u3053\u3053\u307e\u3067\u306f\u975e\u5e38\u306b\u9806\u8abf\u3067\u3059\u306d\u3002<\/p>\n\u5fc5\u8981\u306a\u30bd\u30d5\u30c8\u3092\u8a3a\u65ad<\/h2>\n
\nflutter doctor<\/code>\u30b3\u30de\u30f3\u30c9\u3067\u8db3\u308a\u3066\u306a\u3044\u3082\u306e\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n
flutter doctor\n\n> [\u2713] Flutter (Channel stable, 2.0.4, on Mac OS X 10.14.6 18G8022 darwin-x64, locale ja-JP)\n> [\u2717] Android toolchain - develop for Android devices\n> \u2717 Unable to locate Android SDK.\n> Install Android Studio from: https:\/\/developer.android.com\/studio\/index.html\n> On first launch it will assist you in installing the Android SDK components.\n> (or visit https:\/\/flutter.dev\/docs\/get-started\/install\/macos#android-setup for detailed instructions).\n> If the Android SDK has been installed to a custom location, please use\n> `flutter config --android-sdk` to update to that location.\n>\n> [\u2717] Xcode - develop for iOS and macOS\n> \u2717 Xcode installation is incomplete; a full installation is necessary for iOS development.\n> Download at: https:\/\/developer.apple.com\/xcode\/download\/\n> Or install Xcode via the App Store.\n> Once installed, run:\n> sudo xcode-select --switch \/Applications\/Xcode.app\/Contents\/Developer\n> sudo xcodebuild -runFirstLaunch\n> \u2717 CocoaPods not installed.\n> CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.\n> Without CocoaPods, plugins will not work on iOS or macOS.\n> For more info, see https:\/\/flutter.dev\/platform-plugins\n> To install see https:\/\/guides.cocoapods.org\/using\/getting-started.html#installation for instructions.\n> [\u2713] Chrome - develop for the web\n> [!] Android Studio (not installed)\n> [\u2713] VS Code (version 1.54.3)\n> [\u2713] Connected device (1 available)\n>\n> ! Doctor found issues in 3 categories.<\/code><\/pre>\n
Android toolchain<\/code>\u30fb
Xcode<\/code>\u30fb
Android Studio<\/code>\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5fc5\u8981\u306a\u3088\u3046\u3067\u3059\u3002
\n\u6b21\u9805\u3067\u306f\u307e\u305a Android \u306b\u95a2\u3059\u308b\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\nAndroid \u5411\u3051\u306e\u8a2d\u5b9a<\/h2>\n
Android Studio \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n
\n
Open an Exixting Project<\/code>\u3067\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u958b\u304f
\n<\/li>\n\n
Preferences... > Plugins<\/code>\u304b\u3089 Dart \u3068 Flutter \u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\n
\n
.dart<\/code>\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304f\u3068\u52dd\u624b\u306b suggest \u3057\u3066\u304f\u308c\u308b\u306e\u3067\u305d\u306e\u30bf\u30a4\u30df\u30f3\u30b0\u3067\u3082OK<\/li>\n
flutter doctor --android-licenses<\/code><\/pre>\n<\/li>\n<\/ol>\n
Android \u30a8\u30df\u30e5\u30ec\u30fc\u30bf\u306e\u8a2d\u5b9a<\/h3>\n
\nhttps:\/\/developer.android.com\/studio\/run\/emulator-acceleration<\/a><\/p>\n\n
AVD Manager<\/code>\u30a2\u30a4\u30b3\u30f3\u3092\u30af\u30ea\u30c3\u30af
\n<\/li>\n\n
+ Create Virtual Device...<\/code> \u304b\u3089\u65b0\u3057\u304f\u4eee\u60f3\u30c7\u30d0\u30a4\u30b9\u3092\u767b\u9332\u3067\u304d\u308b\u304c\u3001\u3053\u3053\u3067\u306f\u5272\u611b<\/li>\n<\/ul>\n<\/li>\n
\n
AVD Manager Unable to locate abc<\/code>\u3068\u3044\u3046\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u5834\u5408\u306f\u3001
\u30e1\u30cb\u30e5\u30fc > Project Structure<\/code>\u3067\u3001SDK\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3067\u89e3\u6c7a\u3067\u304d\u308b
\n<\/li>\n
\n<\/li>\n<\/ul>\n<\/li>\n\n
Flutter Device Selection<\/code>\u30d7\u30eb\u30c0\u30a6\u30f3\u3067\u3001\u5bfe\u8c61\u306e\u30c7\u30d0\u30a4\u30b9\u3092\u9078\u629e\u3059\u308b
\n<\/li>\n\n
Failed to install the following Android SDK packages as some licences have not been accepted.<\/code>\u3068\u3044\u3046\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u5834\u5408\u306f\u3001
flutter doctor --android-licenses<\/code>\u3092\u5b9f\u884c\u3059\u308b<\/li>\n<\/ul>\n<\/li>\n
main.dart<\/code>\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u30a8\u30df\u30e5\u30ec\u30fc\u30bf\u753b\u9762\u306b\u5bfe\u8c61\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u63cf\u753b\u3055\u308c\u308b
\n
\n\u300c\uff0b\u300d\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3061\u3083\u3093\u3068\u30ab\u30a6\u30f3\u30c8\u30a2\u30c3\u30d7\u3055\u308c\u305f<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\u30d5\u30a9\u30fc\u30de\u30c3\u30bf\u30fc\u306e\u8a2d\u5b9a<\/h3>\n
\n
preferences > Languages & Frameworks > Flutter<\/code>\u3067\u8a2d\u5b9a\u753b\u9762\u3092\u958b\u304d\u3001\u30c1\u30a7\u30c3\u30af\u3092\u5165\u308c\u307e\u3059\u3002\u8d64\u67a0\u306e\u9805\u76ee\u306b\u30c1\u30a7\u30c3\u30af\u3092\u5165\u308c\u307e\u3059\u3002<\/p>\n
\n\u6b21\u306fiOS\u306e\u8a2d\u5b9a\u3092\u884c\u3044\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\niOS\u5411\u3051\u306e\u8a2d\u5b9a<\/h2>\n
Xcode\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n
\n
sudo xcode-select --switch \/Applications\/Xcode.app\/Contents\/Developer\nsudo xcodebuild -runFirstLaunch<\/code><\/pre>\n<\/li>\n
sudo xcodebuild -license<\/code><\/pre>\n<\/li>\n<\/ol>\n
iOS \u30b7\u30df\u30e5\u30ec\u30fc\u30bf\u306e\u8a2d\u5b9a<\/h3>\n
open -a Simulator<\/code>\u3067\u958b\u304f\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u304c\u3001\u57fa\u672c\u306f Android Struio \u3067\u958b\u767a\u3059\u308b\u306e\u3067\u3001\u305d\u3053\u304b\u3089\u958b\u304f\u65b9\u6cd5\u3067\u9032\u3081\u307e\u3059\u3002<\/p>\n
\n
Flutter Device Selection<\/code>\u30d7\u30eb\u30c0\u30a6\u30f3\u3067\u3001
Open iOS Simurator<\/code>\u3092\u9078\u629e\u3059\u308b\n
\n
\n
main.dart<\/code>\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u30a8\u30df\u30e5\u30ec\u30fc\u30bf\u753b\u9762\u306b\u5bfe\u8c61\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u63cf\u753b\u3055\u308c\u308b
\n
\n\u3053\u3061\u3089\u3082\u3061\u3083\u3093\u3068\u52d5\u3044\u3066\u304f\u308c\u305f<\/li>\n<\/ul>\n<\/li>\n<\/ol>\nWeb\u306e\u8a2d\u5b9a<\/h3>\n
\n
Flutter Device Selection<\/code>\u30d7\u30eb\u30c0\u30a6\u30f3\u3067\u3001
Chrome(web)<\/code>\u3092\u9078\u629e\u3059\u308b\n
\n
main.dart<\/code>\u3092\u5b9f\u884c\u3059\u308b<\/li>\n<\/ol>\n
Hot Reload<\/h2>\n
main.dart<\/code>\u3092\u5b9f\u884c\u3057\u305f\u72b6\u614b\u3067\u3001
main.dart<\/code>\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u5909\u66f4\u3057\u3066\u4fdd\u5b58\uff08command+S\uff09\u3059\u308b\u3068\u3001\u305d\u306e\u30bf\u30a4\u30df\u30f3\u30b0\u3067\u30a8\u30df\u30e5\u30ec\u30fc\u30c8\u753b\u9762\u304c\u30ea\u30ed\u30fc\u30c9\u3055\u308c\u3066\u3001\u5909\u66f4\u304c\u53cd\u6620\u3055\u308c\u307e\u3059\u3002
\n\u8a66\u3057\u306b\u3001<\/p>\n\n
primarySwatch: Colors.pink,<\/code><\/pre>\n<\/li>\n
home: MyHomePage(title: 'Flutter Demo Home Page'),<\/code><\/pre>\n<\/li>\n<\/ul>\n
\n\u81ea\u5206\u306e\u5834\u5408\u306f\u3001\u30b3\u30fc\u30c9\u3092\u4fee\u6b63\u3057\u305f\u3089\u7121\u610f\u8b58\u306bCommand+S\u3067\u4fdd\u5b58\u3059\u308b\u7656\u304c\u3042\u308b\u306e\u3067\u3001\u7121\u610f\u8b58\u306b\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u3067\u5909\u66f4\u304c\u30a2\u30d7\u30ea\u753b\u9762\u306b\u53cd\u6620\u3055\u308c\u3066\u3001\u3068\u3066\u3082\u826f\u3044\u958b\u767a\u4f53\u9a13\u3067\u3057\u305f\u3002<\/p>\nbuild()<\/code>\u306f\u5b9f\u884c\u3059\u308b\u3051\u3069\u3001
main()<\/code>\u3084
initState()<\/code>\u306f\u5b9f\u884c\u3057\u307e\u305b\u3093\u3002
\n\u305d\u308c\u3089\u304c\u5fc5\u8981\u306a\u5834\u5408\u306f\u3001\u25b6\ufe0e\u30dc\u30bf\u30f3\uff08\u3082\u3057\u304f\u306fctrl+R\uff09\u3067\u30a2\u30d7\u30ea\u3092 Restart \u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\u5b9f\u6a5f\u30c7\u30d7\u30ed\u30a4<\/h2>\n
iOS<\/h3>\n
Android Studio\u3092\u4f7f\u3046\u5834\u5408<\/h4>\n
\n
Flutter Device Selection<\/code>\u30d7\u30eb\u30c0\u30a6\u30f3\u306b\u5b9f\u6a5f\u306e\u30c7\u30d0\u30a4\u30b9\u304c\u8868\u793a\u3055\u308c\u308b
\n<\/li>\n\n
Run > Flutter Run main.dart in Release Mode<\/code>\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u3001\u30ea\u30ea\u30fc\u30b9\u30e2\u30fc\u30c9\u3067\u30c7\u30d7\u30ed\u30a4\u3067\u304d\u308b<\/li>\n<\/ul>\n<\/li>\n
\n
\u8a2d\u5b9a > \u4e00\u822c > \u30c7\u30d0\u30a4\u30b9\u7ba1\u7406 > \u30c7\u30d9\u30ed\u30c3\u30d1APP<\/code>\u3068\u30bf\u30c3\u30d7\u3057\u3066\u3044\u304f<\/li>\n
\n
\n
Run > Flutter Run 'xxx.dart'' in Release Mode<\/code>\u3092\u5b9f\u884c\u3059\u308b<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n
xCode\u3092\u4f7f\u3046\u5834\u5408<\/h4>\n
\n
sudo gem install cocoapods<\/code><\/pre>\n<\/li>\n
open ios\/Runner.xcworkspace<\/code><\/pre>\n<\/li>\n
Runner<\/code>\u3092\u9078\u629e\u3057\u3001
Signing & Capabilities<\/code>\u30bf\u30d6\u306b\u79fb\u52d5\u3057\u3066\u3001
Add Account...<\/code>\u3067\u81ea\u5206\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u8ffd\u52a0\u3059\u308b<\/li>\n
\n<\/li>\n\n
\u8a2d\u5b9a > \u4e00\u822c > \u30c7\u30d0\u30a4\u30b9\u7ba1\u7406 > \u30c7\u30d9\u30ed\u30c3\u30d1APP<\/code>\u3068\u30bf\u30c3\u30d7\u3057\u3066\u3044\u304f<\/li>\n
\n
Product > Scheme > Edit Scheme<\/code>\u3067\u4ee5\u4e0b\u306e\u8a2d\u5b9a\u753b\u9762\u3092\u958b\u304d\u3001
Debug Configuration<\/code>\u3092
Release<\/code>\u306b\u3057\u3066\u25b6\ufe0e\u30dc\u30bf\u30f3\u3067\u30c7\u30d7\u30ed\u30a4\u3059\u308c\u3070\u826f\u3044<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n
\n\u81ea\u5206\u306f\u3001Background Fetch<\/code>\u3092\u8a66\u3057\u3066\u307f\u3066\u305f\u306e\u3067\u3059\u304c\u3001\u305d\u306e\u5834\u5408\u306f\u3001xCode\u304b\u3089\u8a2d\u5b9a\u3057\u307e\u3057\u305f\u3002
\n\u307e\u305f\u3001\u3044\u3064\u5b9f\u884c\u3055\u308c\u308b\u304b\u308f\u304b\u3089\u306a\u3044Background Fetch<\/code>\u3092
Debug > Simurate Background Fetch<\/code>\u3067\u660e\u793a\u7684\u306b\u30c7\u30d0\u30c3\u30b0\u5b9f\u884c\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u305f\u308a\u3057\u307e\u3057\u305f\u3002
\n\u306a\u306e\u3067\u3001\u7528\u9014\u306b\u3088\u3063\u3066 Android Studio \u3068 xCode \u3092\u4f7f\u3044\u5206\u3051\u308b\u3068\u826f\u3055\u305d\u3046\u3067\u3059\u3002<\/p>\nAndroid<\/h3>\n
\n
\u8a2d\u5b9a > \u30b7\u30b9\u30c6\u30e0 > \u7aef\u672b\u60c5\u5831<\/code>\u3092\u958b\u304d\u3001
\u30d3\u30eb\u30c9\u756a\u53f7<\/code>\u30927\u56de\u30bf\u30c3\u30d7\u3059\u308b<\/li>\n
\u8a2d\u5b9a > \u30b7\u30b9\u30c6\u30e0 > \u958b\u767a\u8005\u5411\u3051\u30aa\u30d7\u30b7\u30e7\u30f3<\/code>\u3092\u958b\u304d\u3001
USB\u30c7\u30d0\u30c3\u30b0<\/code>\u3092ON\u306b\u3059\u308b<\/li>\n
Flutter Device Selection<\/code>\u30d7\u30eb\u30c0\u30a6\u30f3\u306b\u5b9f\u6a5f\u306e\u30c7\u30d0\u30a4\u30b9\u304c\u8868\u793a\u3055\u308c\u308b
\n\u3067<\/li>\n\n
Run > Flutter Run main.dart in Release Mode<\/code>\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u3001\u30ea\u30ea\u30fc\u30b9\u30e2\u30fc\u30c9\u3067\u30c7\u30d7\u30ed\u30a4\u3067\u304d\u308b<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n
\u6700\u5f8c\u306b<\/h2>\n
\n\u74b0\u5883\u3082\u3046\u307e\u304f\u69cb\u7bc9\u3067\u304d\u305f\u306e\u3067\u3001\u3053\u308c\u304b\u3089 Flutter \u30a2\u30d7\u30ea\u958b\u767a\u3092\u3061\u3087\u3063\u3068\u9811\u5f35\u3063\u3066\u307f\u3088\u3046\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"