To get the most out of this book
Some experience in at least one object-oriented programming language is strongly recommended.
In order to follow along with the code, you will need a Windows PC, Mac, Linux, or Chrome OS machine connected to the web, with at least 8 GB of RAM and the permissions to install new software.
An Android or iOS device is suggested but not necessary as there are simulators/emulators that can run on your machine. All software used in this book is open source or free to use.
Chapter 1, Getting Started with Flutter, explains in detail the installation process; however, you should have the following:
Software/hardware |
OS Requirements |
Recommended editors: Visual Studio Code, Android Studio, or IntelliJ Idea |
Windows, macOS, or Linux |
The Flutter SDK |
Windows, macOS, or Linux |
An emulator/simulator or an iOS or Android device |
Windows, macOS, or Linux |
In order to create apps for iOS, you will need a Mac.
If you are using the digital version of this book, we advise you to type the code yourself or access the code via the GitHub repository (a link is available in the next section). Doing so will help you avoid any potential errors related to the copying and pasting of code.
If you like this book or want to share your ideas about it, please write a review on your favorite platform. This will help us make this book better, and you’ll also earn the author’s and reviewers’ everlasting gratitude.
Download the example code files
The code bundle for the book is hosted on GitHub at https://github.com/PacktPublishing/Flutter-Cookbook-Second-Edition/. We also have other code bundles from our rich catalog of books and videos available at https://github.com/PacktPublishing/. Check them out!
Download the color images
We also provide a PDF file that has color images of the screenshots/diagrams used in this book. You can download it here: https://packt.link/WE615.
Conventions used
There are a number of text conventions used throughout this book.
CodeInText
: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. For example: “Add the latest version of the lint package as a dev dependency in your pubspec.yaml
, and remove any other linting packages you may find there.”
A block of code is set as follows:
dependencies:
flutter:
sdk: flutter
http: ^0.13.5
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
dev_dependencies:
flutter_test:
sdk: flutter
lint: ^2.0.0
Any command-line input or output is written as follows:
# cp /usr/src/asterisk-addons/configs/cdr_mysql.conf.sample
/etc/asterisk/cdr_mysql.conf
Bold: Indicates a new term, an important word, or words that you see on the screen. For instance, words in menus or dialog boxes appear in the text like this. For example: “ In order to use Google Maps, you need to obtain an API key.”
Warnings or important notes appear like this.
Tips and tricks appear like this.