r/FlutterDev • • 3h ago

Article I built a desktop git client in Flutter for Windows, macOS and Linux. Here's what desktop Flutter too

Branchi is an open-source (MIT) git client. The UI is Flutter desktop, and

git runs in a Rust library called through dart:ffi.

Things that might interest Flutter devs:

- **Desktop-first UX:** tabs restored on restart, window_manager, keyboard

shortcuts (Ctrl/⌘+1–4 for sections, Alt+F12 for the terminal), right-click

menus, light/dark themes and accent colors.

- **Built-in terminal:** `xterm` + `flutter_pty`. I had to vendor flutter_pty

and patch a Windows bug where the shell got its own path as its first

argument, which broke PowerShell.

- **Code editor:** `re_editor` + `re_highlight`.

- **Full RTL:** English, Persian and Arabic with a mirrored layout, plus a

Jalali calendar. [One sentence on what was hardest about RTL.]

- **dart:ffi to Rust:** a plain C API that returns JSON, with no codegen.

GIF tour, install for all three OSes and the source:

https://github.com/mbpcoder/Branchi

Happy to answer questions about Flutter on desktop. UI feedback is very

welcome.

1 Upvotes

0 comments sorted by