Documentation ¶
Index ¶
- func CustomRelTime(a, b time.Time, albl, blbl string) string
- func CustomTime(then time.Time) string
- func DrawAppBarLayout(gtx Gtx, th *material.Theme, widget layout.Widget) Dim
- func DrawAvatar(gtx Gtx, initials string, bgColor color.NRGBA, textTheme *material.Theme) Dim
- func DrawFormFieldRowWithLabel(gtx Gtx, th *material.Theme, labelText string, labelHintText string, ...) Dim
- func DrawSaltyImageCenter(gtx Gtx, theme *material.Theme) Dim
- func DrawSaltyImageForNav(gtx Gtx, theme *material.Theme) Dim
- func DrawTestNotification(gtx Gtx, theme *material.Theme, notifier notify.Notifier) Dim
- func LastSeenRelTime(a, b time.Time, albl, blbl string) string
- func LastSeenTime(then time.Time) string
- func NewAccountFormView(manager Manager, OnSuccess func()) View
- func NewAccountsView(manager Manager, accountChangeCallback func()) View
- func NewContactForm(manager Manager, contact service.Contact, btnText string, ...) *contactForm
- func NewModalStack() Modal
- func NewPromptContent(theme *material.Theme, headerText string, contentText string, ...) View
- func NewSnackBar(manager Manager) Snackbar
- type Accordion
- type AccountDetails
- type AvatarView
- type ErrorView
- type Greetings
- type IconButton
- type Listener
- type Loader
- type ModalContent
- type NoAccountView
- type NoContactView
- type PromptContent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CustomTime ¶
func DrawAppBarLayout ¶
DrawAppBarLayout reusable function to draw consistent AppBar
func DrawAvatar ¶
func DrawSaltyImageCenter ¶
func DrawSaltyImageForNav ¶
func DrawTestNotification ¶
func LastSeenTime ¶
func NewAccountFormView ¶
func NewAccountFormView(manager Manager, OnSuccess func()) View
func NewAccountsView ¶
func NewAccountsView(manager Manager, accountChangeCallback func()) View
func NewContactForm ¶
func NewContactForm(manager Manager, contact service.Contact, btnText string, OnSuccess func(addr string)) *contactForm
NewContactForm Always call this function to create contactForm
func NewModalStack ¶
func NewModalStack() Modal
func NewPromptContent ¶
func NewSnackBar ¶
func NewSnackBar(manager Manager) Snackbar
Types ¶
type Accordion ¶
type AccountDetails ¶
func NewAccountDetails ¶
func NewAccountDetails(manager Manager, account service.Account) *AccountDetails
func (*AccountDetails) Addr ¶
func (i *AccountDetails) Addr() string
func (*AccountDetails) Layout ¶
func (i *AccountDetails) Layout(gtx Gtx) (d Dim)
type AvatarView ¶
type AvatarView struct { Size image.Point Image image.Image widget.Clickable *material.Theme Selected bool SelectionMode bool }
func (*AvatarView) Layout ¶
func (v *AvatarView) Layout(gtx Gtx) Dim
type Greetings ¶
func NewGreetings ¶
type IconButton ¶
func (*IconButton) Layout ¶
func (b *IconButton) Layout(gtx Gtx) Dim
type Listener ¶
type Listener[t interface{}] struct { Entity t LoadingCh chan t Loading bool // in milliseconds LastRequestTimeStamp int64 // in milliseconds Interval int64 // contains filtered or unexported fields }
func NewListener ¶
func NewListener[t interface{}](callback func() <-chan t) *Listener[t]
type ModalContent ¶
type ModalContent struct { OnCloseClick func() layout.List // contains filtered or unexported fields }
func NewModalContent ¶
func NewModalContent(onCloseClick func()) *ModalContent
func (*ModalContent) DrawContent ¶
func (m *ModalContent) DrawContent(gtx Gtx, theme *material.Theme, contentWidget layout.Widget) Dim
type NoAccountView ¶
type NoAccountView struct { Manager *material.Theme *widget.Icon AccountFormView View *ModalContent // contains filtered or unexported fields }
func NewNoAccount ¶
func NewNoAccount(manager Manager) *NoAccountView
func (*NoAccountView) Layout ¶
func (na *NoAccountView) Layout(gtx Gtx) Dim
type NoContactView ¶
type NoContactView struct { Manager *material.Theme *widget.Icon ContactFormView View *ModalContent // contains filtered or unexported fields }
func NewNoContact ¶
func NewNoContact(manager Manager, onSuccess func(contactAddr string), btnText string) *NoContactView
func (*NoContactView) Layout ¶
func (nc *NoContactView) Layout(gtx Gtx) Dim
type PromptContent ¶
type PromptContent struct { *material.Theme HeaderTxt string ContentText string // contains filtered or unexported fields }
func (*PromptContent) Layout ¶
func (p *PromptContent) Layout(gtx Gtx) Dim
Source Files ¶
- accordion.go
- account_details.go
- account_form.go
- accounts.go
- accounts_item.go
- common.go
- common_views.go
- contact_form.go
- error_view.go
- greetings_view.go
- icon_button.go
- layouts.go
- listener.go
- loader.go
- modal.go
- modal_content.go
- no_account.go
- no_contact.go
- salty_image.go
- snackbar.go
- test_notification.go
- time.go
Click to show internal directories.
Click to hide internal directories.