Information Dialog
An Information Dialog is a simple popup used to display messages or alerts to the user, usually with an “OK” button to dismiss it.
Show Code
package main
import ( "fyne.io/fyne/v2" "fyne.io/fyne/v2/app" "fyne.io/fyne/v2/container" "fyne.io/fyne/v2/dialog" "fyne.io/fyne/v2/widget")
func main() { a := app.New() w := a.NewWindow("Information Dialog")
btn := widget.NewButton("Show Info", func() { dialog.ShowInformation("Information", "This is an information dialog.", w) })
w.SetContent(container.NewCenter(btn)) w.Resize(fyne.NewSize(400, 200)) w.ShowAndRun()}