LocordaStatusDefaults class
Default implementations for LocordaStatusWidget customization.
This class provides the standard implementations used by LocordaStatusWidget when no custom builders are provided. You can reference these when building custom implementations.
Example: Custom icon
LocordaStatusWidget(
auth: auth,
syncManager: syncManager,
iconBuilder: (context, state) {
if (state.isSyncing) {
return Icon(Icons.sync, color: Colors.blue);
}
return LocordaStatusDefaults.materialIcon(context, state);
},
)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
bottomSheetStatusMenu(
{required Auth auth}) → StatusMenuCallback - Default status menu showing modal bottom sheet with standard items.
-
materialIcon(
BuildContext context, LocordaStatusState state) → Widget - Default icon builder using Material Design icons.