UniversalOnboarding constructor

const UniversalOnboarding({
  1. Key? key,
  2. required String appName,
  3. required dynamic onAccountCreated(
    1. String username,
    2. String userPin
    ),
  4. dynamic onConnectionUpdated(
    1. String platform,
    2. bool isConnected
    )?,
  5. Color primaryColor = const Color(0xFF2196F3),
  6. Color backgroundColor = Colors.white,
  7. bool showDebugInfo = false,
  8. bool darkMode = false,
  9. String? valuablePlatform,
  10. bool testMode = false,
  11. double height = 0.8,
  12. String? prefilledEmail,
  13. List<String>? prioritize,
  14. List<String>? only,
})

Implementation

const UniversalOnboarding({
  Key? key,
  required this.appName,
  required this.onAccountCreated,
  this.onConnectionUpdated,
  this.primaryColor = const Color(0xFF2196F3), // Changed from green to blue
  this.backgroundColor = Colors.white,
  this.showDebugInfo = false,
  this.darkMode = false, // Default to light mode
  this.valuablePlatform,
  this.testMode = false,
  this.height = 0.8, // Default to 80% of screen height
  this.prefilledEmail,
  this.appLogo, // Path to app logo asset
  this.prioritize, // List of platforms to prioritize
  this.only, // List of platforms to show exclusively
}) : super(key: key);