ENGLISH

Pragmatic Flutter

Book information

Publisher
CRC Press
Year
2021
ISBN
0367612097, 9780367612092
Language
english
Format
PDF
Filesize
10 MB (10335057 bytes)
Edition
1
Pages
354\354
Time added
2022-01-05 17:52:54

Description

Have you ever thought of creating beautiful, blazing-fast native apps for iOS and Android from a single codebase? Have you dreamt of taking your native apps to the web and desktop without it costing a fortune? If so, Pragmatic Flutter: Building Cross-Platform Mobile Apps for Android, iOS, Web & Desktop is the right place to start your journey to developing cross-platform apps. Google’s Flutter is the brand-new way for developing beautiful, fluid, and blazing-fast cross-platform apps for Android, iOS, web, and desktops (macOS, Linux, Windows). Google’s new Fuchsia OS user interface (UI) is implemented using Flutter as well. Learning to develop mobile apps with Flutter opens the door to multiple devices, form-factors, and platforms using a single codebase. You don’t need any prior experience using Dart to follow along in this book; however, it’s recommended that readers have some familiarity with writing code using one of the object-oriented programming languages. Your journey starts with learning to structure and organize the Flutter project to develop apps for multiple platforms. Next, you will explore the fundamentals of Flutter widgets. The journey continues with Flutter’s layout widgets while also learning to build responsive layouts. You will get an understanding of organizing and applying themes and styles, handling user input, and gestures. Then you will move on to advanced concepts, such as fetching data over the network and integrating and consuming REST API in your app. You will get hands-on experience on design patterns, data modeling, routing, and navigation for multi-screen apps. When you are finished, you will have a solid foundational knowledge of Flutter that will help you move on to building great and successful mobile apps that can be deployed to Android, iOS, web, and desktop (macOS, Linux, Windows) platforms from a single codebase. Cover Half Title Title Page Copyright Page Dedication Contents Preface Author Chapter 1: Dart Fundamentals: A Quick Reference to Dart 2 The main Function Variables & Data Types Collections List Spread Operator Transform List Items Filtering Adding Item Removing Item Adding Multiple Items Intersection of Two Set(s) Union of Two Set(s) Checking for Key Checking for Value Accessing all Values Iterating Key/Value Pairs Functions Classes Conclusion References Chapter 2: Introduction to Flutter Cross-Platform Solutions Why Flutter Conclusion References Chapter 3: Setting Up Environment System Requirements for macOS Setting up Flutter SDK Setting up for the Android Platform Setting up for the iOS Platform Setting up for Web Setting Up for Desktop Source Code Online Setting up Editor Conclusion References Chapter 4: Flutter Project Structure Choosing Flutter Channel Creating Flutter Project Cross-Platform Flutter Project Structure Running Default App: Android, iOS, Web, and Desktop Running Code Samples Useful Commands Conclusion References Chapter 5: Flutter App Structure Flutter Widgets Display ‘Hello Books’ Text Add Cushion Around the Text Center the Text App Anatomy #1 App Anatomy #2 Conclusion References Chapter 6: Flutter Widgets Image Widget ToggleButtons Widget TextField Widget FutureBuilder Async Widget Placeholder Widget StreamBuilder Async Widget AlertDialog Widget Conclusion References Chapter 7: Building Layouts Revisiting HelloBooksApp Layout Types of Layout Widgets Container Widget Padding Widget ConstrainedBox Widget SizedBox Widget Row Widget IntrinsicHeight Widget Column Widget IntrinsicWidth Widget ListView Widget GridView Widget Table Widget Stack Widget IndexedStack Widget Conclusion References Chapter 8: Responsive Interfaces FittedBox Widget Expanded Widget Flexible Widget FractionallySizedBox Widget LayoutBuilder Widget Wrap Widget Conclusion References Chapter 9: Building User Interface for BooksApp The BooksApp Interface The BooksApp Anatomy Implementing User Interface Custom Widget: BooksListing Conclusion References Chapter 10: Flutter Themes Global Theme Modularizing Themes Using Custom Fonts Local Theme Switching Themes Conclusion References Chapter 11: Persisting Data Light Theme (default) Dark Theme Key/Value Data Store (Shared Preferences Plugin) Local Database (Moor Library) Light Theme on Multiple Platforms Dark Theme on Multiple Platforms Conclusion References Chapter 12: Integrating REST API What Is an API? Flutter Configuration API Key API Endpoint Building Simple Interface Running Code Adding Entitlement AndroidManifest.xml Conclusion References Chapter 13: Data Modeling Parsing JSON ListView Widget: Listing Entries Custom Widget: BookTile Constructing Data Model Converting API Response to BookModel List Run the Code Conclusion References Chapter 14: Navigation and Routing Simple BookDetailsPage Screen Navigator Widget Direct Navigation Detecting Gesture Passing Data Static Navigation Detecting Gesture Passing Data Dynamic Navigation The generateRoute() Function Detecting Gesture Passing Data Conclusion References Chapter 15: The Second Page – BookDetailsPage Widget Anatomy of BookDetailsPage Widget BookDetailsPage Screen’s Layout Implementing BookDetailsPage Widget Conclusion References Chapter 16: Introduction to State Management Revisiting Default CounterApp Vanilla Pattern Conclusion References Chapter 17: ValueNotifier Using ValueNotifier Approach Conclusion References Chapter 18: Provider and ChangeNotifier What Is Provider What Is ChangeNotifier Anatomy of CounterApp Increasing Counter Custom Widget: CountWidget Finished Implementation Conclusion References Chapter 19: BLoC Design Pattern What Is BLoC Pattern? Anatomy of CounterApp Basic BLoC Pattern Implementation Event StreamController Event Sink Event Stream/CounterBloc Constructor State StreamController State Sink State Stream Improvised BLoC Pattern Implementation State StreamController State Sink State Stream Implementing BLoC Pattern Using Library Conclusion References Chapter 20: Unit Testing Package Dependencies The CounterApp Test File Running Unit Tests Conclusion References Chapter 21: Widget Testing Package Dependency Testing Widgets Running Widget Tests Conclusion References Chapter 22: Integration Testing Package Dependency Preview CounterApp Code Test Pair Files Writing Integration Tests Running Integration Tests Conclusion References Chapter 23: Rolling into the World Adding Launcher Icon Releasing Android Apps Releasing iOS Apps Releasing Web Apps Releasing Desktop (macOS) Apps Conclusion References Index

