Socket
Socket
Sign inDemoInstall

deedles.dev/fyner

Package Overview
Dependencies
22
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    deedles.dev/fyner

Package fyner provides a declarative wrapper around the Fyne UI library. Fyner's approach to structuring the UI and state management of an app is very difference from Fyne's. Fyner provides its own set of widgets that wrap the basic Fyne widgets, providing similar functionality but in a far more declarative way. To differentiate, Fyner refers to its own widgets as "components". Fyner components are instantiated manually as struct pointer literals. They export a number of fields which may be set, some of which are of a type from the state package. The fields of a component should not be changed after it is created, though if any of the fields are mutable state types, they may be set via the state API. For example, to create a center-layout container that contains a single label: To interact with the typical Fyne UI system, a Content function is provided that turns a Fyner component into a Fyne CanvasObject. This is typically only used at the top-level in order to set the content of a window, hence the name, but it can actually be used anywhere that a client might want to insert a component into a regular Fyne UI layout. To illustrate the whole system, here's a complete example:


Version published

Readme

Source

Fyner

Go Reference Go Report Card

Fyner is an attempt to create an entirely new API for building UIs with Fyne that is more declarative. It takes some inspiration from Flutter in terms of the API design, but has a lot of its own ideas as well.

Warning: The API is very, very, very not stable. The entire thing could be restructured tomorrow with little warning if it turns out that the current design path is inherently flawed. Don't expect things to keep working until later in development.

FAQs

Last updated on 06 Apr 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc