Skip to content

Latest commit

 

History

24 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MGSmartFlow

License

MGSmartFlow é um layout customizado para Fyne que facilita a criação de interfaces dinâmicas baseadas em linhas e colunas, com controle inteligente de espaçamento, redimensionamento e posicionamento de widgets.

Ele foi projetado para simplificar layouts complexos sem depender apenas dos layouts padrões do Fyne.


✨ Recursos

  • 📐 Layout por linhas e colunas
  • 📏 Redimensionamento automático ou fixo por widget
  • 🧭 Posicionamento manual opcional
  • ↔️ Espaçamento global ou individual
  • 🔄 Atualização dinâmica do layout
  • 🧩 Wrapper simples para uso direto

📦 Instalação

go get github.com/profmugomes/mgsmartflow

🚀 Uso Básico

Criando o SmartFlow

flow := mgsmartflow.New()

Adicionando uma linha

flow.AddRow(widget.NewLabel("Linha única"))

Adicionando colunas na mesma linha

flow.AddColumn(
	widget.NewButton("Botão 1", nil),
	widget.NewButton("Botão 2", nil),
)

📐 Controle de Layout

Redimensionar um widget

flow.Resize(btn, 120, 40)

Mover manualmente um widget

flow.Move(btn, 10, 20)

Espaçamento individual entre widgets

flow.Gap(btn, 15, 10)

Espaçamento global do layout

flow.GlobalGap(10, 10)

🧩 Compatibilidade

  • Go 1.26.5+
  • Fyne 2.8.0

👤 Autor

Murilo Gomes Julio

🔗 https://www.profmugomes.com.br

📺 https://youtube.com/@profmugomes


License

Copyright (c) 2025-2026 Murilo Gomes Julio. All Rights Reserved.

This project is licensed under the PolyForm Perimeter License 1.0.1.

Summary

This software is available for commercial and noncommercial use, subject to the terms of the PolyForm Perimeter License 1.0.1.

You may:

  • ✔ Use the software for commercial and noncommercial purposes.
  • ✔ Inspect and study the source code.
  • ✔ Modify the software.
  • ✔ Create derivative works based on the software.
  • ✔ Redistribute the software and permitted modifications.

You may not:

  • ✖ Provide a product that competes with the software.

See the full license terms at LICENSE.md.

This summary is provided for convenience only and does not replace or modify the full license terms.

About

MGSmartFlow é um layout flexível para Fyne que distribui widgets em linhas, calculando tamanhos e espaçamentos automaticamente.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages