As an iOS developer, keep it simple

1. For example, to add a click to a view, you need to wrap the GestureDetector layer in the outermost layer and place the Widget you want to implement inside the Child node.

If you want to implement Opacity in a view, for example, you need to wrap the top layer of Opacity on top of any view, and place the Widget you want to implement on the Child node.

3. For example, if you want to create an effect that requires rounded corners or borders, you need to cover the outer layer of a Container and set rounded corners or borders on the decoration property.

For example, if you want to Center a view, wrap Center in the outermost layer and place your Widget in the Child node.

5. For example, if you want a view to have an inner margin, wrap a Padding around the outer layer and place your Widget in the Child.

For example, if you want a view to refresh, pack a RefreshIndicator in the outermost layer and place your Widget in the Child.

7. For example, if you want to Stack several views, wrap a Stack in the outermost layer and place your Widgets in children.

If you like this article, reward my younger brother a star bai ~ github.com/coderiding/…