Flutter and Dart: Up and Running: Build native apps for both iOS and Android using a single codebase

Flutter and Dart: Up and Running: Build native apps for both iOS and Android using a single codebase

Flutter and Dart: Up and Running: Build native apps for both iOS and Android using a single codebase
Автор: Chopra Deepti, Khurana Roopal
Дата выхода: 2023
Издательство: BPB Publications
Количество страниц: 204
Размер файла: 1,3 МБ
Тип файла: PDF
Добавил: codelibs
 Проверить на вирусы  Дополнительные материалы 

Cover Page
Title Page
Copyright Page
Dedication Page
About the Authors
Acknowledgement
Preface
Errata
Table of Contents
1. Introduction to Flutter
Introduction
Structure
Objectives
Introduction to Flutter
Features of Flutter
Architecture of Flutter
Advantages of Flutter
Disadvantages of Flutter
Capabilities that make Flutter more powerful over other tools
Conclusion
Questions
2. Installing the Flutter SDK
Introduction
Structure
Objectives
Setting up environment for Flutter
Installation of Flutter SDK on Windows
Update the Path
Run Flutter Doctor
Setting up Android Device
Set up Android Emulator-
Licenses of Android SDK Platform-
Setting up an Editor
Installing Flutter and Dart Plugins
Linux or Windows
Validating the setup with the Flutter Doctor
Tools for Building Flutter Based Application
Conclusion
Questions
3. Introduction to Dart
Introduction
Structure
Objectives
Introduction to Dart
Need for Dart Coding for Flutter
Declaring and referencing variables
Operators in Dart
Arithmetic operators
Relational Operators
Type test operators
Bitwise operators
Assignment Operators
Logical operators
Conditional operators
Cascade Notation Operator
Control statements in Dart
Break statement
Continue statement
Decision making statements
if Statement
if…else Statement
else…if… Statement
Nested if Statement
Switch
For Loop
While Loop
Do-while loop
Conclusion
Questions
4. Classes and Functions in Dart
Introduction
Structure
Objectives
Classes and Functions in Dart
Declaration of class
Creating an instance of the class
Dart Constructors
Named Constructors
The ‘this’ Keyword
Getters and Setters in Dart class
Class Inheritance
Types of Inheritance
Class Inheritance and Method Overriding
The static keyword
The Super Keyword
Import Packages
Dart Package Manager
Dart Libraries
Importing a library
Name alias of Library
Implementing Asynchronous Programming
Conclusion
Questions
5. Introduction to Widgets
Introduction
Structure
Objectives
Creating files and folders using widgets
Installation of File Manager
Structuring Widgets
Understanding Widget Tree
Inherited Widget
Conclusion
Questions
6. Using Common Widgets
Introduction
Structure
Objectives
Using common widgets
Adding Animation to App
AnimatedAlign Widget
AnimatedBuilder Widget
Performance optimizations
AnimatedBuilder
AnimatedContainer Widget
AnimatedCrossFade Widget
AnimatedDefaultTextStyle Widget
AnimatedListState class Null safety
AnimatedModalBarrier class Null safety
AnimatedPhysicalModel Widget
AnimatedPositioned Widget
Code-based animations
Drawing-based animations
Creating an App’s Navigation
Build two routes
Use Navigator.push() to navigate to second route
Use Navigator.pop() method to return to the first route
Conclusion
Questions
7. Building Flutter Application
Introduction
Structure
Objectives
Building Flutter application using Android specific code
Install Flutter and set up an editor
Create a new Flutter project
Designing the app’s UI
Implement app logic
Test the app
Deploy the app
Implement the platform channel on Android
Invoke the platform channel from Flutter
Handle the method call on Android
Return a result from Android
Building Flutter application using iOS specific code
Conclusion
Questions
8. Introduction to Packages
Introduction
Structure
Objectives
Type of packages using Dart Packages
Types of Packages
Library packages
Application packages
Command-line packages
Plugin packages
Experimental packages
Web
Mobile
Desktop
Testing
Utilities
Dart Package
Generic dart code
Flutter Plugin
Develop a Flutter Plugin Package
Create a new package
Define the plugin's API
Add platform-specific code
Test the plugin
Publish the plugin
Dart Package Manager
Installing a Package
Flutter Plugin Package
Steps for developing Dart packages
Creating a package
Implementing the package
Publishing packages
Conclusion
Questions
9. Building Layouts
Introduction
Structure
Objectives
Introduction to Layout
Container
Row and Column
Expanded
ListView
Stack
Card
Creating a text, image or icon
Selection of a layout widget
Creation of a Visible Widget
Addition of layout widget to page
Material apps
Type of Layout Widgets
Single Child Widgets
Layout Application
Padding in Flutter
Align Widget
Container
Stacks
GridView
Scaffold
Conclusion
Questions
10. Flutter Database Concepts
Introduction
Structure
Objectives
SQLite
Adding Firebase
Adding Firestore Backend
JSON, XML, HTML
Hive
Moor
Conclusion
Questions
Index

Flutter and Dart are quickly becoming the go-to tools for building scalable native mobile apps. Whether you're a beginner looking to get started with mobile development or an experienced developer looking to add Flutter and Dart to your toolkit, this book has something for you.
In this practical guide, you'll learn everything you need to know to get started with Flutter and Dart and build your cross-platform mobile apps. The book starts with an overview of the Flutter and Dart framework. It then takes you through the basics of app development, and gives you a solid foundation to build upon. The book then focuses on how to design and build user interfaces with Flutter, including how to use widgets, layouts, and themes. It then helps you understand how to manage app state and handle data in Flutter, as well as how to optimize performance and integrate with native code. In addition to the core concepts, the book covers advanced topics to help you build robust and reliable apps. Lastly, it explores real-world case studies and examples of Flutter and Dart apps, providing inspiration and guidance for your projects.
By the end of the book, you'll be able to build stunning multi-platform mobile apps with Flutter and Dart.

What you will learn

  • Learn how to design and build user interfaces with Flutter.
  • Discover techniques for managing app state and handling data in Flutter.
  • Learn how to use Flutter and Dart for network programming and asynchronous programming.
  • Get tips for testing and debugging Flutter and Dart apps.
  • Explore best practices for optimizing app performance and integrating with native code.

Who this book is for

This book is for Mobile app developers, Cross-platform developers, and App developers who want to build and deploy cross-platform apps with Flutter and Dart.


Похожее:

Список отзывов:

  • Эта книга — один из самых сильных претендентов на звание лучшего современного руководства по Flutter для разработчиков, которые уже имеют базовый опыт в программировании и хотят не просто "слепить" первое приложение, а понять экосистему Flutter и Dart изнутри.