MinimalSignInButton class

One Continue with <provider> button: Minimal's 40 px bordered button carrying the provider's mark — the real colours on the neutral surface, the mono silhouette in the on-accent ink on the accent fill — so every sign-in reads as one family in the app's own theme. Disabled, every mark turns to its mono silhouette in the label's ink and dims with the words, so no brand colour is left lit.

The mark resolves from the logo vocabulary the bundle carries at <slug>_mark[_dark|_mask].png, as its asset manifest lists it: the app's own assets/logos/ first, then the marks that ship with the kit (apple, google and github); email draws the mail glyph and says "Continue with email"; a slug neither carries draws a mono monogram square, never a wrong brand.

MinimalSignInButton('apple', onPressed: signIn)
Inheritance

Constructors

MinimalSignInButton(String provider, {Key? key, VoidCallback? onPressed, String? label, bool emphasis = false, bool expand = true, FocusNode? focusNode, bool autofocus = false})
A button that signs in with provider.
const

Properties

autofocus → bool
Whether it takes keyboard focus when it first appears.
final
emphasis → bool
The accent-filled register for the one provider a page leads with.
final
expand → bool
Fill the available width, as a stack of them does.
final
focusNode → FocusNode?
Its focus node, for a caller that moves focus to it; null keeps one of its own.
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
label → String?
Unstated, Continue with <Provider>.
final
onPressed → VoidCallback?
Null disables the button (a provider that is not configured yet).
final
provider → String
apple, google, github, email, or another provider's slug.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

build(BuildContext context) → Widget
Describes the part of the user interface represented by this widget.
override
createElement() → StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) → String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String
Returns a one-line detailed description of the object.
inherited
toStringShort() → String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

markSize → const double
The mark's height inside the button.