Book Image

Taking Flutter to the Web

By : Damodar Lohani
Book Image

Taking Flutter to the Web

By: Damodar Lohani

Overview of this book

Using a shared codebase in addition to an extensive range of tools in the Flutter ecosystem optimized for browsers, the Flutter framework has expanded to enable you to bring your mobile apps to the web. You’ll find out how web developers can leverage the Flutter framework for web apps with this hands-on guide. Taking Flutter to the Web will help you learn all about the Flutter ecosystem by covering the tools and project structure that allows you to easily integrate Flutter into your web stack. You’ll understand the concepts of cross-platform UI development and how they can be applied to web platforms. As you explore Flutter on the web, you'll become well-versed with using Flutter as an alternative UI platform for building adaptive and responsive designs for web apps. By the end of this Flutter book, you'll have built and deployed a complete Flutter app for the web and have a roadmap ready to target the web for your existing Flutter mobile apps.
Table of Contents (17 chapters)
1
Part 1: Basics of Flutter Web
5
Part 2: Flutter Web under the Hood
9
Part 3: Advanced Concepts

An introduction to Navigator 2.0

Navigator 2.0 is a declarative navigation API that allows us complete control over our application’s navigation stack. This also allows us to control routes much like any other state of our application.

The Navigator 2.0 API adds new classes to the framework in order to make the app’s screens a function of the app state. This also provides the ability to parse routes from the underlying platform (such as web URLs). Navigator 2.0 is provided alongside the existing navigator. That means Navigator 2.0 is not a replacement for the existing imperative navigation API; it’s just another way of handling our app’s navigation. It was introduced because with Flutter being a cross-platform framework, the imperative navigation API (which is more suitable for mobile-only applications) was limiting the progress of Flutter on the web. Navigator 2.0 is more suitable for platforms such as applications on the web, where underlying platform...