Getting Started with Fair Dynamic Framework for Flutter: Toolchain Installation and Workflow
This article introduces the Fair dynamic framework for Flutter, explains the pain points of manual dynamic updates, and provides a step‑by‑step guide—including tool installation, project creation, template usage, hot‑reload packaging, and preview—so developers can quickly adopt dynamic UI updates in mobile apps.
Flutter is Google’s open‑source cross‑platform UI framework, widely adopted for its consistent multi‑device experience and rendering performance. As usage scales, developers need a dynamic solution to update widget trees and state without full rebuilds; Fair, a dynamic framework developed by 58, addresses this need.
The Fair toolchain consists of three parts: rapid project scaffolding, ready‑made page/component templates, and a local hot‑update mechanism that enables fast preview of dynamic features during development.
First, install the Fair command‑line tool and the Android Studio/IntelliJ plugin. The CLI is installed with dart pub global activate faircli , and the plugin can be found in the IDE’s plugin marketplace under the name "FairTemplate".
Next, create the required projects using the CLI. A dynamic project is created with faircli create -n dynamic_project_name , while the carrier (host) project is created with faircli create -k carrier -n carrier_project_name . The carrier project provides bundle download, loading, and basic runtime support.
Within the IDE, use the Fair plugin to generate template code for pages or components, then perform any necessary custom development on the generated files.
After completing feature development, the plugin offers a one‑click packaging command that builds the dynamic bundle. The resulting bundle can be served locally via the hot‑update service; when the console prints the expected startup messages, the service is ready.
Run the carrier project on a device, open the developer options page, input the host IP, and select the desired bundle to preview the dynamic UI. Shaking the device triggers a hot‑reload for rapid iteration.
Finally, the bundled assets can be uploaded to a remote environment directly from the IDE, completing the end‑to‑end workflow.
The article concludes that the Fair toolchain significantly reduces the friction of using Fair, and the team will continue to incorporate community feedback for future improvements.
58 Tech
Official tech channel of 58, a platform for tech innovation, sharing, and communication.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.