VKTheme constructor
const
VKTheme({
- Color primaryColor = const Color(0xFF1050BA),
- Color backgroundColor = const Color(0xFFFFFFFF),
- Color hintColor = const Color(0xFFBDBDBD),
- Color textColor = Colors.black,
- Color borderColor = const Color(0xFFBDBDBD),
- Color errorColor = const Color(0xFFD32F2F),
- double minHeight = 50,
- double textSize = 14,
- bool highlightRequiredBorder = false,
- Color keyboardBackground = const Color(0xFF1A1B1E),
- Color keyBackground = const Color(0xFF2D2F33),
- Color keyActiveBackground = Colors.white,
- Color keyTextColor = Colors.white70,
- Color keySecondaryTextColor = Colors.white54,
- Color keyActiveTextColor = Colors.black,
- Color submitKeyBackground = const Color(0xFF1565C0),
- Color backspaceKeyBackground = const Color(0xFFC62828),
- double keyWidth = 56,
- double keyHeight = 64,
- double numberKeyWidth = 110,
- double numberKeyHeight = 60,
- double keySpacing = 8,
- double keyTextSize = 20,
- double keyBorderRadius = 8,
Implementation
const VKTheme({
this.primaryColor = const Color(0xFF1050BA),
this.backgroundColor = const Color(0xFFFFFFFF),
this.hintColor = const Color(0xFFBDBDBD),
this.textColor = Colors.black,
this.borderColor = const Color(0xFFBDBDBD),
this.errorColor = const Color(0xFFD32F2F),
this.minHeight = 50,
this.textSize = 14,
this.highlightRequiredBorder = false,
// ----- клавиатура -----
this.keyboardBackground = const Color(0xFF1A1B1E),
this.keyBackground = const Color(0xFF2D2F33),
this.keyActiveBackground = Colors.white,
this.keyTextColor = Colors.white70,
this.keySecondaryTextColor = Colors.white54,
this.keyActiveTextColor = Colors.black,
this.submitKeyBackground = const Color(0xFF1565C0),
this.backspaceKeyBackground = const Color(0xFFC62828),
this.keyWidth = 56,
this.keyHeight = 64,
this.numberKeyWidth = 110,
this.numberKeyHeight = 60,
this.keySpacing = 8,
this.keyTextSize = 20,
this.keyBorderRadius = 8,
});