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

Bài đăng

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

Multi-window on Flutter desktop: what shipped in 3.47, and what to use today

Multi-window is the oldest item on the Flutter desktop wishlist. A desktop app that cannot open a second window is not really a desktop app — no detached inspector, no tear-off panel, no floating tool palette, no proper context menu that escapes the main window’s bounds. Flutter 3.41 shipped experimental multi-window APIs for desktop. Flutter 3.47 fills in a large amount of the plumbing underneath them. What it does not do is make them stable, and being clear about that distinction will save you a painful quarter. What actually landed in 3.47 The desktop work in this release is mostly engine-level, and it is substantial: Popup windows. Win32 and Linux both got popup window implementations. This is the foundation for menus, tooltips, and dropdowns that render outside the parent window’s bounds — a category of UI that Flutter desktop has faked with overlays until now. Sized-to-content windows. Regular and dialog windows can now size themselves to their content on Win32, and the de...

Đa cửa sổ trên Flutter desktop: 3.47 có gì, và hôm nay nên dùng gì

Đa cửa sổ là món cũ nhất trong danh sách mong ước của Flutter desktop. Một app desktop không mở nổi cửa sổ thứ hai thì chưa thật sự là app desktop — không có inspector tách rời, không có panel kéo ra, không có bảng công cụ nổi, không có context menu tử tế thoát ra khỏi biên cửa sổ chính. Flutter 3.41 ra mắt API đa cửa sổ thử nghiệm cho desktop. Flutter 3.47 lấp một lượng lớn phần đường ống bên dưới chúng. Thứ nó không làm là biến chúng thành stable, và rạch ròi được điều đó sẽ cứu bạn khỏi một quý đau đớn. Thực sự có gì trong 3.47 Phần việc desktop ở bản này chủ yếu ở tầng engine, và khá dày: Popup window. Cả Win32 lẫn Linux đều có bản cài đặt popup window. Đây là nền móng cho menu, tooltip, và dropdown render ra ngoài biên cửa sổ cha — một loại UI mà Flutter desktop tới giờ vẫn giả lập bằng overlay. Cửa sổ tự co theo nội dung. Cửa sổ regular và dialog giờ tự co theo nội dung trên Win32, và cờ decorated bị gỡ khỏi windowing API trong quá trình đó. Một dialog cao đúng bằng đoạn ...