Similar books

Session C11: Ancient Cultural Landscapes in South Europe – their Ecological Setting and Evolution, Session C22: Gardeners from South America, Session S04: Agro-Pastoralism and Early Metallurgy Sessions, Session WS29: The Idea of Enclosure in Recent Iberian Prehistory, Session C88: Rhytmes et causalites des dynamiques de l'anthropisation en Europe entre 6500 ET 500 BC: Hypotheses socio-culturelles et/ou climatiques: Proceedings of the XV UISPP World Congress (Lisbon 4-9 September 2006) / Actes du XV Congrès Mondial (Lisbonne 4-9 Septembre 2006) Vol.36

Session C11: Ancient Cultural Landscapes in South Europe – their Ecological Setting and Evolution, Session C22: Gardeners from South America, Session S04: Agro-Pastoralism and Early Metallurgy Sessions, Session WS29: The Idea of Enclosure in Recent Iberian Prehistory, Session C88: Rhytmes et causalites des dynamiques de l'anthropisation en Europe entre 6500 ET 500 BC: Hypotheses socio-culturelles et/ou climatiques: Proceedings of the XV UISPP World Congress (Lisbon 4-9 September 2006) / Actes du XV Congrès Mondial (Lisbonne 4-9 Septembre 2006) Vol.36

2010 · PDF

