UniversalOnboarding class

A complete Universal Onboarding solution for Onairos

Example usage:

UniversalOnboarding(
  appName: "MyApp",
  onAccountCreated: (username, pin) => print("Account created"),
  prioritize: ['instagram', 'youtube'], // Show these first with glow effect
  only: ['instagram', 'youtube', 'gmail'], // Only show these platforms
  valuablePlatform: 'instagram', // Most valuable platform for your app
)

Available platforms: youtube, gmail, reddit, pinterest, instagram, linkedin

  • Instagram uses SDK integration
  • YouTube uses OAuth (SDK available for future enhancement)
  • All others use standard OAuth

All overlays are swipable down to dismiss

Inheritance

Constructors

UniversalOnboarding({Key? key, required String appName, required dynamic onAccountCreated(String username, String userPin), dynamic onConnectionUpdated(String platform, bool isConnected)?, Color primaryColor = const Color(0xFF2196F3), Color backgroundColor = Colors.white, bool showDebugInfo = false, bool darkMode = false, String? valuablePlatform, bool testMode = false, double height = 0.8, String? prefilledEmail, List<String>? prioritize, List<String>? only})
const

Properties

final
appName String
final
backgroundColor Color
final
darkMode bool
final
hashCode int
The hash code for this object.
no setterinherited
height double
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onAccountCreated → dynamic Function(String username, String userPin)
final
onConnectionUpdated → dynamic Function(String platform, bool isConnected)?
final
only List<String>?
final
prefilledEmail String?
final
primaryColor Color
final
prioritize List<String>?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showDebugInfo bool
final
testMode bool
final
valuablePlatform String?
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _UniversalOnboardingState
Creates the mutable state for this widget at a given location in the tree.
override
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.
inherited
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