Flutter Recipes: Mobile Development Solutions for iOS and Android

所需积分/C币:21 2019-10-11 13:56:34 7.07MB PDF
收藏 收藏
举报

Flutter Recipes: Mobile Development Solutions for iOS and Android Take advantage of this comprehensive reference to solving common problems when developing with Flutter. Along with an introduction to the basic concepts of Flutter development, the recipes in this book cover all important aspects of
Flutter Recipes: Mobile Development Solutions for ios and android Fu cheng Sandringham, Auckland, New Zealand ISBN-13(pbk):978-1-4842-4981-9 ISBN-13( electronic):978-1-4842-49826 htps:// doi. org/10.1007/978-1-4842-4982-6 Copyright o 2019 by Fu Cheng This work is subject to copyright All rights are reserved by the Publisher, whether the whole or part of the material is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation, broadcasting, reproduction on microfilms or in any other physical way, and transmission or information storage and retrieval, electronic adaptation, computer software, or by similar or dissimilar methodology now known or hereafter developed Trademarked names, logos, and images may appear in this book. Rather than use a trademark symbol with every occurrence of a trademarked name, logo, or image we use the names,logos, and images only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark The use in this publication of trade names, trademarks, service marks, and similar terms even if they are not identified as such, is not to be taken as an expression of opinion as to whether or not they are subject to proprietary rights While the advice and information in this book are believed to be true and accurate at the date of publication, neither the authors nor the editors nor the publisher can accept any legal responsibility for any errors or omissions that may be made. The publisher makes no warranty, express or implied, with respect to the material contained herein Managing Director, Apress Media LLC: Welmoed Spahr Acquisitions Editor: Aaron black Development Editor: James Markham Coordinating Editor: Jessica Vakili CoverimagedesignedbyFreepik(www.freepik.com) Distributed to the book trade worldwide by Springer Science+Business Media New York, 233 Spring Street, 6th Floor, New York, NY 10013. Phone 1-800-SPRINGER, fax(201) 348-4505,e-mailorders-ny@springer-sbm.comorvisitwww.springeronline.comApress Media, LLC is a California LLC and the sole member(owner) is Springer Science +Business Media Finance Inc (SSBM Finance Inc). SSBM Finance Inc is a Delaware corporation Forinformationontranslationspleasee-mailrights@apress.comorvisithttp://www apress. com/rights-permissions. apress titles may be purchased in bulk for academic, corporate or promotional use ebook versions and licenses are also available for most titles. For more information reference our PrintandebooKbulksaleswebpageathttp://www.apress.com/bulk-sales Any source code or other supplementary material referenced by the author in this book is availabletoreadersonGithubviathebooksproductpagelocatedatwww.apress.com/ 978-1-4842-4981-9.Formoredetailedinformationpleasevisithttp://www.apress.com/ source-code Printed on acid-free paper Table of contents About the author ■■■■■■■■■■■■■口■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ About the technical reviewer Chapter 1: Get Started ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■口■■■■■ 1-1. Installing Flutter SDK on Windows.mmmmemnennnmnmnmnnnn 1 Problem Solution Discussion∴ 1-2. Installing Flutter SDK on Linux 144 Problem Solution…4 Discussion ,mmm. 1-3. Installing Flutter SDK on macOs........... 5 Problem……5 Solution………6 Discussion 6 1-4. Setting Up i0 S Platform….,.,,,,,,,,…,………7 Problem Solution Discussion 1-5. Setting Up iOS Simulators…… 77799 Problem Solution mmm 9 Discussion ugg 9 TABLE OF CONTENTS 1-6. Setting Up ioS Problem Solution 9 Discussion 1-7. Setting Up Android Platform…… Problem maguan 11 So|uton……11 Discussion , mm 11 1-8. Setting Up Android Emulators Problem 13 Solution…13 Discussion… 13 1-9. Setting up android Devices mmmm...mmm.18 Problem 18 Sout0n…18 Discussion 1-10. Creating Flutter Apps Using Command Line 19 Problem 19 Solution……19 Discussion mm, 19 1-11. Creating Flutter Apps Using Android Studio...............20 Problem m. Solution 20 Discussion , m.20 1-12. Creating Flutter Apps Using VS Code 24 Problem 24 Solution……24 Discussion 25 TABLE OF CONTENTS 1-13. Running Flutter Apps…… Problem m. So| ution,,…26 Discussion 1-14. Understanding Code Structure of Flutter Apps 27 Problem……27 Solution.…127 Discussion ung. 1-15. Fixing Configuration Issues of Flutter SDK Problem m. Solution 28 Discussion,,,…28 1-16. Summary Chapter 2: Know the Tools amat ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■口■■ 29 2-1. Using dart Observatory memneemmnnmam. naetnnnmnonnn, 29 Problem Solution 29 Discussion mmmm.29 2-2. Using Hot reload and hot restart .31 Problem 31 Solution 31 Discussion mm. 32 2-3. Upgrading Flutter SDK 34 Problem mmmmm. 34 Soluti0n…………………………………a.34 Discussion TABLE OF CONTENTS 2-4 Debugging Flutter Apps in Android studio. mnanannneeennonnann 36 Problem 36 Solution……136 Discussion 36 2-5. Viewing Outline of Flutter Apps in Android Studio 39 Problem Sout0n…39 Discussion,,…40 2-6. Debugging Flutter Apps in VS Code Problem So| ution,,…41 Discussion… 41 2-7. Creating Flutter Projects.........................42 Problem 42 Solution wmo. 42 Discussion 2-8. Running Flutter Apps……… 46 Problem 46 Solution Discussion mm, 46 2-9. Building Flutter App Problem mmmmm. Solution 151 Discussion,,…151 2-10. stalling flutter Apps.,.,.,.,.,…………53 Problem 53 Solution……53 Discussion 53 TABLE OF CONTENTS 2-11. Managing Packages 54 Prob|em……………………………………………54 Solution 54 Discussion 54 2-12. Running Flutter Tests Problem 56 Sout0n…156 Discussion 2-13. Analyzing the Code 58 Problem……58 Soluti0n,…………………59 Discussion 2-14. Managing emulators 61 Problem 61 Solution …61 Discussion 2-15. Taking Problem 62 Sout0n…62 Discussion 62 2-16. Attaching to Running Apps 63 Problem 163 Solution ……63 Discussion mmmmm. 64 2-17. Tracing Running Flutter Apps........................65 Problem ……65 Solution Discussion n65 TABLE OF CONTENTS 2-18. Configuring Flutter SDK.mmmmmmmnnnmnmnmmmemmnnemmnmnnn 66 Problem .66 Solution mmmmm. 66 Discussion 66 2-19. Showing App Logs. mmmammmmemamnmaaananamaamnmamammnn6 Problem maggngmm.67 Solution Discussion mm, 68 2-20. Formatting Source Code …68 Problem 68 So| ution,,…69 Discussion… 69 2-21. Listing Connected Devices Problem ………70 Solution Discussion 2-22. Running Integration Problem Solution 71 Discussion m, 2-23 Enabling Bash Completion of Flutter SDK Commands 72 Problem mmmm. 72 Solution 72 Discussion,,,………,72 2-24 Cleaning build Files of Flutter Apps.mam.....mann. 74 Problem 74 Solution,…174 Discussion 74 TABLE OF CONTENTS 2-25 Managing flutter SDK Problem mm. Solution mm. Discussion 2-26 Summary Chapter 3: Essential Dart 3-1. Understanding Built-In Types Problem Solution Discussion 3-2. Using enumerated Types 81 Problem mm. Solution………81 Discussion 82 3-3. Using Dynamic Type Problem 83 Sout0n,……83 Discussion mmmm.83 3-4. Understanding Functions 84 Problem 84 Solution …84 Discussion…84 3-5. Using Typedefs.… 86 Problem mm. mmm., 86 Soluti0n……………………………………aa.86 Discussion mgmgm86

