Home Page Icon
Home Page
Table of Contents for
Contributors
Close
Contributors
by Simone Alessandria
Flutter Projects
Title Page
Copyright and Credits
Flutter Projects
Dedication
About Packt
Why subscribe?
Contributors
About the author
About the reviewers
Packt is searching for authors like you
Preface
Who this book is for
What this book covers
To get the most out of this book
Download the example code files
Conventions used
Get in touch
Reviews
Hello Flutter!
Technical requirements
Understanding the Dart language basics
Hello Dart
Area calculator
For loops and strings
The Arrow syntax and the ternary operator
While loops, lists, and generics
foreach() 
map()
where()
Classes and objects
Using getters and setters
Constructors
This keyword
Creating your first Flutter app
Running your first Hello World app
Using MaterialApp and Scaffold
Formatting Text and Using Columns
Showing images and using buttons
Showing an AlertDialog box
Using padding 
Using SingleChildScrollView
Summary
Questions
Further reading
Miles or Kilometers? Using Stateful Widgets
Technical requirements
Project overview
Understanding state and stateful widgets
Creating the measure converter project
Using stateful widgets
Reading user input from TextField
Creating a DropdownButton widget
Updating a DropdownButton widget
Completing the UI of the app
Adding the business logic 
Summary
Questions
Further reading
My Time - Listening to a Stream of Data
Technical requirements
Building the timer home page layout
Installing the percent_indicator Package in your app
Using a stream and asynchronous programming in Flutter
Showing the time in the main screen: StreamBuilder
Enabling the buttons
Navigating to the settings route
Building the Settings screen layout
Using the GridView.Count() constructor
Adding custom SettingButtons to the widgets.dart file
Using shared_preferences to read and write app data
Summary
Questions
Further reading
Pong Game - 2D Animations and Gestures
Technical requirements
Building the UI of the app
Creating the ball
Creating the bat
Creating the grid
Using animations
Adding the game logic
Using GestureDetector
Checking the bat position
Adding randomness to the game
Adding the score and completing the game
Summary
Questions
Further reading
Let's Go to the Movies - Getting Data from the Web
Technical requirements
Project overview
Connecting to a web service and retrieving data with HTTP
Creating the app and connecting to the API with the HTTP library
Parsing JSON data and transforming it into model objects
Adding the Movie model class
Adding a ListView to show data
Showing a trailing icon in a ListTile
Showing the detail screen and passing data through screens
Adding the search feature
Summary
Questions
Further reading
Store That Data - Using Sq(F)Lite To Store Data in a Local Database
Technical requirements
Essential theory and context
Project overview
Using sqflite databases
Creating an sqflite database
Testing the database
Creating the model classes
Showing database data to the user
Inserting and editing data
Deleting elements
Challenge – completing the Items Screen functionality
Challenge solution – completing the Items Screen functionality
Step 1
Step 2
Step 3
Step 4
Step 5
Step 6
Summary
Questions
Further reading
Firing Up the App - Integrating Firebase into a Flutter App
Technical requirements
Introducing Firebase 
Project overview
Adding Firebase to your Flutter project
Creating a Firestore database
Integrating Firebase into a Flutter app
Configuring your Android app
Configuring your iOS app
Testing Firebase integration with your app
The EventDetail model class
Creating the Event Detail screen
Adding authentication to your app
Adding the login/signup screen
Adding the authentication logic
Introducing Firebase rules
Writing data to Firebase: Adding the favorite feature
Showing and deleting favorites
Summary
Questions
Further reading
The Treasure Mapp - Integrating Maps and Using Your Device Camera
Technical requirements
Geolocation and camera – a powerful duo
Integrating Google Maps into Flutter
Showing a map with Google Maps
Using geolocation to find the current position
Adding a marker to the map
Creating the place model and helper classes
Inserting new places on the map
Editing and deleting existing places
Using the device camera
Saving and retrieving pictures as local files
Summary
Questions
Further reading
Let's Play Dice: Knockout - Creating an Animation with Flare
Technical requirements
Project overview
What's Flare?
Creating objects with Flare
Creating new objects in Flare
Animating objects with Flare
Creating the Roll animation
Integrating Flare into a Flutter app
Creating the Dice class
Creating the Single Dice screen
Creating the Knockout game
Summary
Questions
Further reading
ToDo App - Leveraging the BLoC Pattern and Sembast
Technical requirements
Project overview
Using sembast to store data
Sembast: dealing with data
Opening a sembast database
Creating CRUD methods with sembast
Using sembast
The BLoC pattern
Using the BLoC pattern
The BLoC guideline step by step
1. Creating the BLoC class
2. Declaring the data that will change
3. Setting the StreamControllers
4. Creating the getters for streams and sinks
5. Adding the logic of the BLoC
6. Creating the constructor
7. Setting the dispose() method
Using BLoCs and Streams to update the UI
The HomePage screen user interface
The TodoScreen user interface
Summary
Questions
Further reading
Building a Flutter Web App
Technical requirements
Essential theory and context
Project overview
Building a Flutter app that runs on a browser
Connecting to the Google Books API web service
Creating the Book model class
Using the HTTP service to retrieve books
Creating a responsive UI
Responsive widgets: ListView or Table?
Creating the Table for larger devices
Creating the ListView for smaller devices
Using shared_preferences to save data in Android, iOS, and the web
Completing the UI of the app
Publishing a Flutter app to a web server
Summary
Questions
Further reading
Appendix
Setting up your environment to build Flutter projects
Installing Flutter on a Windows PC
Installing Git
Installing the Flutter Software Development Kit (SDK)
Installing Android Studio
Connecting an Android physical device
Configuring Android Studio
Installing and configuring VS Code
Installing Flutter on a Mac
Installing the Flutter SDK
Installing Xcode
Assessment
Assessment
Chapter 1
Chapter 2
Chapter 3
Chapter 4
Chapter 5
Chapter 6
Chapter 7
Chapter 8
Chapter 9
Chapter 10
Chapter 11
Other Books You May Enjoy
Leave a review - let other readers know what you think
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Prev
Previous Chapter
Why subscribe?
Next
Next Chapter
About the author
Contributors
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset