Programming Flutter
Native, Cross-Platform Apps the Easy Way
by: Carmine Zaccagnino
Published | 2020-02-20 |
---|---|
Internal code | czflutr |
Print status | In Print |
Pages | 368 |
User level | Beginner |
Keywords | Flutter, multi-platform, Android, iOS, mobile development, mobile app development, Fuchsia OS, Dart |
Related titles | Hello, Android by Ed Burnette ISBN:978-1-68050-037-0 |
ISBN | 9781680506952 |
Other ISBN |
Channel epub: 9781680507638 Channel PDF: 9781680507645 Kindle: 9781680507614 Safari: 9781680507621 Kindle: 9781680507614 |
BISACs | COM051460 COMPUTERS / Programming / Mobile DevicesCOM060160 COMPUTERS / Web / Web ProgrammingCOM060160 COMPUTERS / Web / Web Programming |
Highlight
Develop your next app with Flutter and deliver native look, feel, and performance on both iOS and Android from a single code base. Bring along your favorite libraries and existing code from Java, Kotlin, Objective-C, and Swift, so you don’t have to start over from scratch. Write your next app in one language, and build it for both Android and iOS. Deliver the native look, feel, and performance you and your users expect from an app written with each platform’s own tools and languages. Deliver apps fast, doing half the work you were doing before and exploiting powerful new features to speed up development. Write once, run anywhere.
Description
Learn Flutter, Google’s multi-platform mobile development framework. Instantly view the changes you make to an app with stateful hot reload, and define a declarative UI in the same language as the app logic without having to use separate XML UI files. You can also reuse existing platform-specific Android and iOS code and interact with it in an efficient and simple way.
Use built-in UI elements—or build your own—to create a simple calculator app. Run native Java/Kotlin or Objective-C/Swift methods from your Flutter apps, and use a Flutter package to make HTTP requests to a Web API or to perform read and write operations on local storage. Apply visual effects to widgets, create transitions and animations, create a chat app using Firebase, and deploy everything on both platforms.
Get native look and feel and performance in your Android and iOS apps, and the ability to build for both platforms from a single code base.
Contents and Extracts
<b>Preface</b>
- Getting Started with Flutter
- Making Your First Flutter App
- Get Familiar with Dart Syntax and Flutter Classes
- Give the App Your Personal Touch <b>excerpt</b>
- Where We’re Going Next
- Laying Out More Widgets
- Introducing Layout Widgets
- Contain and Add Padding to Widgets Using Invisible Layout Widgets
- Add Your Own Assets to the App
- Displaying Images
- Vertical Layout
- Horizontal Layout: The Row
- Making Grids
- The Card
- Fill the Space Available in the View Using Expanded
- Slivers, Custom Scrollables, and Collapsable App Bars
- The Key
- Where We’re Going Next
- Building a Calculator App <b>excerpt</b>
- Importing Basic Dependencies
- Writing main
- The Calculator’s Home Page
- How the App Will Be Structured
- Implement the Basic Layout
- Let’s Give the Calculator a Screen
- Add the Deletion Row
- The Third Row
- Why a GridView Wouldn’t Work
- Make the App Look and Work Right with Expanded
- The Finished Layout
- Implement the Calculations
- Use the Calculation Inside the App
- Wrapping Up the Calculator
- What If We Try to Divide by 0?
- Where We’re Going Next
- Beyond the Standard Library: Plugins and Packages
- An Introduction to Packages
- Package Usage Example
- Making Your Own Packages
- Publishing a Package to Pub
- Packages for Windows, macOS, and Linux
- Where We’re Going Next
- Making Your First Flutter App
- Doing More with Flutter
- Network and Storage I/O and Navigation
- The API
- The http Package
- Writing Methods to Fetch Comics
- What You Need to Build the UI: Navigation and the InheritedWidget <b>excerpt</b>
- Build the App’s Basic UI
- Building the Comic Page
- Using the CircularProgressIndicator
- Making Everything Faster by Caching to Local Storage
- Allowing the User to Click the Image and Go to the Website: The url_launcher Package
- Adding Comic Selection by Number
- Permanent Data I/O in Flutter: Adding “Starred” Comics
- Where We’re Going Next
- Testing and Debugging Flutter Apps
- Testing
- Testing the XKCD App: Using Mock Objects
- Throwing and Catching Exceptions
- Assert Statements
- Where We’re Going Next
- Build a Chat App Using Firebase
- What Is Firebase?
- Animations and Transistions
- Custom Shapes and Drawing in Flutter Apps Using Painters
- The StreamBuilder
- Building the Chat App
- Where You’re Going Next
- Network and Storage I/O and Navigation