Sunday, May 19, 2024
HomeiOS DevelopmentFlutter Apprentice | raywenderlich.com

Flutter Apprentice | raywenderlich.com


Construct for each iOS and Android with Flutter!

Flutter is a brand new and thrilling software program growth toolkit that permits you to goal a number of platforms directly, so you possibly can construct apps for iOS, Android and even net and desktop, all from a single codebase.

Just like trendy net applied sciences, Flutter makes use of a declarative method to UI growth. You may reap the benefits of “sizzling reload” of latest code whereas creating, and your apps will carry out at native pace due to Flutter’s customized rendering engine.

It’s been the dream of cellular builders for years to discover a cross-platform instrument that permits you to construct for each iOS and Android with out having to put in writing and keep two separate codebases. With Flutter and Flutter Apprentice, you possibly can obtain that dream!

Notice: Between October 6, 2021 and January 6, 2022, this e book is on the market at no cost, due to the Flutter group at Google! You may entry the free version right here, and you’ll be taught extra in regards to the stay e book membership that the Flutter group is operating right here.

Earlier than You Start

This part tells you a couple of issues it’s worthwhile to know earlier than you get began, akin to what you’ll want for {hardware} and software program, the place to search out the venture recordsdata for this e book, and extra.

Part I: Construct Your First Flutter App

The chapters on this part will introduce you to Flutter, get you up and operating with a Flutter growth surroundings and stroll you thru constructing your first Flutter app.

You’ll study the place Flutter got here from and why it exists, perceive the construction of Flutter tasks, and see the way to create the person interface of a Flutter app.

You’ll additionally get your first introduction to the important thing element present in Flutter person interfaces: Widgets!

Welcome to Flutter! This chapter explains what Flutter is, why it is best to use it and the way to get your growth surroundings arrange.


On this chapter, you’ll construct your first Flutter app from scratch and get the grasp of fundamentals.


Part II: All the pieces’s a Widget

On this part you’ll begin to construct a full-featured recipe app named Fooderlich. You’ll acquire an understanding of and use a variety of widgets accessible in Flutter, and be taught in regards to the concept of how widgets work behind the scenes.

You’ll then dive deeper into structure widgets, scrollable widgets and interactive widgets.

Get began with the elemental widgets to construct your app. Be taught to use construction and navigation, show, and positional widgets!


Dive into the speculation behind widgets. Get a greater understanding of how widgets are rendered, how their lifecycle works and which instruments to make use of to debug them.


Scrollable content material is a should in any app. On this chapter, you will study utilizing checklist and grid widgets to show content material vertically and horizontally.


Discover ways to incorporate controls and enter widgets to set off updates by working with widgets like textual content fields, sliders, colour pickers, enter chips and dismissable widgets.


Part III: Navigating Between Screens

You’ll proceed engaged on the Fooderlich app on this part, studying about navigating between screens and dealing with deep hyperlinks.

Subjects you’ll be taught embrace Navigator 2.0 and Flutter Internet.

Learn the way Navigator 2.0 differs from Navigator 1.0 and the way to use it so as to add navigation declaratively.


Discover ways to construct a Flutter app that handles deep hyperlinks for each cellular and net apps.


Part IV: Networking, Persistence and State

Most apps work together with the community to retrieve knowledge after which persist that knowledge domestically in some type of cache, akin to a database. On this part, you’ll construct a brand new app that permits you to search the Web for recipes, bookmark recipes, and save their substances right into a purchasing checklist.

You’ll study making community requests, parsing the community JSON response, and saving knowledge in a SQLite database. You’ll additionally get an introduction to utilizing Dart streams.

Lastly, this part may even dive deeper into the essential subject of app state, which determines the place and the way your person interface shops and refreshes knowledge within the person interface as a person interacts together with your app.

This chapter will train you the way to save easy knowledge to your gadget’s native storage on each Android and iOS gadgets. Use this to save lots of flags, IDs, numbers and extra.


This chapter will train you the way to serialize knowledge from JSON strings to Dart mannequin courses. That is obligatory when utilizing REST APIs to obtain knowledge from the web.


This chapter will train you the way to retrieve knowledge from the web and retailer it in mannequin courses, which you will use to show recipes within the app you have created up to now.


This chapter will train you the way to use the Chopper bundle to retrieve knowledge from the web. In contrast to the built-in networking strategies in Dart, this bundle makes it simple to do all the mandatory duties wanted for REST API communication.


This chapter explains what state administration is and the way to implement it with the Supplier bundle. You’ll learn to hear and react to knowledge modifications in numerous components of the widget tree.


This chapter will train you what streams are, the way to use them in your Flutter app and the way they assist talk knowledge modifications all through your app.


This chapter will train you the way to save advanced knowledge to your gadget’s native retailer utilizing the SQLite database system constructed into Android and iOS.


Part V: Deployment

Constructing an app for you personal gadgets is nice; sharing your app with the world is even higher!

On this part you’ll go over the steps and course of wanted to launch your apps to the iOS App Retailer and Google Play Retailer. You’ll additionally see the way to use platform-specific belongings in your apps.

Whenever you make multiplatform apps, it’s worthwhile to add or construct issues particular to 1 platform or one other. This chapter covers frequent issues to incorporate and the way to implement them.


You are lastly prepared to arrange your Flutter app for the Google Play Retailer. This chapter covers the discharge and deployment course of.


No multiplatform app is full with out an iOS model. This chapter covers the discharge and deployment course of for the Apple App Retailer.


Part VI: Working With Firebase Cloud Firestore

On this part you’ll learn to create and use a Firebase Cloud Firestore. You’ll learn to use it so as to add and retrieve knowledge. Then you’ll study authentication and the way to safe your knowledge.

On this chapter, you’ll learn to create and use a Firebase Cloud Firestore. You’ll be taught to leverage it so as to add and retrieve knowledge. Then you’ll study authentication and the way to safe your knowledge.


Appendices

On this part, you’ll discover the options to the challenges offered within the e book chapters.

That is the answer to the primary problem of Chapter 5.


That is the answer to the second problem of Chapter 5.


RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments