Skip to content

Technical Guidance

Matt Carroll edited this page Oct 21, 2023 · 1 revision

This document describes project-wide technical decisions, based on guiding principles.

Use widget composition and properties over modifier methods

To respect existing and proven Flutter fundamentals, and avoid numerous hacks, the swift_ui project uses a combination of widget composition and widget properties in place of Swift UI modifier methods.

Learn more about Swift UI modifier methods and Flutter

Learn how to avoid using modifier methods

Use the same names for widgets and properties

When cloning a Swift UI View to a Flutter Widget, name the Widget the same as the View, and where possible, create Widget properties with the same names as the View properties.

Learn more about naming widgets and properties