master #81

Closed
malo wants to merge 322 commits from master into feat/bloc_layout/new-package
3 changed files with 14 additions and 40 deletions
Showing only changes of commit f2b8c03dd7 - Show all commits

View File

@ -30,10 +30,7 @@ class TextInputTheme extends TextInputThemeExtension {
factory TextInputTheme.light() => TextInputTheme( factory TextInputTheme.light() => TextInputTheme(
normalStyle: TextInputStyle( normalStyle: TextInputStyle(
radius: BorderRadius.circular(12), radius: BorderRadius.circular(12),
borderColors: const MultiColor([ borderColors: const Color.fromRGBO(221, 224, 227, 1),
Color.fromRGBO(221, 224, 227, 1),
Color.fromRGBO(202, 204, 212, 1),
]),
labelStyle: GoogleFonts.montserrat( labelStyle: GoogleFonts.montserrat(
fontWeight: FontWeight.w300, fontWeight: FontWeight.w300,
color: const Color.fromRGBO(55, 65, 81, 1), color: const Color.fromRGBO(55, 65, 81, 1),
@ -45,10 +42,7 @@ class TextInputTheme extends TextInputThemeExtension {
), ),
focusedStyle: TextInputStyle( focusedStyle: TextInputStyle(
radius: BorderRadius.circular(12), radius: BorderRadius.circular(12),
borderColors: const MultiColor([ borderColors: const Color.fromRGBO(60, 125, 251, 1),
Color.fromRGBO(60, 125, 251, 1),
Color.fromRGBO(68, 109, 244, 1),
]),
labelStyle: GoogleFonts.montserrat( labelStyle: GoogleFonts.montserrat(
fontWeight: FontWeight.w300, fontWeight: FontWeight.w300,
color: const Color.fromRGBO(55, 65, 81, 1), color: const Color.fromRGBO(55, 65, 81, 1),
@ -60,10 +54,7 @@ class TextInputTheme extends TextInputThemeExtension {
), ),
errorStyle: TextInputStyle( errorStyle: TextInputStyle(
radius: BorderRadius.circular(12), radius: BorderRadius.circular(12),
borderColors: const MultiColor([ borderColors: const Color.fromRGBO(244, 68, 100, 1),
Color.fromRGBO(251, 94, 60, 1),
Color.fromRGBO(244, 68, 100, 1),
]),
labelStyle: GoogleFonts.montserrat( labelStyle: GoogleFonts.montserrat(
fontWeight: FontWeight.w300, fontWeight: FontWeight.w300,
color: const Color.fromRGBO(244, 68, 100, 1), color: const Color.fromRGBO(244, 68, 100, 1),
@ -75,8 +66,7 @@ class TextInputTheme extends TextInputThemeExtension {
), ),
disableStyle: TextInputStyle( disableStyle: TextInputStyle(
radius: BorderRadius.circular(12), radius: BorderRadius.circular(12),
borderColors: borderColors: const Color.fromRGBO(229, 231, 235, 1),
const MultiColor.single(Color.fromRGBO(229, 231, 235, 1)),
labelStyle: GoogleFonts.montserrat( labelStyle: GoogleFonts.montserrat(
fontWeight: FontWeight.w300, fontWeight: FontWeight.w300,
color: const Color.fromRGBO(156, 163, 175, 1), color: const Color.fromRGBO(156, 163, 175, 1),
@ -91,9 +81,7 @@ class TextInputTheme extends TextInputThemeExtension {
factory TextInputTheme.dark() => TextInputTheme( factory TextInputTheme.dark() => TextInputTheme(
normalStyle: TextInputStyle( normalStyle: TextInputStyle(
radius: BorderRadius.circular(12), radius: BorderRadius.circular(12),
borderColors: const MultiColor.single( borderColors: const Color.fromRGBO(96, 101, 106, 1),
Color.fromRGBO(96, 101, 106, 1),
),
labelStyle: GoogleFonts.montserrat( labelStyle: GoogleFonts.montserrat(
fontWeight: FontWeight.w300, fontWeight: FontWeight.w300,
color: const Color.fromRGBO(204, 204, 204, 1), color: const Color.fromRGBO(204, 204, 204, 1),
@ -105,10 +93,7 @@ class TextInputTheme extends TextInputThemeExtension {
), ),
focusedStyle: TextInputStyle( focusedStyle: TextInputStyle(
radius: BorderRadius.circular(12), radius: BorderRadius.circular(12),
borderColors: const MultiColor([ borderColors: const Color.fromRGBO(60, 125, 251, 1),
Color.fromRGBO(60, 125, 251, 1),
Color.fromRGBO(68, 109, 244, 1),
]),
labelStyle: GoogleFonts.montserrat( labelStyle: GoogleFonts.montserrat(
fontWeight: FontWeight.w300, fontWeight: FontWeight.w300,
color: const Color.fromRGBO(204, 204, 204, 1), color: const Color.fromRGBO(204, 204, 204, 1),
@ -120,10 +105,7 @@ class TextInputTheme extends TextInputThemeExtension {
), ),
errorStyle: TextInputStyle( errorStyle: TextInputStyle(
radius: BorderRadius.circular(12), radius: BorderRadius.circular(12),
borderColors: const MultiColor([ borderColors: const Color.fromRGBO(244, 68, 100, 1),
Color.fromRGBO(251, 94, 60, 1),
Color.fromRGBO(244, 68, 100, 1),
]),
labelStyle: GoogleFonts.montserrat( labelStyle: GoogleFonts.montserrat(
fontWeight: FontWeight.w300, fontWeight: FontWeight.w300,
color: const Color.fromRGBO(244, 68, 100, 1), color: const Color.fromRGBO(244, 68, 100, 1),
@ -135,9 +117,7 @@ class TextInputTheme extends TextInputThemeExtension {
), ),
disableStyle: TextInputStyle( disableStyle: TextInputStyle(
radius: BorderRadius.circular(12), radius: BorderRadius.circular(12),
borderColors: const MultiColor.single( borderColors: const Color.fromRGBO(96, 101, 106, 1),
Color.fromRGBO(96, 101, 106, 1),
),
labelStyle: GoogleFonts.montserrat( labelStyle: GoogleFonts.montserrat(
fontWeight: FontWeight.w300, fontWeight: FontWeight.w300,
color: const Color.fromRGBO(96, 101, 106, 1), color: const Color.fromRGBO(96, 101, 106, 1),

View File

@ -273,15 +273,10 @@ class TextInputScreen extends CubitScreen<TextInputCubit, TextInputState> {
? style.backgroundColors?.color ? style.backgroundColors?.color
: null, : null,
borderRadius: style.radius ?? BorderRadius.circular(4), borderRadius: style.radius ?? BorderRadius.circular(4),
border: (style.borderColors?.isGradient ?? false) || border: (style.borderColors != null)
(style.borderColors?.isColor ?? false)
? Border.all( ? Border.all(
width: 1.5, width: 1.5,
color: (style.borderColors?.isGradient ?? false) color: style.borderColors!,
? style.borderColors!.colors.first
: (style.borderColors?.isColor ?? false)
? style.borderColors!.color
: Colors.transparent,
) )
: null, : null,
), ),

View File

@ -49,8 +49,7 @@ class TextInputThemeResolver extends ThemeResolver<TextInputStyle,
Color? prefixIconColor = Theme.of(context).unselectedWidgetColor; Color? prefixIconColor = Theme.of(context).unselectedWidgetColor;
Color? suffixIconColor = Theme.of(context).unselectedWidgetColor; Color? suffixIconColor = Theme.of(context).unselectedWidgetColor;
MultiColor? borderColors = Color? borderColors = Theme.of(context).unselectedWidgetColor;
MultiColor.single(Theme.of(context).unselectedWidgetColor);
MultiColor? backgroundColors; MultiColor? backgroundColors;
BoxShadow? boxShadow; BoxShadow? boxShadow;
@ -68,7 +67,7 @@ class TextInputThemeResolver extends ThemeResolver<TextInputStyle,
suffixStyle?.copyWith(color: Theme.of(context).disabledColor); suffixStyle?.copyWith(color: Theme.of(context).disabledColor);
inputStyle = inputStyle =
inputStyle?.copyWith(color: Theme.of(context).disabledColor); inputStyle?.copyWith(color: Theme.of(context).disabledColor);
borderColors = MultiColor.single(Theme.of(context).disabledColor); borderColors = Theme.of(context).disabledColor;
prefixIconColor = Theme.of(context).disabledColor; prefixIconColor = Theme.of(context).disabledColor;
suffixIconColor = Theme.of(context).disabledColor; suffixIconColor = Theme.of(context).disabledColor;
@ -78,7 +77,7 @@ class TextInputThemeResolver extends ThemeResolver<TextInputStyle,
prefixIconColor = context.colorScheme.primary; prefixIconColor = context.colorScheme.primary;
suffixIconColor = context.colorScheme.primary; suffixIconColor = context.colorScheme.primary;
iconColor = context.colorScheme.primary; iconColor = context.colorScheme.primary;
borderColors = MultiColor.single(context.colorScheme.primary); borderColors = context.colorScheme.primary;
labelStyle = labelStyle?.copyWith(color: context.colorScheme.primary); labelStyle = labelStyle?.copyWith(color: context.colorScheme.primary);
break; break;
case ControlState.hovered: case ControlState.hovered:
@ -95,7 +94,7 @@ class TextInputThemeResolver extends ThemeResolver<TextInputStyle,
case StatusState.error: case StatusState.error:
labelStyle = context.textTheme.labelLarge labelStyle = context.textTheme.labelLarge
?.copyWith(color: context.colorScheme.error); ?.copyWith(color: context.colorScheme.error);
borderColors = MultiColor.single(context.colorScheme.error); borderColors = context.colorScheme.error;
break; break;
case StatusState.initial: case StatusState.initial:
break; break;