सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।
Fair एक Flutter पैकेज है जिसका उपयोग डायनामिक विजेट अपडेट के लिए किया जाता है, जिससे सर्वर-चलित UI रेंडरिंग संभव होती है। यह डेवलपर्स को सर्वर से प्राप्त डेटा के आधार पर विजेट को बनाने और संशोधित करने की अनुमति देता है, जिससे ऐप अपडेट के बिना लचीले और प्रतिक्रियाशील उपयोगकर्ता इंटरफ़ेस को संभव बनाया जाता है। Flutter के साथ बनाया गया, यह Android और iOS दोनों प्लेटफ़ॉर्म का समर्थन करता है, जिससे यह वास्तविक समय में सामग्री बदलने की आवश्यकता वाले एप्लिकेशन के लिए आदर्श है। पैकेज को pub.dev के माध्यम से मौजूदा Flutter प्रोजेक्ट में आसानी से एकीकृत किया जा सकता है और hacktons.cn द्वारा बनाए रखा जाता है।
उपयोग
सर्वर से डायनामिक UI अपडेट
रियल-टाइम कंटेंट रेंडरिंग
सर्वर-चालित फॉर्म
लाइव UI बदलाव के साथ A/B परीक्षण
एप्लिकेशन फीचर्स का प्रगतिशील सुधार
मुख्य विशेषताएँ
सर्वर-चालित विजेट उत्पादन
रिस्टार्ट के बिना हॉट रीलोड जैसे अपडेट
क्रॉस-प्लेटफ़ॉर्म (Android & iOS) समर्थन
pub.dev के माध्यम से सरल एकीकरण
जटिल विजेट वृक्ष का समर्थन करता है
इनके लिए उपयुक्त
लगातार उपयोगकर्ता इंटरफेस बदलाव की आवश्यकता वाले ऐप्स
सर्वर-ड्रिवन डिज़ाइन पैटर्न का उपयोग करने वाली टीमें
A/B टेस्टिंग कार्यान्वयन करने वाले विकासकर्मी
विकसित उपयोगकर्ता इंटरफेस आवश्यकताओं वाले प्रोजेक्ट्स
त्वरित प्रोटोटाइपिंग और अनुकूलन
विचार योग्य बातें
विश्वसनीय सर्वर-पक्ष डेटा संरचना की आवश्यकता होती है
अवस्था प्रबंधन की सावधानीपूर्वक देखभाल की आवश्यकता है
बड़े एप्लिकेशन में जटिलता बढ़ सकती है
सर्वर से निरंतर JSON स्कीमा पर निर्भर करता है
पूरी तरह से स्थिर UI के लिए उपयुक्त नहीं
मूल README
संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।
Fair is a dynamic framework designed for Flutter. Through the automatic conversion of native Dart source files by the Fair Compiler tool, the project can obtain the ability to dynamically update the Widget Tree and State.
The goal of creating Fair is to support updates through business bundles and JS distribution without the release of versions (Android, iOS, Web), similar to React Native. After integrating with Flutter Fair, you can quickly publish new pages without waiting for your app's next release date. Fair provides standard widgets, which can be used as a new dynamic page or as part of an existing Flutter page, such as typography/style modification of operation bits, full page replacement, partial replacement, etc.
Fair's UI rendering is lossless and can be restored at the pixel level. Take a look at the effect of escaping some pages of Best Flutter UI Templates:
The project used is from https://github.com/mitesh77/Best-Flutter-UI-Templates
location:/example/lib/best_flutter_ui
🏛Architecture
🚀 Running
Use Flutter Fair require few steps.
step1:download fair project source code
It is recommended to download fair to the local and dependencies on the relative path.
The download method is as follows:
git clone https://github.com/wuba/fair.git
step2:Add dependency inside pubspec.yaml
Assuming that the fair project and your own project are in the same folder:
After using faircli to configure the local hot update service, open the developer options on the mobile device, select the local mode, enter the ip of the development machine, then preview fair dynamic effect
Fair-Online is an integrated cloud development platform for Flutter developers, from online development of Flutter, to real-time compilation and preview, packaging and publishing, and dynamic release of end-side updates, to realize the dynamic online Flutter.
Developers do not need to configure the Flutter development environment, develop and debug code online, compile and preview in real time, and what you see is what you get. Combined with the Flutter dynamic framework Fair and the hot update platform FairPushy created by the 58 open source team, Flutter online dynamics are realized.
This project follows the all-contributors specification. Contributions of any kind welcome!
👏🏻Supporters
🔧Build together
Submit issues through Issue, contribute code through Pull Request, and the administrator will review the code.
Friends who are interested in Fair can join the exchange group. For technical consultation and discussion, please go to
WeChat secretary
WeChat group
License
Copyright (C) 2005-present, 58.com. All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided
with the distribution.
* Neither the name of 58.com nor the names of its
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.