For example, how do you build a CustomButton
that takes a label in the constructor?
Create a CustomButton that composes a ElevatedButton with a label,
rather than by extending ElevatedButton:

Then use CustomButton,
just as you’d use any other Flutter widget:

Navigation

This section of the document discusses navigation
between pages of an app, the push and pop mechanism, and more.

Navigating between pages

In UIKit, to travel between view controllers, you can use a
UINavigationController that manages the stack of view controllers
to display.

widget
that manages routes. A route roughly maps to a

To navigate between pages, you have a couple options:

Specify a Map of route names.

Directly navigate to a route.

The following example builds a Map.

Navigate to a route by pushing its name to the Navigator.