LoginScreen constructor
LoginScreen({
- Key? key,
- required HiveFlutterKitPlatform hfk,
- List<
Color> ? backgroundColors, - Color? fontColor,
- Color? borderColor,
- Color? hiveKeychainButtonColor,
- Color? hiveKeychainTextColor = Colors.white,
- Color? hiveAuthButtonColor,
- Color? hiveAuthTextColor = Colors.white,
- Color? privatePostingKeyButtonColor,
- Color? privatePostingKeyTextColor = Colors.white,
- Color? withoutPrivatePostingKeyButtonColor,
- Color? withoutPrivatePostingKeyTextColor = Colors.white,
- String title = 'Welcome to Hive',
- String subtitle = 'Choose your login method',
- Widget logoIcon = const Icon(Icons.hexagon_outlined, size: 64, color: Colors.grey),
- String? logoImagePath,
- String proof = '',
- void uponLogin(
- BuildContext context,
- dynamic result,
- 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,
});