...展开详情
试读 127P Flutter Recipes: Mobile Development Solutions for iOS and Android
立即下载 低至0.43元/次 身份认证VIP会员低至7折
抢沙发
一个资源只可评论一次,评论内容不能少于5个字
关注 私信 TA的资源
上传资源赚积分,得勋章
最新推荐
Flutter Recipes: Mobile Development Solutions for iOS and Android 21积分/C币 立即下载
1/127
Flutter Recipes: Mobile Development Solutions for iOS and Android第1页
Flutter Recipes: Mobile Development Solutions for iOS and Android第2页
Flutter Recipes: Mobile Development Solutions for iOS and Android第3页
Flutter Recipes: Mobile Development Solutions for iOS and Android第4页
Flutter Recipes: Mobile Development Solutions for iOS and Android第5页
Flutter Recipes: Mobile Development Solutions for iOS and Android第6页
Flutter Recipes: Mobile Development Solutions for iOS and Android第7页
Flutter Recipes: Mobile Development Solutions for iOS and Android第8页
Flutter Recipes: Mobile Development Solutions for iOS and Android第9页
Flutter Recipes: Mobile Development Solutions for iOS and Android第10页
Flutter Recipes: Mobile Development Solutions for iOS and Android第11页
Flutter Recipes: Mobile Development Solutions for iOS and Android第12页
Flutter Recipes: Mobile Development Solutions for iOS and Android第13页
Flutter Recipes: Mobile Development Solutions for iOS and Android第14页
Flutter Recipes: Mobile Development Solutions for iOS and Android第15页
Flutter Recipes: Mobile Development Solutions for iOS and Android第16页
Flutter Recipes: Mobile Development Solutions for iOS and Android第17页
Flutter Recipes: Mobile Development Solutions for iOS and Android第18页
Flutter Recipes: Mobile Development Solutions for iOS and Android第19页
Flutter Recipes: Mobile Development Solutions for iOS and Android第20页

试读结束, 可继续阅读

21积分/C币 立即下载 >