透過 Flutter 在 Android 和 iOS 裝置上快速提供精美的行動裝置體驗
透過集合功能整理內容
你可以依據偏好儲存及分類內容。

Reflectly 運用人工智慧來協助使用者規劃及反思自己的日常想法和問題。Reflectly 不採用一體適用的日記方式,而是為每位使用者提供個人化的日誌體驗,鼓勵他們經常回訪,將心理健康變成日常生活的一部分。
Reflect 最初在 iOS 平台上推出時,使用者對 Android 應用程式的高度關注。這個小型團隊面臨許多支援兩個平台的挑戰,為不斷成長的使用者族群提供快速、一致且美觀的體驗。反射在精美設計和使用者體驗中都以此為自豪,因此團隊顯然必須找出新的解決方案。
做法
儘管存在重大問題,Reflectly iOS 應用程式仍迅速建立使用者族群。預期花了六個月的時間嘗試修正現有的實作項目,之後才決定捨棄整個程式碼集,從頭開始。
一開始,最安全的解決方案似乎是建構兩個新的原生應用程式,但只有兩名工程師採取的做法無效。共同創辦人暨技術長 Daniel Vestergaard 解釋:「我們無法負擔建構獨立的 Android 應用程式,所以我們嚴重考慮關閉應用程式,或將其棄用以專注在 iOS 應用程式。
這時團隊找到 Flutter 就行了。技術長及共同創辦人 Daniel Vestergaard 表示:「在試用 Flutter 一段時間後,這個團隊變得很喜歡跨平台一致性、近乎即時的有狀態熱重新載入、強大的工具,以及強大的平台效能。」Flutter 的團隊也很感謝 Flutter 提供「簡單易懂且詳實記錄的程式碼」,
因此決定立即深入瞭解。在 Reflectly 的兩位工程師撰寫第一行 Flutter 程式碼後 2.5 個月後,Reflectly 2.0 開始同時針對 Android 和 iOS 推出。在這段期間,他們不僅完全改寫應用程式,還能夠開發多項大型新功能,例如導入整個付費訂閱項目,以及自訂狀態管理解決方案。
成果與學習成果
答案是,2.0 從眾多不同的 Android 和 iOS 裝置獲得許多使用者好評,而其中許多人都喜歡應用程式的嶄新外觀和設計。透過 Flutter 重新發布應用程式後,Android Reflectly 應用程式在 Play 商店上平均獲得 3.2 星級評等,平均評分為 4.3。此外,該應用程式也列入 Apple 的「New Apps We Love」清單中。該團隊認為原本低的評分主要是因為當機、卡頓和外觀不一致的問題,而這些評分可以使用 Flutter 解決。Vestergaard 說:「簡單來說,我們將 [Flutter 版本] 後 Android 下載次數平均提高了 100 萬人,甚至數千名甚至數百萬人下載 Android 應用程式,因為這讓我們可以保留應用程式、穩定應用程式,並與 iOS 功能保持一致。」
由於 Flutter 會直接繪製每個像素,因此團隊就不用擔心平台之間的算繪差異。現在起,他們可以維護通用的程式碼集,但仍可視情況編寫 iOS 和 Android 專用的 UI。現在,他們能夠將整個開發團隊全心投入單一優質體驗,Reflectly 發現開發時間縮短了 50%,因此他們從每兩週發布一次為「每週發布」版本,並同時在這兩個平台上推出新功能。
關於 Flutter
只要使用 Flutter,任何人都可透過單一程式碼集,為任何畫面建構、測試及部署美觀的應用程式。立即開始使用。
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2025-07-27 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-07-27 (世界標準時間)。"],[],[],null,["# Reflectly quickly spins up a beautiful mobile experience on Android and iOS with Flutter\n\nReflectly uses artificial intelligence to help users structure and reflect on their daily thoughts and problems. Rather than a one-size-fits-all approach to journaling, Reflectly offers a personalized journal experience for each user, encouraging them to come back often and make mental health a part of their daily routine.\n\nWhen Reflectly first launched on iOS, there was a significant interest in an Android version of the app. The small team faced many challenges supporting two platforms and providing a fast, consistent and beautiful experience to their growing user base. Given that Reflectly prides itself on its beautiful design and user experience, it was clear that the team needed to find a new solution.\n\nWhat They Did\n-------------\n\nDespite substantial issues, the Reflectly iOS app was quickly building a user base. Reflectly spent six months trying to fix their existing implementation before deciding to abandon the whole codebase and start from scratch.\n\nInitially, the safest solution seemed to be to build two new native apps, but with only two engineers that approach just wouldn't work. \"We could not afford to build a separate Android app, so we seriously considered shutting it down or abandoning it to focus on the iOS app,\" explained co-founder and CTO Daniel Vestergaard.\n\nThat's when the team discovered Flutter. \"After experimenting with Flutter for a little while, the team fell in love with the cross-platform consistency, near-instant stateful hot reloading, great tooling and high performance of the platform,\" said CTO and co-founder Daniel Vestergaard. The team also appreciated Flutter's \"easy, readable, and well-documented code,\" he added.\n\nAt that point, they decided to dive right in. Just 2.5 months after Reflectly's two engineers wrote their first line of Flutter code, Reflectly 2.0 began rolling out for both Android and iOS simultaneously. In that amount of time, they were not only able to completely rewrite the app, but they were also able to develop several large new features, such as their entire premium subscription implementation and a custom state management solution. \n\nResults and Learnings\n---------------------\n\nReflectly 2.0 received a lot of positive feedback from users across a multitude of different Android and iOS devices, many of whom appreciated the app's new sleek look and design. After re-releasing the app with Flutter, the Android Reflectly app jumped from an **average 3.2-star rating on the Play Store to an average of 4.3**. It was also featured in Apple's list of \"New Apps We Love.\" The team believes the original low rating was largely due to crashes, jank, and aesthetic inconsistencies, which they were able to solve with Flutter. \"In summary, we largely attribute the improved average rating and hundreds of thousands --- possibly millions --- of Android downloads after \\[the Flutter release\\] to Flutter because it allowed us to retain the app, stabilize it, and have feature parity with iOS,\" says Vestergaard.\n\nBecause Flutter paints every pixel directly, the team didn't have to worry about rendering differences between platforms. They can now maintain a common codebase but still write iOS and Android-specific UI where appropriate. And now that they're able to dedicate their entire development team to a single, high-quality experience, Reflectly has seen a **50% decrease in development time**, allowing them to move from biweekly releases to weekly releases and launch new features on both platforms simultaneously.\n\nAbout Flutter\n-------------\n\nAnyone can build, test, and deploy beautiful apps for any screen from a single codebase with Flutter. [Get started today](https://flutter.dev/)."]]