Chuyển đến nội dung chính

Bài đăng

Hiển thị các bài đăng có nhãn Matrix

FluffyChat: chat Matrix trên Flutter với E2EE thật

Chat trông đơn giản cho tới khi mã hóa và sync đa thiết bị xuất hiện. FluffyChat là client Matrix production bằng Flutter — hữu ích nếu bạn quan tâm kiến trúc messaging mà không tự bịa protocol. Nhịp kiến trúc Matrix SDK là bộ não protocol (crypto Rust như Vodozemac bên dưới). Flutter là shell chung cho mobile và desktop. Push tùy chọn (FCM…) xếp lên sync — không thay sync. Học theo Giữ protocol state ngoài widget; expose stream/selector. Room là domain object hạng nhất, không phải màn hình. UX verify thiết bị là surface sản phẩm, không phải footnote settings. Cạm bẫy Bug E2EE là bug niềm tin. Đừng tự viết crypto. Offline queue và event lệch thứ tự sẽ phá UI setState ngây thơ. Nếu cần chat, ưu tiên Matrix (hoặc protocol trưởng thành) hơn soup JSON socket tự chế. Bài viết gốc đăng tại FlutterCook . Bản trên đó là bản được cập nhật mới nhất.

FluffyChat: Matrix chat in Flutter with real E2EE

Chat apps look simple until encryption and multi-device sync arrive. FluffyChat is a production Matrix client in Flutter — useful if you care about messaging architecture without inventing a protocol. Architecture beats Matrix SDK as the protocol brain (with Rust crypto such as Vodozemac underneath). Flutter as the shared shell for mobile and desktop form factors. Optional push (FCM etc.) layered on top of sync — not instead of it. Steal this Keep protocol state out of widgets; expose streams/selectors. Model rooms as first-class domain objects, not screens. Treat device verification UX as a product surface, not a settings footnote. Pitfalls E2EE bugs are trust bugs. Do not home-roll crypto. Offline queueing and out-of-order events will break naive setState UIs. If you need chat, prefer Matrix (or another mature protocol) over a custom socket JSON soup. Originally published on FlutterCook . Read the latest version there — that copy is the one kept up to date.