Webiste: FyneCookbook
FyneCookbook is a learning resource for the Fyne toolkit in Go. It provides examples, recipes, and reusable snippets for building modern desktop, mobile, and cross-platform applications with Fyne v2.6.1.
This website is powered by Startlight
- π Organized examples for widgets, layouts, dialogs, menus, shortcuts, system tray, preferences, and more.
- π¨ Demonstrates custom theming with your own colors, icons, and styles.
- π Shows how to add translations (i18n) using JSON.
- πΎ Covers Preferences API for saving user settings.
- πΌοΈ Includes metadata configuration via
FyneApp.toml. - π Demonstrates system tray integration for desktop apps.
- β‘ Practical CRUD example with table widget.
- π Easy-to-follow recipes, each one standalone and extendable.
Clone the repository:
git clone https://github.com/clinton-mwachia/fyneCookbook.git
cd fyneCookbookRun the app:
npm installRun the app
npm run dev- UI Components: Labels, Buttons, Lists, Tables, Forms
- Dialogs: Confirm, Info, FileOpen, Custom dialogs
- Theme: Light/Dark mode toggle, custom theme, custom icons
- Menus: System tray, shortcuts, global menus
- Data: Preferences API, metadata, translations (JSON-based)
- Advanced: CRUD with tables, resizing, layouts
Example en.json file:
{
"hello": "Hello",
"goodbye": "Goodbye"
}Load translations at runtime with the translation recipe.
FyneApp.toml handles build metadata:
[Details]
Name = "FyneCookbook"
ID = "com.moshecrafts.fynecookbook"
Version = "1.0.0"
Icon = "assets/icon.png"Contributions are welcome! Feel free to fork, improve, and submit pull requests with new recipes or bug fixes.
MIT License Β© 2025 Moshe Crafts