Test in DartPad

View on GitHub

Note how Flutter uses the Center widget.
SwiftUI renders a view’s contents in its center by default.
That’s not always the case with Flutter.
Scaffold doesn’t render its body widget at the center of the screen.
To center the text, wrap it in a Center widget.
To learn about different widgets and their default behaviors, check out
the Widget catalog.

Adding Buttons

In SwiftUI, you use the Button struct to create a button.

Button

"Do something"

// this closure gets called when your

// button is tapped

To achieve the same result in Flutter,
use the CupertinoButton class:

Test in DartPad

View on GitHub