Skip to content

Commit

Permalink
chore: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
vaetas committed Apr 26, 2022
1 parent 46fdc5c commit 1219c76
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 114 deletions.
13 changes: 10 additions & 3 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ packages:
name: freezed_annotation
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0"
version: "2.0.1"
json_annotation:
dependency: transitive
description:
Expand All @@ -95,6 +95,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "0.12.11"
material_color_utilities:
dependency: transitive
description:
name: material_color_utilities
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.3"
meta:
dependency: transitive
description:
Expand All @@ -115,7 +122,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.3.0"
version: "0.3.1"
sky_engine:
dependency: transitive
description: flutter
Expand Down Expand Up @@ -162,7 +169,7 @@ packages:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.4.3"
version: "0.4.8"
typed_data:
dependency: transitive
description:
Expand Down
119 changes: 35 additions & 84 deletions lib/src/theme/theme.freezed.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,57 +12,7 @@ part of 'theme.dart';
T _$identity<T>(T value) => value;

final _privateConstructorUsedError = UnsupportedError(
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more informations: https://github.com/rrousselGit/freezed#custom-getters-and-methods');

/// @nodoc
class _$PressableThemeTearOff {
const _$PressableThemeTearOff();

PressableRippleTheme ripple(
{Color? splashColor, Color? highlightColor, BorderRadius? borderRadius}) {
return PressableRippleTheme(
splashColor: splashColor,
highlightColor: highlightColor,
borderRadius: borderRadius,
);
}

PressableScaleTheme scale(
{double scaleFactor = 0.8,
Duration duration = const Duration(milliseconds: 100),
Curve curve = Curves.easeInOut}) {
return PressableScaleTheme(
scaleFactor: scaleFactor,
duration: duration,
curve: curve,
);
}

PressableOpacityTheme opacity(
{Duration duration = const Duration(milliseconds: 100),
double opacityFactor = 0.6,
Curve curve = Curves.linear,
Color backgroundColor = Colors.transparent}) {
return PressableOpacityTheme(
duration: duration,
opacityFactor: opacityFactor,
curve: curve,
backgroundColor: backgroundColor,
);
}

PressableFillTheme fill(
{Color fillColor = Colors.black38,
BorderRadius borderRadius = BorderRadius.zero}) {
return PressableFillTheme(
fillColor: fillColor,
borderRadius: borderRadius,
);
}
}

/// @nodoc
const $PressableTheme = _$PressableThemeTearOff();
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods');

/// @nodoc
mixin _$PressableTheme {
Expand Down Expand Up @@ -327,13 +277,13 @@ class _$PressableRippleTheme implements PressableRippleTheme {

abstract class PressableRippleTheme implements PressableTheme {
const factory PressableRippleTheme(
{Color? splashColor,
Color? highlightColor,
BorderRadius? borderRadius}) = _$PressableRippleTheme;
{final Color? splashColor,
final Color? highlightColor,
final BorderRadius? borderRadius}) = _$PressableRippleTheme;

Color? get splashColor;
Color? get highlightColor;
BorderRadius? get borderRadius;
Color? get splashColor => throw _privateConstructorUsedError;
Color? get highlightColor => throw _privateConstructorUsedError;
BorderRadius? get borderRadius => throw _privateConstructorUsedError;
@JsonKey(ignore: true)
$PressableRippleThemeCopyWith<PressableRippleTheme> get copyWith =>
throw _privateConstructorUsedError;
Expand Down Expand Up @@ -389,14 +339,14 @@ class _$PressableScaleTheme implements PressableScaleTheme {
this.duration = const Duration(milliseconds: 100),
this.curve = Curves.easeInOut});

@JsonKey()
@override
final double scaleFactor;
@JsonKey()
final double scaleFactor;
@override
final Duration duration;
@JsonKey()
final Duration duration;
@override
@JsonKey()
final Curve curve;

@override
Expand Down Expand Up @@ -518,13 +468,13 @@ class _$PressableScaleTheme implements PressableScaleTheme {

abstract class PressableScaleTheme implements PressableTheme {
const factory PressableScaleTheme(
{double scaleFactor,
Duration duration,
Curve curve}) = _$PressableScaleTheme;
{final double scaleFactor,
final Duration duration,
final Curve curve}) = _$PressableScaleTheme;

double get scaleFactor;
Duration get duration;
Curve get curve;
double get scaleFactor => throw _privateConstructorUsedError;
Duration get duration => throw _privateConstructorUsedError;
Curve get curve => throw _privateConstructorUsedError;
@JsonKey(ignore: true)
$PressableScaleThemeCopyWith<PressableScaleTheme> get copyWith =>
throw _privateConstructorUsedError;
Expand Down Expand Up @@ -590,17 +540,17 @@ class _$PressableOpacityTheme implements PressableOpacityTheme {
this.curve = Curves.linear,
this.backgroundColor = Colors.transparent});

@JsonKey()
@override
final Duration duration;
@JsonKey()
final Duration duration;
@override
final double opacityFactor;
@JsonKey()
final double opacityFactor;
@override
final Curve curve;
@JsonKey()
final Curve curve;
@override
@JsonKey()
final Color backgroundColor;

@override
Expand Down Expand Up @@ -726,15 +676,15 @@ class _$PressableOpacityTheme implements PressableOpacityTheme {

abstract class PressableOpacityTheme implements PressableTheme {
const factory PressableOpacityTheme(
{Duration duration,
double opacityFactor,
Curve curve,
Color backgroundColor}) = _$PressableOpacityTheme;

Duration get duration;
double get opacityFactor;
Curve get curve;
Color get backgroundColor;
{final Duration duration,
final double opacityFactor,
final Curve curve,
final Color backgroundColor}) = _$PressableOpacityTheme;

Duration get duration => throw _privateConstructorUsedError;
double get opacityFactor => throw _privateConstructorUsedError;
Curve get curve => throw _privateConstructorUsedError;
Color get backgroundColor => throw _privateConstructorUsedError;
@JsonKey(ignore: true)
$PressableOpacityThemeCopyWith<PressableOpacityTheme> get copyWith =>
throw _privateConstructorUsedError;
Expand Down Expand Up @@ -783,11 +733,11 @@ class _$PressableFillTheme implements PressableFillTheme {
const _$PressableFillTheme(
{this.fillColor = Colors.black38, this.borderRadius = BorderRadius.zero});

@JsonKey()
@override
final Color fillColor;
@JsonKey()
final Color fillColor;
@override
@JsonKey()
final BorderRadius borderRadius;

@override
Expand Down Expand Up @@ -907,10 +857,11 @@ class _$PressableFillTheme implements PressableFillTheme {

abstract class PressableFillTheme implements PressableTheme {
const factory PressableFillTheme(
{Color fillColor, BorderRadius borderRadius}) = _$PressableFillTheme;
{final Color fillColor,
final BorderRadius borderRadius}) = _$PressableFillTheme;

Color get fillColor;
BorderRadius get borderRadius;
Color get fillColor => throw _privateConstructorUsedError;
BorderRadius get borderRadius => throw _privateConstructorUsedError;
@JsonKey(ignore: true)
$PressableFillThemeCopyWith<PressableFillTheme> get copyWith =>
throw _privateConstructorUsedError;
Expand Down
Loading

0 comments on commit 1219c76

Please sign in to comment.