ui_kit-ui_components/feat/add-textinputs-components #145
| @ -16,13 +16,10 @@ | |||||||
| 
 | 
 | ||||||
| import 'dart:ui'; | import 'dart:ui'; | ||||||
| 
 | 
 | ||||||
| import 'package:copy_with_extension/copy_with_extension.dart'; |  | ||||||
| import 'package:flutter/widgets.dart'; | import 'package:flutter/widgets.dart'; | ||||||
| import 'package:wyatt_ui_components/src/core/utils/multi_color.dart'; | import 'package:wyatt_ui_components/src/core/utils/multi_color.dart'; | ||||||
| import 'package:wyatt_ui_components/src/domain/entities/buttons/button_style.dart'; | import 'package:wyatt_ui_components/src/domain/entities/buttons/button_style.dart'; | ||||||
| part 'file_selection_button_style.g.dart'; |  | ||||||
| 
 | 
 | ||||||
| @CopyWith() |  | ||||||
| class FileSelectionButtonStyle extends ButtonStyle<FileSelectionButtonStyle> { | class FileSelectionButtonStyle extends ButtonStyle<FileSelectionButtonStyle> { | ||||||
|   const FileSelectionButtonStyle({ |   const FileSelectionButtonStyle({ | ||||||
|     this.title, |     this.title, | ||||||
|  | |||||||
| @ -1,152 +0,0 @@ | |||||||
| // GENERATED CODE - DO NOT MODIFY BY HAND |  | ||||||
| 
 |  | ||||||
| part of 'file_selection_button_style.dart'; |  | ||||||
| 
 |  | ||||||
| // ************************************************************************** |  | ||||||
| // CopyWithGenerator |  | ||||||
| // ************************************************************************** |  | ||||||
| 
 |  | ||||||
| abstract class _$FileSelectionButtonStyleCWProxy { |  | ||||||
|   FileSelectionButtonStyle title(TextStyle? title); |  | ||||||
| 
 |  | ||||||
|   FileSelectionButtonStyle subTitle(TextStyle? subTitle); |  | ||||||
| 
 |  | ||||||
|   FileSelectionButtonStyle radius(BorderRadiusGeometry? radius); |  | ||||||
| 
 |  | ||||||
|   FileSelectionButtonStyle padding(EdgeInsetsGeometry? padding); |  | ||||||
| 
 |  | ||||||
|   FileSelectionButtonStyle foregroundColors(MultiColor? foregroundColors); |  | ||||||
| 
 |  | ||||||
|   FileSelectionButtonStyle backgroundColors(MultiColor? backgroundColors); |  | ||||||
| 
 |  | ||||||
|   FileSelectionButtonStyle borderColors(MultiColor? borderColors); |  | ||||||
| 
 |  | ||||||
|   FileSelectionButtonStyle stroke(double? stroke); |  | ||||||
| 
 |  | ||||||
|   FileSelectionButtonStyle shadow(BoxShadow? shadow); |  | ||||||
| 
 |  | ||||||
|   /// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `FileSelectionButtonStyle(...).copyWith.fieldName(...)` to override fields one at a time with nullification support. |  | ||||||
|   /// |  | ||||||
|   /// Usage |  | ||||||
|   /// ```dart |  | ||||||
|   /// FileSelectionButtonStyle(...).copyWith(id: 12, name: "My name") |  | ||||||
|   /// ```` |  | ||||||
|   FileSelectionButtonStyle call({ |  | ||||||
|     TextStyle? title, |  | ||||||
|     TextStyle? subTitle, |  | ||||||
|     BorderRadiusGeometry? radius, |  | ||||||
|     EdgeInsetsGeometry? padding, |  | ||||||
|     MultiColor? foregroundColors, |  | ||||||
|     MultiColor? backgroundColors, |  | ||||||
|     MultiColor? borderColors, |  | ||||||
|     double? stroke, |  | ||||||
|     BoxShadow? shadow, |  | ||||||
|   }); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| /// Proxy class for `copyWith` functionality. This is a callable class and can be used as follows: `instanceOfFileSelectionButtonStyle.copyWith(...)`. Additionally contains functions for specific fields e.g. `instanceOfFileSelectionButtonStyle.copyWith.fieldName(...)` |  | ||||||
| class _$FileSelectionButtonStyleCWProxyImpl |  | ||||||
|     implements _$FileSelectionButtonStyleCWProxy { |  | ||||||
|   const _$FileSelectionButtonStyleCWProxyImpl(this._value); |  | ||||||
| 
 |  | ||||||
|   final FileSelectionButtonStyle _value; |  | ||||||
| 
 |  | ||||||
|   @override |  | ||||||
|   FileSelectionButtonStyle title(TextStyle? title) => this(title: title); |  | ||||||
| 
 |  | ||||||
|   @override |  | ||||||
|   FileSelectionButtonStyle subTitle(TextStyle? subTitle) => |  | ||||||
|       this(subTitle: subTitle); |  | ||||||
| 
 |  | ||||||
|   @override |  | ||||||
|   FileSelectionButtonStyle radius(BorderRadiusGeometry? radius) => |  | ||||||
|       this(radius: radius); |  | ||||||
| 
 |  | ||||||
|   @override |  | ||||||
|   FileSelectionButtonStyle padding(EdgeInsetsGeometry? padding) => |  | ||||||
|       this(padding: padding); |  | ||||||
| 
 |  | ||||||
|   @override |  | ||||||
|   FileSelectionButtonStyle foregroundColors(MultiColor? foregroundColors) => |  | ||||||
|       this(foregroundColors: foregroundColors); |  | ||||||
| 
 |  | ||||||
|   @override |  | ||||||
|   FileSelectionButtonStyle backgroundColors(MultiColor? backgroundColors) => |  | ||||||
|       this(backgroundColors: backgroundColors); |  | ||||||
| 
 |  | ||||||
|   @override |  | ||||||
|   FileSelectionButtonStyle borderColors(MultiColor? borderColors) => |  | ||||||
|       this(borderColors: borderColors); |  | ||||||
| 
 |  | ||||||
|   @override |  | ||||||
|   FileSelectionButtonStyle stroke(double? stroke) => this(stroke: stroke); |  | ||||||
| 
 |  | ||||||
|   @override |  | ||||||
|   FileSelectionButtonStyle shadow(BoxShadow? shadow) => this(shadow: shadow); |  | ||||||
| 
 |  | ||||||
|   @override |  | ||||||
| 
 |  | ||||||
|   /// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `FileSelectionButtonStyle(...).copyWith.fieldName(...)` to override fields one at a time with nullification support. |  | ||||||
|   /// |  | ||||||
|   /// Usage |  | ||||||
|   /// ```dart |  | ||||||
|   /// FileSelectionButtonStyle(...).copyWith(id: 12, name: "My name") |  | ||||||
|   /// ```` |  | ||||||
|   FileSelectionButtonStyle call({ |  | ||||||
|     Object? title = const $CopyWithPlaceholder(), |  | ||||||
|     Object? subTitle = const $CopyWithPlaceholder(), |  | ||||||
|     Object? radius = const $CopyWithPlaceholder(), |  | ||||||
|     Object? padding = const $CopyWithPlaceholder(), |  | ||||||
|     Object? foregroundColors = const $CopyWithPlaceholder(), |  | ||||||
|     Object? backgroundColors = const $CopyWithPlaceholder(), |  | ||||||
|     Object? borderColors = const $CopyWithPlaceholder(), |  | ||||||
|     Object? stroke = const $CopyWithPlaceholder(), |  | ||||||
|     Object? shadow = const $CopyWithPlaceholder(), |  | ||||||
|   }) { |  | ||||||
|     return FileSelectionButtonStyle( |  | ||||||
|       title: title == const $CopyWithPlaceholder() |  | ||||||
|           ? _value.title |  | ||||||
|           // ignore: cast_nullable_to_non_nullable |  | ||||||
|           : title as TextStyle?, |  | ||||||
|       subTitle: subTitle == const $CopyWithPlaceholder() |  | ||||||
|           ? _value.subTitle |  | ||||||
|           // ignore: cast_nullable_to_non_nullable |  | ||||||
|           : subTitle as TextStyle?, |  | ||||||
|       radius: radius == const $CopyWithPlaceholder() |  | ||||||
|           ? _value.radius |  | ||||||
|           // ignore: cast_nullable_to_non_nullable |  | ||||||
|           : radius as BorderRadiusGeometry?, |  | ||||||
|       padding: padding == const $CopyWithPlaceholder() |  | ||||||
|           ? _value.padding |  | ||||||
|           // ignore: cast_nullable_to_non_nullable |  | ||||||
|           : padding as EdgeInsetsGeometry?, |  | ||||||
|       foregroundColors: foregroundColors == const $CopyWithPlaceholder() |  | ||||||
|           ? _value.foregroundColors |  | ||||||
|           // ignore: cast_nullable_to_non_nullable |  | ||||||
|           : foregroundColors as MultiColor?, |  | ||||||
|       backgroundColors: backgroundColors == const $CopyWithPlaceholder() |  | ||||||
|           ? _value.backgroundColors |  | ||||||
|           // ignore: cast_nullable_to_non_nullable |  | ||||||
|           : backgroundColors as MultiColor?, |  | ||||||
|       borderColors: borderColors == const $CopyWithPlaceholder() |  | ||||||
|           ? _value.borderColors |  | ||||||
|           // ignore: cast_nullable_to_non_nullable |  | ||||||
|           : borderColors as MultiColor?, |  | ||||||
|       stroke: stroke == const $CopyWithPlaceholder() |  | ||||||
|           ? _value.stroke |  | ||||||
|           // ignore: cast_nullable_to_non_nullable |  | ||||||
|           : stroke as double?, |  | ||||||
|       shadow: shadow == const $CopyWithPlaceholder() |  | ||||||
|           ? _value.shadow |  | ||||||
|           // ignore: cast_nullable_to_non_nullable |  | ||||||
|           : shadow as BoxShadow?, |  | ||||||
|     ); |  | ||||||
|   } |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| extension $FileSelectionButtonStyleCopyWith on FileSelectionButtonStyle { |  | ||||||
|   /// Returns a callable class that can be used as follows: `instanceOfFileSelectionButtonStyle.copyWith(...)` or like so:`instanceOfFileSelectionButtonStyle.copyWith.fieldName(...)`. |  | ||||||
|   // ignore: library_private_types_in_public_api |  | ||||||
|   _$FileSelectionButtonStyleCWProxy get copyWith => |  | ||||||
|       _$FileSelectionButtonStyleCWProxyImpl(this); |  | ||||||
| } |  | ||||||
| @ -16,13 +16,10 @@ | |||||||
| 
 | 
 | ||||||
| import 'dart:ui'; | import 'dart:ui'; | ||||||
| 
 | 
 | ||||||
| import 'package:copy_with_extension/copy_with_extension.dart'; |  | ||||||
| import 'package:flutter/widgets.dart'; | import 'package:flutter/widgets.dart'; | ||||||
| import 'package:wyatt_ui_components/src/core/utils/multi_color.dart'; | import 'package:wyatt_ui_components/src/core/utils/multi_color.dart'; | ||||||
| import 'package:wyatt_ui_components/src/domain/entities/buttons/button_style.dart'; | import 'package:wyatt_ui_components/src/domain/entities/buttons/button_style.dart'; | ||||||
| part 'flat_button_style.g.dart'; |  | ||||||
| 
 | 
 | ||||||
| @CopyWith() |  | ||||||
| class FlatButtonStyle extends ButtonStyle<FlatButtonStyle> { | class FlatButtonStyle extends ButtonStyle<FlatButtonStyle> { | ||||||
|   const FlatButtonStyle({ |   const FlatButtonStyle({ | ||||||
|     this.label, |     this.label, | ||||||
|  | |||||||
| @ -1,137 +0,0 @@ | |||||||
| // GENERATED CODE - DO NOT MODIFY BY HAND |  | ||||||
| 
 |  | ||||||
| part of 'flat_button_style.dart'; |  | ||||||
| 
 |  | ||||||
| // ************************************************************************** |  | ||||||
| // CopyWithGenerator |  | ||||||
| // ************************************************************************** |  | ||||||
| 
 |  | ||||||
| abstract class _$FlatButtonStyleCWProxy { |  | ||||||
|   FlatButtonStyle label(TextStyle? label); |  | ||||||
| 
 |  | ||||||
|   FlatButtonStyle radius(BorderRadiusGeometry? radius); |  | ||||||
| 
 |  | ||||||
|   FlatButtonStyle padding(EdgeInsetsGeometry? padding); |  | ||||||
| 
 |  | ||||||
|   FlatButtonStyle foregroundColors(MultiColor? foregroundColors); |  | ||||||
| 
 |  | ||||||
|   FlatButtonStyle backgroundColors(MultiColor? backgroundColors); |  | ||||||
| 
 |  | ||||||
|   FlatButtonStyle borderColors(MultiColor? borderColors); |  | ||||||
| 
 |  | ||||||
|   FlatButtonStyle stroke(double? stroke); |  | ||||||
| 
 |  | ||||||
|   FlatButtonStyle shadow(BoxShadow? shadow); |  | ||||||
| 
 |  | ||||||
|   /// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `FlatButtonStyle(...).copyWith.fieldName(...)` to override fields one at a time with nullification support. |  | ||||||
|   /// |  | ||||||
|   /// Usage |  | ||||||
|   /// ```dart |  | ||||||
|   /// FlatButtonStyle(...).copyWith(id: 12, name: "My name") |  | ||||||
|   /// ```` |  | ||||||
|   FlatButtonStyle call({ |  | ||||||
|     TextStyle? label, |  | ||||||
|     BorderRadiusGeometry? radius, |  | ||||||
|     EdgeInsetsGeometry? padding, |  | ||||||
|     MultiColor? foregroundColors, |  | ||||||
|     MultiColor? backgroundColors, |  | ||||||
|     MultiColor? borderColors, |  | ||||||
|     double? stroke, |  | ||||||
|     BoxShadow? shadow, |  | ||||||
|   }); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| /// Proxy class for `copyWith` functionality. This is a callable class and can be used as follows: `instanceOfFlatButtonStyle.copyWith(...)`. Additionally contains functions for specific fields e.g. `instanceOfFlatButtonStyle.copyWith.fieldName(...)` |  | ||||||
| class _$FlatButtonStyleCWProxyImpl implements _$FlatButtonStyleCWProxy { |  | ||||||
|   const _$FlatButtonStyleCWProxyImpl(this._value); |  | ||||||
| 
 |  | ||||||
|   final FlatButtonStyle _value; |  | ||||||
| 
 |  | ||||||
|   @override |  | ||||||
|   FlatButtonStyle label(TextStyle? label) => this(label: label); |  | ||||||
| 
 |  | ||||||
|   @override |  | ||||||
|   FlatButtonStyle radius(BorderRadiusGeometry? radius) => this(radius: radius); |  | ||||||
| 
 |  | ||||||
|   @override |  | ||||||
|   FlatButtonStyle padding(EdgeInsetsGeometry? padding) => |  | ||||||
|       this(padding: padding); |  | ||||||
| 
 |  | ||||||
|   @override |  | ||||||
|   FlatButtonStyle foregroundColors(MultiColor? foregroundColors) => |  | ||||||
|       this(foregroundColors: foregroundColors); |  | ||||||
| 
 |  | ||||||
|   @override |  | ||||||
|   FlatButtonStyle backgroundColors(MultiColor? backgroundColors) => |  | ||||||
|       this(backgroundColors: backgroundColors); |  | ||||||
| 
 |  | ||||||
|   @override |  | ||||||
|   FlatButtonStyle borderColors(MultiColor? borderColors) => |  | ||||||
|       this(borderColors: borderColors); |  | ||||||
| 
 |  | ||||||
|   @override |  | ||||||
|   FlatButtonStyle stroke(double? stroke) => this(stroke: stroke); |  | ||||||
| 
 |  | ||||||
|   @override |  | ||||||
|   FlatButtonStyle shadow(BoxShadow? shadow) => this(shadow: shadow); |  | ||||||
| 
 |  | ||||||
|   @override |  | ||||||
| 
 |  | ||||||
|   /// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `FlatButtonStyle(...).copyWith.fieldName(...)` to override fields one at a time with nullification support. |  | ||||||
|   /// |  | ||||||
|   /// Usage |  | ||||||
|   /// ```dart |  | ||||||
|   /// FlatButtonStyle(...).copyWith(id: 12, name: "My name") |  | ||||||
|   /// ```` |  | ||||||
|   FlatButtonStyle call({ |  | ||||||
|     Object? label = const $CopyWithPlaceholder(), |  | ||||||
|     Object? radius = const $CopyWithPlaceholder(), |  | ||||||
|     Object? padding = const $CopyWithPlaceholder(), |  | ||||||
|     Object? foregroundColors = const $CopyWithPlaceholder(), |  | ||||||
|     Object? backgroundColors = const $CopyWithPlaceholder(), |  | ||||||
|     Object? borderColors = const $CopyWithPlaceholder(), |  | ||||||
|     Object? stroke = const $CopyWithPlaceholder(), |  | ||||||
|     Object? shadow = const $CopyWithPlaceholder(), |  | ||||||
|   }) { |  | ||||||
|     return FlatButtonStyle( |  | ||||||
|       label: label == const $CopyWithPlaceholder() |  | ||||||
|           ? _value.label |  | ||||||
|           // ignore: cast_nullable_to_non_nullable |  | ||||||
|           : label as TextStyle?, |  | ||||||
|       radius: radius == const $CopyWithPlaceholder() |  | ||||||
|           ? _value.radius |  | ||||||
|           // ignore: cast_nullable_to_non_nullable |  | ||||||
|           : radius as BorderRadiusGeometry?, |  | ||||||
|       padding: padding == const $CopyWithPlaceholder() |  | ||||||
|           ? _value.padding |  | ||||||
|           // ignore: cast_nullable_to_non_nullable |  | ||||||
|           : padding as EdgeInsetsGeometry?, |  | ||||||
|       foregroundColors: foregroundColors == const $CopyWithPlaceholder() |  | ||||||
|           ? _value.foregroundColors |  | ||||||
|           // ignore: cast_nullable_to_non_nullable |  | ||||||
|           : foregroundColors as MultiColor?, |  | ||||||
|       backgroundColors: backgroundColors == const $CopyWithPlaceholder() |  | ||||||
|           ? _value.backgroundColors |  | ||||||
|           // ignore: cast_nullable_to_non_nullable |  | ||||||
|           : backgroundColors as MultiColor?, |  | ||||||
|       borderColors: borderColors == const $CopyWithPlaceholder() |  | ||||||
|           ? _value.borderColors |  | ||||||
|           // ignore: cast_nullable_to_non_nullable |  | ||||||
|           : borderColors as MultiColor?, |  | ||||||
|       stroke: stroke == const $CopyWithPlaceholder() |  | ||||||
|           ? _value.stroke |  | ||||||
|           // ignore: cast_nullable_to_non_nullable |  | ||||||
|           : stroke as double?, |  | ||||||
|       shadow: shadow == const $CopyWithPlaceholder() |  | ||||||
|           ? _value.shadow |  | ||||||
|           // ignore: cast_nullable_to_non_nullable |  | ||||||
|           : shadow as BoxShadow?, |  | ||||||
|     ); |  | ||||||
|   } |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| extension $FlatButtonStyleCopyWith on FlatButtonStyle { |  | ||||||
|   /// Returns a callable class that can be used as follows: `instanceOfFlatButtonStyle.copyWith(...)` or like so:`instanceOfFlatButtonStyle.copyWith.fieldName(...)`. |  | ||||||
|   // ignore: library_private_types_in_public_api |  | ||||||
|   _$FlatButtonStyleCWProxy get copyWith => _$FlatButtonStyleCWProxyImpl(this); |  | ||||||
| } |  | ||||||
| @ -16,13 +16,10 @@ | |||||||
| 
 | 
 | ||||||
| import 'dart:ui'; | import 'dart:ui'; | ||||||
| 
 | 
 | ||||||
| import 'package:copy_with_extension/copy_with_extension.dart'; |  | ||||||
| import 'package:flutter/widgets.dart'; | import 'package:flutter/widgets.dart'; | ||||||
| import 'package:wyatt_ui_components/src/core/utils/multi_color.dart'; | import 'package:wyatt_ui_components/src/core/utils/multi_color.dart'; | ||||||
| import 'package:wyatt_ui_components/src/domain/entities/buttons/button_style.dart'; | import 'package:wyatt_ui_components/src/domain/entities/buttons/button_style.dart'; | ||||||
| part 'simple_icon_button_style.g.dart'; |  | ||||||
| 
 | 
 | ||||||
| @CopyWith() |  | ||||||
| class SimpleIconButtonStyle extends ButtonStyle<SimpleIconButtonStyle> { | class SimpleIconButtonStyle extends ButtonStyle<SimpleIconButtonStyle> { | ||||||
|   const SimpleIconButtonStyle({ |   const SimpleIconButtonStyle({ | ||||||
|     this.dimension, |     this.dimension, | ||||||
|  | |||||||
| @ -1,141 +0,0 @@ | |||||||
| // GENERATED CODE - DO NOT MODIFY BY HAND |  | ||||||
| 
 |  | ||||||
| part of 'simple_icon_button_style.dart'; |  | ||||||
| 
 |  | ||||||
| // ************************************************************************** |  | ||||||
| // CopyWithGenerator |  | ||||||
| // ************************************************************************** |  | ||||||
| 
 |  | ||||||
| abstract class _$SimpleIconButtonStyleCWProxy { |  | ||||||
|   SimpleIconButtonStyle dimension(double? dimension); |  | ||||||
| 
 |  | ||||||
|   SimpleIconButtonStyle radius(BorderRadiusGeometry? radius); |  | ||||||
| 
 |  | ||||||
|   SimpleIconButtonStyle padding(EdgeInsetsGeometry? padding); |  | ||||||
| 
 |  | ||||||
|   SimpleIconButtonStyle foregroundColors(MultiColor? foregroundColors); |  | ||||||
| 
 |  | ||||||
|   SimpleIconButtonStyle backgroundColors(MultiColor? backgroundColors); |  | ||||||
| 
 |  | ||||||
|   SimpleIconButtonStyle borderColors(MultiColor? borderColors); |  | ||||||
| 
 |  | ||||||
|   SimpleIconButtonStyle stroke(double? stroke); |  | ||||||
| 
 |  | ||||||
|   SimpleIconButtonStyle shadow(BoxShadow? shadow); |  | ||||||
| 
 |  | ||||||
|   /// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `SimpleIconButtonStyle(...).copyWith.fieldName(...)` to override fields one at a time with nullification support. |  | ||||||
|   /// |  | ||||||
|   /// Usage |  | ||||||
|   /// ```dart |  | ||||||
|   /// SimpleIconButtonStyle(...).copyWith(id: 12, name: "My name") |  | ||||||
|   /// ```` |  | ||||||
|   SimpleIconButtonStyle call({ |  | ||||||
|     double? dimension, |  | ||||||
|     BorderRadiusGeometry? radius, |  | ||||||
|     EdgeInsetsGeometry? padding, |  | ||||||
|     MultiColor? foregroundColors, |  | ||||||
|     MultiColor? backgroundColors, |  | ||||||
|     MultiColor? borderColors, |  | ||||||
|     double? stroke, |  | ||||||
|     BoxShadow? shadow, |  | ||||||
|   }); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| /// Proxy class for `copyWith` functionality. This is a callable class and can be used as follows: `instanceOfSimpleIconButtonStyle.copyWith(...)`. Additionally contains functions for specific fields e.g. `instanceOfSimpleIconButtonStyle.copyWith.fieldName(...)` |  | ||||||
| class _$SimpleIconButtonStyleCWProxyImpl |  | ||||||
|     implements _$SimpleIconButtonStyleCWProxy { |  | ||||||
|   const _$SimpleIconButtonStyleCWProxyImpl(this._value); |  | ||||||
| 
 |  | ||||||
|   final SimpleIconButtonStyle _value; |  | ||||||
| 
 |  | ||||||
|   @override |  | ||||||
|   SimpleIconButtonStyle dimension(double? dimension) => |  | ||||||
|       this(dimension: dimension); |  | ||||||
| 
 |  | ||||||
|   @override |  | ||||||
|   SimpleIconButtonStyle radius(BorderRadiusGeometry? radius) => |  | ||||||
|       this(radius: radius); |  | ||||||
| 
 |  | ||||||
|   @override |  | ||||||
|   SimpleIconButtonStyle padding(EdgeInsetsGeometry? padding) => |  | ||||||
|       this(padding: padding); |  | ||||||
| 
 |  | ||||||
|   @override |  | ||||||
|   SimpleIconButtonStyle foregroundColors(MultiColor? foregroundColors) => |  | ||||||
|       this(foregroundColors: foregroundColors); |  | ||||||
| 
 |  | ||||||
|   @override |  | ||||||
|   SimpleIconButtonStyle backgroundColors(MultiColor? backgroundColors) => |  | ||||||
|       this(backgroundColors: backgroundColors); |  | ||||||
| 
 |  | ||||||
|   @override |  | ||||||
|   SimpleIconButtonStyle borderColors(MultiColor? borderColors) => |  | ||||||
|       this(borderColors: borderColors); |  | ||||||
| 
 |  | ||||||
|   @override |  | ||||||
|   SimpleIconButtonStyle stroke(double? stroke) => this(stroke: stroke); |  | ||||||
| 
 |  | ||||||
|   @override |  | ||||||
|   SimpleIconButtonStyle shadow(BoxShadow? shadow) => this(shadow: shadow); |  | ||||||
| 
 |  | ||||||
|   @override |  | ||||||
| 
 |  | ||||||
|   /// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `SimpleIconButtonStyle(...).copyWith.fieldName(...)` to override fields one at a time with nullification support. |  | ||||||
|   /// |  | ||||||
|   /// Usage |  | ||||||
|   /// ```dart |  | ||||||
|   /// SimpleIconButtonStyle(...).copyWith(id: 12, name: "My name") |  | ||||||
|   /// ```` |  | ||||||
|   SimpleIconButtonStyle call({ |  | ||||||
|     Object? dimension = const $CopyWithPlaceholder(), |  | ||||||
|     Object? radius = const $CopyWithPlaceholder(), |  | ||||||
|     Object? padding = const $CopyWithPlaceholder(), |  | ||||||
|     Object? foregroundColors = const $CopyWithPlaceholder(), |  | ||||||
|     Object? backgroundColors = const $CopyWithPlaceholder(), |  | ||||||
|     Object? borderColors = const $CopyWithPlaceholder(), |  | ||||||
|     Object? stroke = const $CopyWithPlaceholder(), |  | ||||||
|     Object? shadow = const $CopyWithPlaceholder(), |  | ||||||
|   }) { |  | ||||||
|     return SimpleIconButtonStyle( |  | ||||||
|       dimension: dimension == const $CopyWithPlaceholder() |  | ||||||
|           ? _value.dimension |  | ||||||
|           // ignore: cast_nullable_to_non_nullable |  | ||||||
|           : dimension as double?, |  | ||||||
|       radius: radius == const $CopyWithPlaceholder() |  | ||||||
|           ? _value.radius |  | ||||||
|           // ignore: cast_nullable_to_non_nullable |  | ||||||
|           : radius as BorderRadiusGeometry?, |  | ||||||
|       padding: padding == const $CopyWithPlaceholder() |  | ||||||
|           ? _value.padding |  | ||||||
|           // ignore: cast_nullable_to_non_nullable |  | ||||||
|           : padding as EdgeInsetsGeometry?, |  | ||||||
|       foregroundColors: foregroundColors == const $CopyWithPlaceholder() |  | ||||||
|           ? _value.foregroundColors |  | ||||||
|           // ignore: cast_nullable_to_non_nullable |  | ||||||
|           : foregroundColors as MultiColor?, |  | ||||||
|       backgroundColors: backgroundColors == const $CopyWithPlaceholder() |  | ||||||
|           ? _value.backgroundColors |  | ||||||
|           // ignore: cast_nullable_to_non_nullable |  | ||||||
|           : backgroundColors as MultiColor?, |  | ||||||
|       borderColors: borderColors == const $CopyWithPlaceholder() |  | ||||||
|           ? _value.borderColors |  | ||||||
|           // ignore: cast_nullable_to_non_nullable |  | ||||||
|           : borderColors as MultiColor?, |  | ||||||
|       stroke: stroke == const $CopyWithPlaceholder() |  | ||||||
|           ? _value.stroke |  | ||||||
|           // ignore: cast_nullable_to_non_nullable |  | ||||||
|           : stroke as double?, |  | ||||||
|       shadow: shadow == const $CopyWithPlaceholder() |  | ||||||
|           ? _value.shadow |  | ||||||
|           // ignore: cast_nullable_to_non_nullable |  | ||||||
|           : shadow as BoxShadow?, |  | ||||||
|     ); |  | ||||||
|   } |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| extension $SimpleIconButtonStyleCopyWith on SimpleIconButtonStyle { |  | ||||||
|   /// Returns a callable class that can be used as follows: `instanceOfSimpleIconButtonStyle.copyWith(...)` or like so:`instanceOfSimpleIconButtonStyle.copyWith.fieldName(...)`. |  | ||||||
|   // ignore: library_private_types_in_public_api |  | ||||||
|   _$SimpleIconButtonStyleCWProxy get copyWith => |  | ||||||
|       _$SimpleIconButtonStyleCWProxyImpl(this); |  | ||||||
| } |  | ||||||
| @ -16,13 +16,10 @@ | |||||||
| 
 | 
 | ||||||
| import 'dart:ui'; | import 'dart:ui'; | ||||||
| 
 | 
 | ||||||
| import 'package:copy_with_extension/copy_with_extension.dart'; |  | ||||||
| import 'package:flutter/widgets.dart'; | import 'package:flutter/widgets.dart'; | ||||||
| import 'package:wyatt_ui_components/src/core/utils/multi_color.dart'; | import 'package:wyatt_ui_components/src/core/utils/multi_color.dart'; | ||||||
| import 'package:wyatt_ui_components/src/domain/entities/buttons/button_style.dart'; | import 'package:wyatt_ui_components/src/domain/entities/buttons/button_style.dart'; | ||||||
| part 'symbol_button_style.g.dart'; |  | ||||||
| 
 | 
 | ||||||
| @CopyWith() |  | ||||||
| class SymbolButtonStyle extends ButtonStyle<SymbolButtonStyle> { | class SymbolButtonStyle extends ButtonStyle<SymbolButtonStyle> { | ||||||
|   const SymbolButtonStyle({ |   const SymbolButtonStyle({ | ||||||
|     this.label, |     this.label, | ||||||
|  | |||||||
| @ -1,150 +0,0 @@ | |||||||
| // GENERATED CODE - DO NOT MODIFY BY HAND |  | ||||||
| 
 |  | ||||||
| part of 'symbol_button_style.dart'; |  | ||||||
| 
 |  | ||||||
| // ************************************************************************** |  | ||||||
| // CopyWithGenerator |  | ||||||
| // ************************************************************************** |  | ||||||
| 
 |  | ||||||
| abstract class _$SymbolButtonStyleCWProxy { |  | ||||||
|   SymbolButtonStyle label(TextStyle? label); |  | ||||||
| 
 |  | ||||||
|   SymbolButtonStyle dimension(double? dimension); |  | ||||||
| 
 |  | ||||||
|   SymbolButtonStyle radius(BorderRadiusGeometry? radius); |  | ||||||
| 
 |  | ||||||
|   SymbolButtonStyle padding(EdgeInsetsGeometry? padding); |  | ||||||
| 
 |  | ||||||
|   SymbolButtonStyle foregroundColors(MultiColor? foregroundColors); |  | ||||||
| 
 |  | ||||||
|   SymbolButtonStyle backgroundColors(MultiColor? backgroundColors); |  | ||||||
| 
 |  | ||||||
|   SymbolButtonStyle borderColors(MultiColor? borderColors); |  | ||||||
| 
 |  | ||||||
|   SymbolButtonStyle stroke(double? stroke); |  | ||||||
| 
 |  | ||||||
|   SymbolButtonStyle shadow(BoxShadow? shadow); |  | ||||||
| 
 |  | ||||||
|   /// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `SymbolButtonStyle(...).copyWith.fieldName(...)` to override fields one at a time with nullification support. |  | ||||||
|   /// |  | ||||||
|   /// Usage |  | ||||||
|   /// ```dart |  | ||||||
|   /// SymbolButtonStyle(...).copyWith(id: 12, name: "My name") |  | ||||||
|   /// ```` |  | ||||||
|   SymbolButtonStyle call({ |  | ||||||
|     TextStyle? label, |  | ||||||
|     double? dimension, |  | ||||||
|     BorderRadiusGeometry? radius, |  | ||||||
|     EdgeInsetsGeometry? padding, |  | ||||||
|     MultiColor? foregroundColors, |  | ||||||
|     MultiColor? backgroundColors, |  | ||||||
|     MultiColor? borderColors, |  | ||||||
|     double? stroke, |  | ||||||
|     BoxShadow? shadow, |  | ||||||
|   }); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| /// Proxy class for `copyWith` functionality. This is a callable class and can be used as follows: `instanceOfSymbolButtonStyle.copyWith(...)`. Additionally contains functions for specific fields e.g. `instanceOfSymbolButtonStyle.copyWith.fieldName(...)` |  | ||||||
| class _$SymbolButtonStyleCWProxyImpl implements _$SymbolButtonStyleCWProxy { |  | ||||||
|   const _$SymbolButtonStyleCWProxyImpl(this._value); |  | ||||||
| 
 |  | ||||||
|   final SymbolButtonStyle _value; |  | ||||||
| 
 |  | ||||||
|   @override |  | ||||||
|   SymbolButtonStyle label(TextStyle? label) => this(label: label); |  | ||||||
| 
 |  | ||||||
|   @override |  | ||||||
|   SymbolButtonStyle dimension(double? dimension) => this(dimension: dimension); |  | ||||||
| 
 |  | ||||||
|   @override |  | ||||||
|   SymbolButtonStyle radius(BorderRadiusGeometry? radius) => |  | ||||||
|       this(radius: radius); |  | ||||||
| 
 |  | ||||||
|   @override |  | ||||||
|   SymbolButtonStyle padding(EdgeInsetsGeometry? padding) => |  | ||||||
|       this(padding: padding); |  | ||||||
| 
 |  | ||||||
|   @override |  | ||||||
|   SymbolButtonStyle foregroundColors(MultiColor? foregroundColors) => |  | ||||||
|       this(foregroundColors: foregroundColors); |  | ||||||
| 
 |  | ||||||
|   @override |  | ||||||
|   SymbolButtonStyle backgroundColors(MultiColor? backgroundColors) => |  | ||||||
|       this(backgroundColors: backgroundColors); |  | ||||||
| 
 |  | ||||||
|   @override |  | ||||||
|   SymbolButtonStyle borderColors(MultiColor? borderColors) => |  | ||||||
|       this(borderColors: borderColors); |  | ||||||
| 
 |  | ||||||
|   @override |  | ||||||
|   SymbolButtonStyle stroke(double? stroke) => this(stroke: stroke); |  | ||||||
| 
 |  | ||||||
|   @override |  | ||||||
|   SymbolButtonStyle shadow(BoxShadow? shadow) => this(shadow: shadow); |  | ||||||
| 
 |  | ||||||
|   @override |  | ||||||
| 
 |  | ||||||
|   /// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `SymbolButtonStyle(...).copyWith.fieldName(...)` to override fields one at a time with nullification support. |  | ||||||
|   /// |  | ||||||
|   /// Usage |  | ||||||
|   /// ```dart |  | ||||||
|   /// SymbolButtonStyle(...).copyWith(id: 12, name: "My name") |  | ||||||
|   /// ```` |  | ||||||
|   SymbolButtonStyle call({ |  | ||||||
|     Object? label = const $CopyWithPlaceholder(), |  | ||||||
|     Object? dimension = const $CopyWithPlaceholder(), |  | ||||||
|     Object? radius = const $CopyWithPlaceholder(), |  | ||||||
|     Object? padding = const $CopyWithPlaceholder(), |  | ||||||
|     Object? foregroundColors = const $CopyWithPlaceholder(), |  | ||||||
|     Object? backgroundColors = const $CopyWithPlaceholder(), |  | ||||||
|     Object? borderColors = const $CopyWithPlaceholder(), |  | ||||||
|     Object? stroke = const $CopyWithPlaceholder(), |  | ||||||
|     Object? shadow = const $CopyWithPlaceholder(), |  | ||||||
|   }) { |  | ||||||
|     return SymbolButtonStyle( |  | ||||||
|       label: label == const $CopyWithPlaceholder() |  | ||||||
|           ? _value.label |  | ||||||
|           // ignore: cast_nullable_to_non_nullable |  | ||||||
|           : label as TextStyle?, |  | ||||||
|       dimension: dimension == const $CopyWithPlaceholder() |  | ||||||
|           ? _value.dimension |  | ||||||
|           // ignore: cast_nullable_to_non_nullable |  | ||||||
|           : dimension as double?, |  | ||||||
|       radius: radius == const $CopyWithPlaceholder() |  | ||||||
|           ? _value.radius |  | ||||||
|           // ignore: cast_nullable_to_non_nullable |  | ||||||
|           : radius as BorderRadiusGeometry?, |  | ||||||
|       padding: padding == const $CopyWithPlaceholder() |  | ||||||
|           ? _value.padding |  | ||||||
|           // ignore: cast_nullable_to_non_nullable |  | ||||||
|           : padding as EdgeInsetsGeometry?, |  | ||||||
|       foregroundColors: foregroundColors == const $CopyWithPlaceholder() |  | ||||||
|           ? _value.foregroundColors |  | ||||||
|           // ignore: cast_nullable_to_non_nullable |  | ||||||
|           : foregroundColors as MultiColor?, |  | ||||||
|       backgroundColors: backgroundColors == const $CopyWithPlaceholder() |  | ||||||
|           ? _value.backgroundColors |  | ||||||
|           // ignore: cast_nullable_to_non_nullable |  | ||||||
|           : backgroundColors as MultiColor?, |  | ||||||
|       borderColors: borderColors == const $CopyWithPlaceholder() |  | ||||||
|           ? _value.borderColors |  | ||||||
|           // ignore: cast_nullable_to_non_nullable |  | ||||||
|           : borderColors as MultiColor?, |  | ||||||
|       stroke: stroke == const $CopyWithPlaceholder() |  | ||||||
|           ? _value.stroke |  | ||||||
|           // ignore: cast_nullable_to_non_nullable |  | ||||||
|           : stroke as double?, |  | ||||||
|       shadow: shadow == const $CopyWithPlaceholder() |  | ||||||
|           ? _value.shadow |  | ||||||
|           // ignore: cast_nullable_to_non_nullable |  | ||||||
|           : shadow as BoxShadow?, |  | ||||||
|     ); |  | ||||||
|   } |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| extension $SymbolButtonStyleCopyWith on SymbolButtonStyle { |  | ||||||
|   /// Returns a callable class that can be used as follows: `instanceOfSymbolButtonStyle.copyWith(...)` or like so:`instanceOfSymbolButtonStyle.copyWith.fieldName(...)`. |  | ||||||
|   // ignore: library_private_types_in_public_api |  | ||||||
|   _$SymbolButtonStyleCWProxy get copyWith => |  | ||||||
|       _$SymbolButtonStyleCWProxyImpl(this); |  | ||||||
| } |  | ||||||
| @ -16,11 +16,8 @@ | |||||||
| 
 | 
 | ||||||
| import 'dart:ui'; | import 'dart:ui'; | ||||||
| 
 | 
 | ||||||
| import 'package:copy_with_extension/copy_with_extension.dart'; |  | ||||||
| import 'package:wyatt_ui_components/wyatt_wyatt_ui_components.dart'; | import 'package:wyatt_ui_components/wyatt_wyatt_ui_components.dart'; | ||||||
| part 'loader_style.g.dart'; |  | ||||||
| 
 | 
 | ||||||
| @CopyWith() |  | ||||||
| class LoaderStyle extends ThemeStyle<LoaderStyle> { | class LoaderStyle extends ThemeStyle<LoaderStyle> { | ||||||
|   const LoaderStyle({ |   const LoaderStyle({ | ||||||
|     this.colors, |     this.colors, | ||||||
|  | |||||||
| @ -1,67 +0,0 @@ | |||||||
| // GENERATED CODE - DO NOT MODIFY BY HAND |  | ||||||
| 
 |  | ||||||
| part of 'loader_style.dart'; |  | ||||||
| 
 |  | ||||||
| // ************************************************************************** |  | ||||||
| // CopyWithGenerator |  | ||||||
| // ************************************************************************** |  | ||||||
| 
 |  | ||||||
| abstract class _$LoaderStyleCWProxy { |  | ||||||
|   LoaderStyle colors(MultiColor? colors); |  | ||||||
| 
 |  | ||||||
|   LoaderStyle stroke(double? stroke); |  | ||||||
| 
 |  | ||||||
|   /// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `LoaderStyle(...).copyWith.fieldName(...)` to override fields one at a time with nullification support. |  | ||||||
|   /// |  | ||||||
|   /// Usage |  | ||||||
|   /// ```dart |  | ||||||
|   /// LoaderStyle(...).copyWith(id: 12, name: "My name") |  | ||||||
|   /// ```` |  | ||||||
|   LoaderStyle call({ |  | ||||||
|     MultiColor? colors, |  | ||||||
|     double? stroke, |  | ||||||
|   }); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| /// Proxy class for `copyWith` functionality. This is a callable class and can be used as follows: `instanceOfLoaderStyle.copyWith(...)`. Additionally contains functions for specific fields e.g. `instanceOfLoaderStyle.copyWith.fieldName(...)` |  | ||||||
| class _$LoaderStyleCWProxyImpl implements _$LoaderStyleCWProxy { |  | ||||||
|   const _$LoaderStyleCWProxyImpl(this._value); |  | ||||||
| 
 |  | ||||||
|   final LoaderStyle _value; |  | ||||||
| 
 |  | ||||||
|   @override |  | ||||||
|   LoaderStyle colors(MultiColor? colors) => this(colors: colors); |  | ||||||
| 
 |  | ||||||
|   @override |  | ||||||
|   LoaderStyle stroke(double? stroke) => this(stroke: stroke); |  | ||||||
| 
 |  | ||||||
|   @override |  | ||||||
| 
 |  | ||||||
|   /// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `LoaderStyle(...).copyWith.fieldName(...)` to override fields one at a time with nullification support. |  | ||||||
|   /// |  | ||||||
|   /// Usage |  | ||||||
|   /// ```dart |  | ||||||
|   /// LoaderStyle(...).copyWith(id: 12, name: "My name") |  | ||||||
|   /// ```` |  | ||||||
|   LoaderStyle call({ |  | ||||||
|     Object? colors = const $CopyWithPlaceholder(), |  | ||||||
|     Object? stroke = const $CopyWithPlaceholder(), |  | ||||||
|   }) { |  | ||||||
|     return LoaderStyle( |  | ||||||
|       colors: colors == const $CopyWithPlaceholder() |  | ||||||
|           ? _value.colors |  | ||||||
|           // ignore: cast_nullable_to_non_nullable |  | ||||||
|           : colors as MultiColor?, |  | ||||||
|       stroke: stroke == const $CopyWithPlaceholder() |  | ||||||
|           ? _value.stroke |  | ||||||
|           // ignore: cast_nullable_to_non_nullable |  | ||||||
|           : stroke as double?, |  | ||||||
|     ); |  | ||||||
|   } |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| extension $LoaderStyleCopyWith on LoaderStyle { |  | ||||||
|   /// Returns a callable class that can be used as follows: `instanceOfLoaderStyle.copyWith(...)` or like so:`instanceOfLoaderStyle.copyWith.fieldName(...)`. |  | ||||||
|   // ignore: library_private_types_in_public_api |  | ||||||
|   _$LoaderStyleCWProxy get copyWith => _$LoaderStyleCWProxyImpl(this); |  | ||||||
| } |  | ||||||
| @ -14,12 +14,9 @@ | |||||||
| // You should have received a copy of the GNU General Public License | // You should have received a copy of the GNU General Public License | ||||||
| // along with this program. If not, see <https://www.gnu.org/licenses/>. | // along with this program. If not, see <https://www.gnu.org/licenses/>. | ||||||
| 
 | 
 | ||||||
| import 'package:copy_with_extension/copy_with_extension.dart'; |  | ||||||
| import 'package:flutter/widgets.dart'; | import 'package:flutter/widgets.dart'; | ||||||
| import 'package:wyatt_ui_components/wyatt_wyatt_ui_components.dart'; | import 'package:wyatt_ui_components/wyatt_wyatt_ui_components.dart'; | ||||||
| part 'rich_text_builder_style.g.dart'; |  | ||||||
| 
 | 
 | ||||||
| @CopyWith() |  | ||||||
| class RichTextBuilderStyle extends ThemeStyle<RichTextBuilderStyle> { | class RichTextBuilderStyle extends ThemeStyle<RichTextBuilderStyle> { | ||||||
|   const RichTextBuilderStyle({ |   const RichTextBuilderStyle({ | ||||||
|     this.defaultStyle, |     this.defaultStyle, | ||||||
|  | |||||||
| @ -1,71 +0,0 @@ | |||||||
| // GENERATED CODE - DO NOT MODIFY BY HAND |  | ||||||
| 
 |  | ||||||
| part of 'rich_text_builder_style.dart'; |  | ||||||
| 
 |  | ||||||
| // ************************************************************************** |  | ||||||
| // CopyWithGenerator |  | ||||||
| // ************************************************************************** |  | ||||||
| 
 |  | ||||||
| abstract class _$RichTextBuilderStyleCWProxy { |  | ||||||
|   RichTextBuilderStyle defaultStyle(TextStyle? defaultStyle); |  | ||||||
| 
 |  | ||||||
|   RichTextBuilderStyle styles(Map<String, TextStyle>? styles); |  | ||||||
| 
 |  | ||||||
|   /// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `RichTextBuilderStyle(...).copyWith.fieldName(...)` to override fields one at a time with nullification support. |  | ||||||
|   /// |  | ||||||
|   /// Usage |  | ||||||
|   /// ```dart |  | ||||||
|   /// RichTextBuilderStyle(...).copyWith(id: 12, name: "My name") |  | ||||||
|   /// ```` |  | ||||||
|   RichTextBuilderStyle call({ |  | ||||||
|     TextStyle? defaultStyle, |  | ||||||
|     Map<String, TextStyle>? styles, |  | ||||||
|   }); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| /// Proxy class for `copyWith` functionality. This is a callable class and can be used as follows: `instanceOfRichTextBuilderStyle.copyWith(...)`. Additionally contains functions for specific fields e.g. `instanceOfRichTextBuilderStyle.copyWith.fieldName(...)` |  | ||||||
| class _$RichTextBuilderStyleCWProxyImpl |  | ||||||
|     implements _$RichTextBuilderStyleCWProxy { |  | ||||||
|   const _$RichTextBuilderStyleCWProxyImpl(this._value); |  | ||||||
| 
 |  | ||||||
|   final RichTextBuilderStyle _value; |  | ||||||
| 
 |  | ||||||
|   @override |  | ||||||
|   RichTextBuilderStyle defaultStyle(TextStyle? defaultStyle) => |  | ||||||
|       this(defaultStyle: defaultStyle); |  | ||||||
| 
 |  | ||||||
|   @override |  | ||||||
|   RichTextBuilderStyle styles(Map<String, TextStyle>? styles) => |  | ||||||
|       this(styles: styles); |  | ||||||
| 
 |  | ||||||
|   @override |  | ||||||
| 
 |  | ||||||
|   /// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `RichTextBuilderStyle(...).copyWith.fieldName(...)` to override fields one at a time with nullification support. |  | ||||||
|   /// |  | ||||||
|   /// Usage |  | ||||||
|   /// ```dart |  | ||||||
|   /// RichTextBuilderStyle(...).copyWith(id: 12, name: "My name") |  | ||||||
|   /// ```` |  | ||||||
|   RichTextBuilderStyle call({ |  | ||||||
|     Object? defaultStyle = const $CopyWithPlaceholder(), |  | ||||||
|     Object? styles = const $CopyWithPlaceholder(), |  | ||||||
|   }) { |  | ||||||
|     return RichTextBuilderStyle( |  | ||||||
|       defaultStyle: defaultStyle == const $CopyWithPlaceholder() |  | ||||||
|           ? _value.defaultStyle |  | ||||||
|           // ignore: cast_nullable_to_non_nullable |  | ||||||
|           : defaultStyle as TextStyle?, |  | ||||||
|       styles: styles == const $CopyWithPlaceholder() |  | ||||||
|           ? _value.styles |  | ||||||
|           // ignore: cast_nullable_to_non_nullable |  | ||||||
|           : styles as Map<String, TextStyle>?, |  | ||||||
|     ); |  | ||||||
|   } |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| extension $RichTextBuilderStyleCopyWith on RichTextBuilderStyle { |  | ||||||
|   /// Returns a callable class that can be used as follows: `instanceOfRichTextBuilderStyle.copyWith(...)` or like so:`instanceOfRichTextBuilderStyle.copyWith.fieldName(...)`. |  | ||||||
|   // ignore: library_private_types_in_public_api |  | ||||||
|   _$RichTextBuilderStyleCWProxy get copyWith => |  | ||||||
|       _$RichTextBuilderStyleCWProxyImpl(this); |  | ||||||
| } |  | ||||||
| @ -14,12 +14,9 @@ | |||||||
| // You should have received a copy of the GNU General Public License | // You should have received a copy of the GNU General Public License | ||||||
| // along with this program. If not, see <https://www.gnu.org/licenses/>. | // along with this program. If not, see <https://www.gnu.org/licenses/>. | ||||||
| 
 | 
 | ||||||
| import 'package:copy_with_extension/copy_with_extension.dart'; |  | ||||||
| import 'package:flutter/material.dart'; | import 'package:flutter/material.dart'; | ||||||
| import 'package:wyatt_ui_components/wyatt_wyatt_ui_components.dart'; | import 'package:wyatt_ui_components/wyatt_wyatt_ui_components.dart'; | ||||||
| part 'text_input_style.g.dart'; |  | ||||||
| 
 | 
 | ||||||
| @CopyWith() |  | ||||||
| class TextInputStyle extends ThemeStyle<TextInputStyle> { | class TextInputStyle extends ThemeStyle<TextInputStyle> { | ||||||
|   TextInputStyle({ |   TextInputStyle({ | ||||||
|     this.labelStyle, |     this.labelStyle, | ||||||
|  | |||||||
| @ -1,185 +0,0 @@ | |||||||
| // GENERATED CODE - DO NOT MODIFY BY HAND |  | ||||||
| 
 |  | ||||||
| part of 'text_input_style.dart'; |  | ||||||
| 
 |  | ||||||
| // ************************************************************************** |  | ||||||
| // CopyWithGenerator |  | ||||||
| // ************************************************************************** |  | ||||||
| 
 |  | ||||||
| abstract class _$TextInputStyleCWProxy { |  | ||||||
|   TextInputStyle labelStyle(TextStyle? labelStyle); |  | ||||||
| 
 |  | ||||||
|   TextInputStyle hintStyle(TextStyle? hintStyle); |  | ||||||
| 
 |  | ||||||
|   TextInputStyle backgroundColors(MultiColor? backgroundColors); |  | ||||||
| 
 |  | ||||||
|   TextInputStyle borderColors(MultiColor? borderColors); |  | ||||||
| 
 |  | ||||||
|   TextInputStyle boxShadow(BoxShadow? boxShadow); |  | ||||||
| 
 |  | ||||||
|   TextInputStyle radius(BorderRadiusGeometry? radius); |  | ||||||
| 
 |  | ||||||
|   TextInputStyle inputStyle(TextStyle? inputStyle); |  | ||||||
| 
 |  | ||||||
|   TextInputStyle iconColor(Color? iconColor); |  | ||||||
| 
 |  | ||||||
|   TextInputStyle prefixStyle(TextStyle? prefixStyle); |  | ||||||
| 
 |  | ||||||
|   TextInputStyle prefixIconColor(Color? prefixIconColor); |  | ||||||
| 
 |  | ||||||
|   TextInputStyle suffixStyle(TextStyle? suffixStyle); |  | ||||||
| 
 |  | ||||||
|   TextInputStyle suffixIconColor(Color? suffixIconColor); |  | ||||||
| 
 |  | ||||||
|   /// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `TextInputStyle(...).copyWith.fieldName(...)` to override fields one at a time with nullification support. |  | ||||||
|   /// |  | ||||||
|   /// Usage |  | ||||||
|   /// ```dart |  | ||||||
|   /// TextInputStyle(...).copyWith(id: 12, name: "My name") |  | ||||||
|   /// ```` |  | ||||||
|   TextInputStyle call({ |  | ||||||
|     TextStyle? labelStyle, |  | ||||||
|     TextStyle? hintStyle, |  | ||||||
|     MultiColor? backgroundColors, |  | ||||||
|     MultiColor? borderColors, |  | ||||||
|     BoxShadow? boxShadow, |  | ||||||
|     BorderRadiusGeometry? radius, |  | ||||||
|     TextStyle? inputStyle, |  | ||||||
|     Color? iconColor, |  | ||||||
|     TextStyle? prefixStyle, |  | ||||||
|     Color? prefixIconColor, |  | ||||||
|     TextStyle? suffixStyle, |  | ||||||
|     Color? suffixIconColor, |  | ||||||
|   }); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| /// Proxy class for `copyWith` functionality. This is a callable class and can be used as follows: `instanceOfTextInputStyle.copyWith(...)`. Additionally contains functions for specific fields e.g. `instanceOfTextInputStyle.copyWith.fieldName(...)` |  | ||||||
| class _$TextInputStyleCWProxyImpl implements _$TextInputStyleCWProxy { |  | ||||||
|   const _$TextInputStyleCWProxyImpl(this._value); |  | ||||||
| 
 |  | ||||||
|   final TextInputStyle _value; |  | ||||||
| 
 |  | ||||||
|   @override |  | ||||||
|   TextInputStyle labelStyle(TextStyle? labelStyle) => |  | ||||||
|       this(labelStyle: labelStyle); |  | ||||||
| 
 |  | ||||||
|   @override |  | ||||||
|   TextInputStyle hintStyle(TextStyle? hintStyle) => this(hintStyle: hintStyle); |  | ||||||
| 
 |  | ||||||
|   @override |  | ||||||
|   TextInputStyle backgroundColors(MultiColor? backgroundColors) => |  | ||||||
|       this(backgroundColors: backgroundColors); |  | ||||||
| 
 |  | ||||||
|   @override |  | ||||||
|   TextInputStyle borderColors(MultiColor? borderColors) => |  | ||||||
|       this(borderColors: borderColors); |  | ||||||
| 
 |  | ||||||
|   @override |  | ||||||
|   TextInputStyle boxShadow(BoxShadow? boxShadow) => this(boxShadow: boxShadow); |  | ||||||
| 
 |  | ||||||
|   @override |  | ||||||
|   TextInputStyle radius(BorderRadiusGeometry? radius) => this(radius: radius); |  | ||||||
| 
 |  | ||||||
|   @override |  | ||||||
|   TextInputStyle inputStyle(TextStyle? inputStyle) => |  | ||||||
|       this(inputStyle: inputStyle); |  | ||||||
| 
 |  | ||||||
|   @override |  | ||||||
|   TextInputStyle iconColor(Color? iconColor) => this(iconColor: iconColor); |  | ||||||
| 
 |  | ||||||
|   @override |  | ||||||
|   TextInputStyle prefixStyle(TextStyle? prefixStyle) => |  | ||||||
|       this(prefixStyle: prefixStyle); |  | ||||||
| 
 |  | ||||||
|   @override |  | ||||||
|   TextInputStyle prefixIconColor(Color? prefixIconColor) => |  | ||||||
|       this(prefixIconColor: prefixIconColor); |  | ||||||
| 
 |  | ||||||
|   @override |  | ||||||
|   TextInputStyle suffixStyle(TextStyle? suffixStyle) => |  | ||||||
|       this(suffixStyle: suffixStyle); |  | ||||||
| 
 |  | ||||||
|   @override |  | ||||||
|   TextInputStyle suffixIconColor(Color? suffixIconColor) => |  | ||||||
|       this(suffixIconColor: suffixIconColor); |  | ||||||
| 
 |  | ||||||
|   @override |  | ||||||
| 
 |  | ||||||
|   /// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `TextInputStyle(...).copyWith.fieldName(...)` to override fields one at a time with nullification support. |  | ||||||
|   /// |  | ||||||
|   /// Usage |  | ||||||
|   /// ```dart |  | ||||||
|   /// TextInputStyle(...).copyWith(id: 12, name: "My name") |  | ||||||
|   /// ```` |  | ||||||
|   TextInputStyle call({ |  | ||||||
|     Object? labelStyle = const $CopyWithPlaceholder(), |  | ||||||
|     Object? hintStyle = const $CopyWithPlaceholder(), |  | ||||||
|     Object? backgroundColors = const $CopyWithPlaceholder(), |  | ||||||
|     Object? borderColors = const $CopyWithPlaceholder(), |  | ||||||
|     Object? boxShadow = const $CopyWithPlaceholder(), |  | ||||||
|     Object? radius = const $CopyWithPlaceholder(), |  | ||||||
|     Object? inputStyle = const $CopyWithPlaceholder(), |  | ||||||
|     Object? iconColor = const $CopyWithPlaceholder(), |  | ||||||
|     Object? prefixStyle = const $CopyWithPlaceholder(), |  | ||||||
|     Object? prefixIconColor = const $CopyWithPlaceholder(), |  | ||||||
|     Object? suffixStyle = const $CopyWithPlaceholder(), |  | ||||||
|     Object? suffixIconColor = const $CopyWithPlaceholder(), |  | ||||||
|   }) { |  | ||||||
|     return TextInputStyle( |  | ||||||
|       labelStyle: labelStyle == const $CopyWithPlaceholder() |  | ||||||
|           ? _value.labelStyle |  | ||||||
|           // ignore: cast_nullable_to_non_nullable |  | ||||||
|           : labelStyle as TextStyle?, |  | ||||||
|       hintStyle: hintStyle == const $CopyWithPlaceholder() |  | ||||||
|           ? _value.hintStyle |  | ||||||
|           // ignore: cast_nullable_to_non_nullable |  | ||||||
|           : hintStyle as TextStyle?, |  | ||||||
|       backgroundColors: backgroundColors == const $CopyWithPlaceholder() |  | ||||||
|           ? _value.backgroundColors |  | ||||||
|           // ignore: cast_nullable_to_non_nullable |  | ||||||
|           : backgroundColors as MultiColor?, |  | ||||||
|       borderColors: borderColors == const $CopyWithPlaceholder() |  | ||||||
|           ? _value.borderColors |  | ||||||
|           // ignore: cast_nullable_to_non_nullable |  | ||||||
|           : borderColors as MultiColor?, |  | ||||||
|       boxShadow: boxShadow == const $CopyWithPlaceholder() |  | ||||||
|           ? _value.boxShadow |  | ||||||
|           // ignore: cast_nullable_to_non_nullable |  | ||||||
|           : boxShadow as BoxShadow?, |  | ||||||
|       radius: radius == const $CopyWithPlaceholder() |  | ||||||
|           ? _value.radius |  | ||||||
|           // ignore: cast_nullable_to_non_nullable |  | ||||||
|           : radius as BorderRadiusGeometry?, |  | ||||||
|       inputStyle: inputStyle == const $CopyWithPlaceholder() |  | ||||||
|           ? _value.inputStyle |  | ||||||
|           // ignore: cast_nullable_to_non_nullable |  | ||||||
|           : inputStyle as TextStyle?, |  | ||||||
|       iconColor: iconColor == const $CopyWithPlaceholder() |  | ||||||
|           ? _value.iconColor |  | ||||||
|           // ignore: cast_nullable_to_non_nullable |  | ||||||
|           : iconColor as Color?, |  | ||||||
|       prefixStyle: prefixStyle == const $CopyWithPlaceholder() |  | ||||||
|           ? _value.prefixStyle |  | ||||||
|           // ignore: cast_nullable_to_non_nullable |  | ||||||
|           : prefixStyle as TextStyle?, |  | ||||||
|       prefixIconColor: prefixIconColor == const $CopyWithPlaceholder() |  | ||||||
|           ? _value.prefixIconColor |  | ||||||
|           // ignore: cast_nullable_to_non_nullable |  | ||||||
|           : prefixIconColor as Color?, |  | ||||||
|       suffixStyle: suffixStyle == const $CopyWithPlaceholder() |  | ||||||
|           ? _value.suffixStyle |  | ||||||
|           // ignore: cast_nullable_to_non_nullable |  | ||||||
|           : suffixStyle as TextStyle?, |  | ||||||
|       suffixIconColor: suffixIconColor == const $CopyWithPlaceholder() |  | ||||||
|           ? _value.suffixIconColor |  | ||||||
|           // ignore: cast_nullable_to_non_nullable |  | ||||||
|           : suffixIconColor as Color?, |  | ||||||
|     ); |  | ||||||
|   } |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| extension $TextInputStyleCopyWith on TextInputStyle { |  | ||||||
|   /// Returns a callable class that can be used as follows: `instanceOfTextInputStyle.copyWith(...)` or like so:`instanceOfTextInputStyle.copyWith.fieldName(...)`. |  | ||||||
|   // ignore: library_private_types_in_public_api |  | ||||||
|   _$TextInputStyleCWProxy get copyWith => _$TextInputStyleCWProxyImpl(this); |  | ||||||
| } |  | ||||||
| @ -10,7 +10,6 @@ environment: | |||||||
| 
 | 
 | ||||||
| dependencies: | dependencies: | ||||||
|   flutter: { sdk: flutter } |   flutter: { sdk: flutter } | ||||||
|   copy_with_extension: ^5.0.0 |  | ||||||
|   wyatt_component_copy_with_extension: |   wyatt_component_copy_with_extension: | ||||||
|     git: |     git: | ||||||
|       url: ssh://git@git.wyatt-studio.fr:993/Wyatt-FOSS/wyatt-packages.git |       url: ssh://git@git.wyatt-studio.fr:993/Wyatt-FOSS/wyatt-packages.git | ||||||
| @ -19,7 +18,6 @@ dependencies: | |||||||
| 
 | 
 | ||||||
| dev_dependencies: | dev_dependencies: | ||||||
|   build_runner: ^2.3.3 |   build_runner: ^2.3.3 | ||||||
|   copy_with_extension_gen: ^5.0.0 |  | ||||||
|   flutter_test: { sdk: flutter } |   flutter_test: { sdk: flutter } | ||||||
|   freezed: ^2.3.2 |   freezed: ^2.3.2 | ||||||
|   wyatt_analysis: |   wyatt_analysis: | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user