LoginScreen constructor

LoginScreen({
  1. Key? key,
  2. required HiveFlutterKitPlatform hfk,
  3. List<Color>? backgroundColors,
  4. Color? fontColor,
  5. Color? borderColor,
  6. Color? hiveKeychainButtonColor,
  7. Color? hiveKeychainTextColor = Colors.white,
  8. Color? hiveAuthButtonColor,
  9. Color? hiveAuthTextColor = Colors.white,
  10. Color? privatePostingKeyButtonColor,
  11. Color? privatePostingKeyTextColor = Colors.white,
  12. Color? withoutPrivatePostingKeyButtonColor,
  13. Color? withoutPrivatePostingKeyTextColor = Colors.white,
  14. String title = 'Welcome to Hive',
  15. String subtitle = 'Choose your login method',
  16. Widget logoIcon = const Icon(Icons.hexagon_outlined, size: 64, color: Colors.grey),
  17. String? logoImagePath,
  18. String proof = '',
  19. void uponLogin(
    1. BuildContext context,
    2. dynamic result,
    3. String? postingKey
    )?,
})

Implementation

LoginScreen({
  super.key,
  required this.hfk,
  this.backgroundColors,
  this.fontColor,
  this.borderColor,
  this.hiveKeychainButtonColor,
  this.hiveKeychainTextColor = Colors.white,
  this.hiveAuthButtonColor,
  this.hiveAuthTextColor = Colors.white,
  this.privatePostingKeyButtonColor,
  this.privatePostingKeyTextColor = Colors.white,
  this.withoutPrivatePostingKeyButtonColor,
  this.withoutPrivatePostingKeyTextColor = Colors.white,
  this.title = 'Welcome to Hive',
  this.subtitle = 'Choose your login method',
  this.logoIcon = const Icon(
    Icons.hexagon_outlined,
    size: 64,
    color: Colors.grey,
  ),
  this.logoImagePath,
  this.proof = '',
  this.uponLogin,
});