From eda643e9b4667b5e602b2841ea243b56770daa53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Malo=20L=C3=A9on?= Date: Tue, 21 Feb 2023 13:09:20 +0100 Subject: [PATCH] chore(ui_components): remove g files and copy with deps --- .../buttons/file_selection_button_style.dart | 3 - .../file_selection_button_style.g.dart | 152 -------------- .../entities/buttons/flat_button_style.dart | 3 - .../entities/buttons/flat_button_style.g.dart | 137 ------------- .../buttons/simple_icon_button_style.dart | 3 - .../buttons/simple_icon_button_style.g.dart | 141 ------------- .../entities/buttons/symbol_button_style.dart | 3 - .../buttons/symbol_button_style.g.dart | 150 -------------- .../lib/src/domain/entities/loader_style.dart | 3 - .../src/domain/entities/loader_style.g.dart | 67 ------- .../rich_text_builder_style.dart | 3 - .../rich_text_builder_style.g.dart | 71 ------- .../text_inputs/text_input_style.dart | 3 - .../text_inputs/text_input_style.g.dart | 185 ------------------ packages/wyatt_ui_components/pubspec.yaml | 2 - 15 files changed, 926 deletions(-) delete mode 100644 packages/wyatt_ui_components/lib/src/domain/entities/buttons/file_selection_button_style.g.dart delete mode 100644 packages/wyatt_ui_components/lib/src/domain/entities/buttons/flat_button_style.g.dart delete mode 100644 packages/wyatt_ui_components/lib/src/domain/entities/buttons/simple_icon_button_style.g.dart delete mode 100644 packages/wyatt_ui_components/lib/src/domain/entities/buttons/symbol_button_style.g.dart delete mode 100644 packages/wyatt_ui_components/lib/src/domain/entities/loader_style.g.dart delete mode 100644 packages/wyatt_ui_components/lib/src/domain/entities/rich_text_builder/rich_text_builder_style.g.dart delete mode 100644 packages/wyatt_ui_components/lib/src/domain/entities/text_inputs/text_input_style.g.dart diff --git a/packages/wyatt_ui_components/lib/src/domain/entities/buttons/file_selection_button_style.dart b/packages/wyatt_ui_components/lib/src/domain/entities/buttons/file_selection_button_style.dart index 1e61e3a5..85f20b88 100644 --- a/packages/wyatt_ui_components/lib/src/domain/entities/buttons/file_selection_button_style.dart +++ b/packages/wyatt_ui_components/lib/src/domain/entities/buttons/file_selection_button_style.dart @@ -16,13 +16,10 @@ import 'dart:ui'; -import 'package:copy_with_extension/copy_with_extension.dart'; import 'package:flutter/widgets.dart'; import 'package:wyatt_ui_components/src/core/utils/multi_color.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 { const FileSelectionButtonStyle({ this.title, diff --git a/packages/wyatt_ui_components/lib/src/domain/entities/buttons/file_selection_button_style.g.dart b/packages/wyatt_ui_components/lib/src/domain/entities/buttons/file_selection_button_style.g.dart deleted file mode 100644 index 6576a261..00000000 --- a/packages/wyatt_ui_components/lib/src/domain/entities/buttons/file_selection_button_style.g.dart +++ /dev/null @@ -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); -} diff --git a/packages/wyatt_ui_components/lib/src/domain/entities/buttons/flat_button_style.dart b/packages/wyatt_ui_components/lib/src/domain/entities/buttons/flat_button_style.dart index 50ac5fb2..4a15cc42 100644 --- a/packages/wyatt_ui_components/lib/src/domain/entities/buttons/flat_button_style.dart +++ b/packages/wyatt_ui_components/lib/src/domain/entities/buttons/flat_button_style.dart @@ -16,13 +16,10 @@ import 'dart:ui'; -import 'package:copy_with_extension/copy_with_extension.dart'; import 'package:flutter/widgets.dart'; import 'package:wyatt_ui_components/src/core/utils/multi_color.dart'; import 'package:wyatt_ui_components/src/domain/entities/buttons/button_style.dart'; -part 'flat_button_style.g.dart'; -@CopyWith() class FlatButtonStyle extends ButtonStyle { const FlatButtonStyle({ this.label, diff --git a/packages/wyatt_ui_components/lib/src/domain/entities/buttons/flat_button_style.g.dart b/packages/wyatt_ui_components/lib/src/domain/entities/buttons/flat_button_style.g.dart deleted file mode 100644 index 939a48e1..00000000 --- a/packages/wyatt_ui_components/lib/src/domain/entities/buttons/flat_button_style.g.dart +++ /dev/null @@ -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); -} diff --git a/packages/wyatt_ui_components/lib/src/domain/entities/buttons/simple_icon_button_style.dart b/packages/wyatt_ui_components/lib/src/domain/entities/buttons/simple_icon_button_style.dart index 298d32d2..f2ea057b 100644 --- a/packages/wyatt_ui_components/lib/src/domain/entities/buttons/simple_icon_button_style.dart +++ b/packages/wyatt_ui_components/lib/src/domain/entities/buttons/simple_icon_button_style.dart @@ -16,13 +16,10 @@ import 'dart:ui'; -import 'package:copy_with_extension/copy_with_extension.dart'; import 'package:flutter/widgets.dart'; import 'package:wyatt_ui_components/src/core/utils/multi_color.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 { const SimpleIconButtonStyle({ this.dimension, diff --git a/packages/wyatt_ui_components/lib/src/domain/entities/buttons/simple_icon_button_style.g.dart b/packages/wyatt_ui_components/lib/src/domain/entities/buttons/simple_icon_button_style.g.dart deleted file mode 100644 index f0ee5153..00000000 --- a/packages/wyatt_ui_components/lib/src/domain/entities/buttons/simple_icon_button_style.g.dart +++ /dev/null @@ -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); -} diff --git a/packages/wyatt_ui_components/lib/src/domain/entities/buttons/symbol_button_style.dart b/packages/wyatt_ui_components/lib/src/domain/entities/buttons/symbol_button_style.dart index 9dcc9640..1357724e 100644 --- a/packages/wyatt_ui_components/lib/src/domain/entities/buttons/symbol_button_style.dart +++ b/packages/wyatt_ui_components/lib/src/domain/entities/buttons/symbol_button_style.dart @@ -16,13 +16,10 @@ import 'dart:ui'; -import 'package:copy_with_extension/copy_with_extension.dart'; import 'package:flutter/widgets.dart'; import 'package:wyatt_ui_components/src/core/utils/multi_color.dart'; import 'package:wyatt_ui_components/src/domain/entities/buttons/button_style.dart'; -part 'symbol_button_style.g.dart'; -@CopyWith() class SymbolButtonStyle extends ButtonStyle { const SymbolButtonStyle({ this.label, diff --git a/packages/wyatt_ui_components/lib/src/domain/entities/buttons/symbol_button_style.g.dart b/packages/wyatt_ui_components/lib/src/domain/entities/buttons/symbol_button_style.g.dart deleted file mode 100644 index a3233cec..00000000 --- a/packages/wyatt_ui_components/lib/src/domain/entities/buttons/symbol_button_style.g.dart +++ /dev/null @@ -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); -} diff --git a/packages/wyatt_ui_components/lib/src/domain/entities/loader_style.dart b/packages/wyatt_ui_components/lib/src/domain/entities/loader_style.dart index 0f46cbba..b32c3a35 100644 --- a/packages/wyatt_ui_components/lib/src/domain/entities/loader_style.dart +++ b/packages/wyatt_ui_components/lib/src/domain/entities/loader_style.dart @@ -16,11 +16,8 @@ import 'dart:ui'; -import 'package:copy_with_extension/copy_with_extension.dart'; import 'package:wyatt_ui_components/wyatt_wyatt_ui_components.dart'; -part 'loader_style.g.dart'; -@CopyWith() class LoaderStyle extends ThemeStyle { const LoaderStyle({ this.colors, diff --git a/packages/wyatt_ui_components/lib/src/domain/entities/loader_style.g.dart b/packages/wyatt_ui_components/lib/src/domain/entities/loader_style.g.dart deleted file mode 100644 index 86ec75c5..00000000 --- a/packages/wyatt_ui_components/lib/src/domain/entities/loader_style.g.dart +++ /dev/null @@ -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); -} diff --git a/packages/wyatt_ui_components/lib/src/domain/entities/rich_text_builder/rich_text_builder_style.dart b/packages/wyatt_ui_components/lib/src/domain/entities/rich_text_builder/rich_text_builder_style.dart index 48a21b3d..814bc237 100644 --- a/packages/wyatt_ui_components/lib/src/domain/entities/rich_text_builder/rich_text_builder_style.dart +++ b/packages/wyatt_ui_components/lib/src/domain/entities/rich_text_builder/rich_text_builder_style.dart @@ -14,12 +14,9 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -import 'package:copy_with_extension/copy_with_extension.dart'; import 'package:flutter/widgets.dart'; import 'package:wyatt_ui_components/wyatt_wyatt_ui_components.dart'; -part 'rich_text_builder_style.g.dart'; -@CopyWith() class RichTextBuilderStyle extends ThemeStyle { const RichTextBuilderStyle({ this.defaultStyle, diff --git a/packages/wyatt_ui_components/lib/src/domain/entities/rich_text_builder/rich_text_builder_style.g.dart b/packages/wyatt_ui_components/lib/src/domain/entities/rich_text_builder/rich_text_builder_style.g.dart deleted file mode 100644 index 8f74d5da..00000000 --- a/packages/wyatt_ui_components/lib/src/domain/entities/rich_text_builder/rich_text_builder_style.g.dart +++ /dev/null @@ -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? 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? 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? 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?, - ); - } -} - -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); -} diff --git a/packages/wyatt_ui_components/lib/src/domain/entities/text_inputs/text_input_style.dart b/packages/wyatt_ui_components/lib/src/domain/entities/text_inputs/text_input_style.dart index 61640bcd..72855a4e 100644 --- a/packages/wyatt_ui_components/lib/src/domain/entities/text_inputs/text_input_style.dart +++ b/packages/wyatt_ui_components/lib/src/domain/entities/text_inputs/text_input_style.dart @@ -14,12 +14,9 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -import 'package:copy_with_extension/copy_with_extension.dart'; import 'package:flutter/material.dart'; import 'package:wyatt_ui_components/wyatt_wyatt_ui_components.dart'; -part 'text_input_style.g.dart'; -@CopyWith() class TextInputStyle extends ThemeStyle { TextInputStyle({ this.labelStyle, diff --git a/packages/wyatt_ui_components/lib/src/domain/entities/text_inputs/text_input_style.g.dart b/packages/wyatt_ui_components/lib/src/domain/entities/text_inputs/text_input_style.g.dart deleted file mode 100644 index 972c2b88..00000000 --- a/packages/wyatt_ui_components/lib/src/domain/entities/text_inputs/text_input_style.g.dart +++ /dev/null @@ -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); -} diff --git a/packages/wyatt_ui_components/pubspec.yaml b/packages/wyatt_ui_components/pubspec.yaml index 865b67f9..fbd278f1 100644 --- a/packages/wyatt_ui_components/pubspec.yaml +++ b/packages/wyatt_ui_components/pubspec.yaml @@ -10,7 +10,6 @@ environment: dependencies: flutter: { sdk: flutter } - copy_with_extension: ^5.0.0 wyatt_component_copy_with_extension: git: url: ssh://git@git.wyatt-studio.fr:993/Wyatt-FOSS/wyatt-packages.git @@ -19,7 +18,6 @@ dependencies: dev_dependencies: build_runner: ^2.3.3 - copy_with_extension_gen: ^5.0.0 flutter_test: { sdk: flutter } freezed: ^2.3.2 wyatt_analysis: