[FEAT] Added hover and focus colors for fields
This commit is contained in:
@@ -261,6 +261,8 @@ class _AstromicFieldBaseState extends State<AstromicFieldBase> {
|
||||
//s1 -- Style
|
||||
filled: _style().isFilled,
|
||||
fillColor: _style().fillColor,
|
||||
hoverColor: _style().hoverColor,
|
||||
focusColor:_style().focusColor ,
|
||||
//
|
||||
hintStyle: _style().hintStyle,
|
||||
//
|
||||
|
||||
@@ -3,7 +3,6 @@ import '../enums/border_type.enum.dart';
|
||||
|
||||
/// Styling model for the field element.
|
||||
class AstromicFieldStyle {
|
||||
|
||||
const AstromicFieldStyle({
|
||||
this.isFilled = true,
|
||||
//
|
||||
@@ -27,7 +26,9 @@ class AstromicFieldStyle {
|
||||
this.suffixSpacing = 4,
|
||||
this.suffixSize = 24,
|
||||
//
|
||||
this.fillColor = const Color(0xffffffff),
|
||||
this.fillColor,
|
||||
this.hoverColor,
|
||||
this.focusColor,
|
||||
this.borderColor,
|
||||
this.borderGradient,
|
||||
this.cursorColor,
|
||||
@@ -63,7 +64,9 @@ class AstromicFieldStyle {
|
||||
final double suffixSize;
|
||||
//
|
||||
//s1 - Colors
|
||||
final Color fillColor;
|
||||
final Color? fillColor;
|
||||
final Color? hoverColor;
|
||||
final Color? focusColor;
|
||||
final Color? cursorColor;
|
||||
final Color? cursorErrorColor;
|
||||
final Color? borderColor;
|
||||
@@ -93,6 +96,8 @@ class AstromicFieldStyle {
|
||||
double? suffixSize,
|
||||
CrossAxisAlignment? suffixAlignment,
|
||||
Color? fillColor,
|
||||
Color? hoverColor,
|
||||
Color? focusColor,
|
||||
Color? cursorColor,
|
||||
Color? cursorErrorColor,
|
||||
Color? borderColor,
|
||||
@@ -119,6 +124,8 @@ class AstromicFieldStyle {
|
||||
suffixSpacing: suffixSpacing ?? this.suffixSpacing,
|
||||
suffixSize: suffixSize ?? this.suffixSize,
|
||||
fillColor: fillColor ?? this.fillColor,
|
||||
hoverColor: hoverColor ?? this.hoverColor,
|
||||
focusColor: focusColor ?? this.focusColor,
|
||||
cursorColor: cursorColor ?? this.cursorColor,
|
||||
cursorErrorColor: cursorErrorColor ?? this.cursorErrorColor,
|
||||
borderColor: borderColor ?? this.borderColor,
|
||||
|
||||
Reference in New Issue
Block a user