THE BRITISH ARMY IN INDIA: ITS PRESERVATION BY AN APPROPRIATE CLOTHING, HOUSING, LOCATING, RECREATIVE EMPLOYMENT, AND HOPEFUL ENCOURAGEMENT OF THE TROOPS. with AN APPENDIX ON INDIA : THE CLIMATE OP ITS HILLS ; THE DEVELOPMENT OF ITS RESODRCBS, INDUSTRY, AND ARTS ; THE ADMINISTRATION OF JUSTICE ; THE BLACK ACT ; THE PROGRESS OF CHRISTIANITY ; THE TRAFFIC IN OPIUM ; THE VALUE OF INDIA ; PERMANENT CAUSES OF DISAFFECTION, AND OF THE RECENT REBELLION ; THE TRADITIONARY POLICY; MISGOVERNMENT BY NATIVE RULERS ; ANNEXATIONS OF THEIR TERRITORY, ETC.

THE BRITISH ARMY IN INDIA: ITS PRESERVATION BY AN APPROPRIATE CLOTHING, HOUSING, LOCATING, RECREATIVE EMPLOYMENT, AND HOPEFUL ENCOURAGEMENT OF THE TROOPS. with AN APPENDIX ON INDIA : THE CLIMATE OP ITS HILLS ; THE DEVELOPMENT OF ITS RESODRCBS, INDUSTRY, AND ARTS ; THE ADMINISTRATION OF JUSTICE ; THE BLACK ACT ; THE PROGRESS OF CHRISTIANITY ; THE TRAFFIC IN OPIUM ; THE VALUE OF INDIA ; PERMANENT CAUSES OF DISAFFECTION, AND OF THE RECENT REBELLION ; THE TRADITIONARY POLICY; MISGOVERNMENT BY NATIVE RULERS ; ANNEXATIONS OF THEIR TERRITORY, ETC.

1858 · PDF

Idries Shah 27 Books Collection : A Perfumed Scorpion, A Veiled Gazelle, Caravan of Dreams, Darkest England, Destination Mecca, Evenings with Idries Shah, Knowing How to Know, Learning How to Learn, Letters and Lectures of Idries Shah, Neglected aspects of Sufi study, Observations, Oriental Magic, Reflections, Seeker after Truth, Special Illumination, Special Problems in the study of Sufi ideas, Sufi thought and action, Tales of the Dervishes, The Dermis Probe, The Elephant in the Dark, The Englishman Handbook, Idries Shah Antology, The Magic Monastery, The natives are restless, wisdom of the Idiots PDF.

Idries Shah 27 Books Collection : A Perfumed Scorpion, A Veiled Gazelle, Caravan of Dreams, Darkest England, Destination Mecca, Evenings with Idries Shah, Knowing How to Know, Learning How to Learn, Letters and Lectures of Idries Shah, Neglected aspects of Sufi study, Observations, Oriental Magic, Reflections, Seeker after Truth, Special Illumination, Special Problems in the study of Sufi ideas, Sufi thought and action, Tales of the Dervishes, The Dermis Probe, The Elephant in the Dark, The Englishman Handbook, Idries Shah Antology, The Magic Monastery, The natives are restless, wisdom of the Idiots PDF.

2022 · PDF

The travels of Capts. Lewis and Clarke from St. Louis, by way of the Missouri and Columbia rivers, to the Pacific ocean; performed in the years 1804, 1805 & 1806, by order of the government of the United States. Containing delineations of the manners, customs, religion, &c. of the Indians, comp. from various authentic sources, and original documents, and a summary of the Statistical view of the Indian nations, from the official communication of Meriwether Lewis. Illustrated with a map of the country, inhabited by the western tribes of Indians

The travels of Capts. Lewis and Clarke from St. Louis, by way of the Missouri and Columbia rivers, to the Pacific ocean; performed in the years 1804, 1805 & 1806, by order of the government of the United States. Containing delineations of the manners, customs, religion, &c. of the Indians, comp. from various authentic sources, and original documents, and a summary of the Statistical view of the Indian nations, from the official communication of Meriwether Lewis. Illustrated with a map of the country, inhabited by the western tribes of Indians

1809 · PDF