Test in DartPad

View on GitHub

Flutter gives you access to a variety of buttons with predefined styles.
The CupertinoButton class comes from the Cupertino library.
Widgets in the Cupertino library use Apple’s design system.

Aligning components horizontally

In SwiftUI, stack views play a big part in designing your layouts.
Two separate structures allow you to create stacks:

HStack for horizontal stack views

VStack for vertical stack views

The following SwiftUI view adds a globe image and
text to a horizontal stack view:

HStack

Image

systemName

"globe"

Text

"Hello, world!"

Flutter uses Row rather than HStack:

Test in DartPad

View on GitHub

Aligning components vertically