feat(profile): some fixes, add buttons

This commit is contained in:
mso7nueh
2024-09-04 17:27:46 +03:00
parent d76f535663
commit f9c10047b2
154 changed files with 1249 additions and 296 deletions

View File

@@ -19,12 +19,12 @@ class Links with _$Links {
class Meta with _$Meta {
const factory Meta({
@JsonKey(name: "current_page") required int currentPage,
@JsonKey(name: "from") required int from,
@JsonKey(name: "from") required dynamic from,
@JsonKey(name: "last_page") required int lastPage,
@JsonKey(name: "links") required List<Link> links,
@JsonKey(name: "path") required String path,
@JsonKey(name: "per_page") required int perPage,
@JsonKey(name: "to") required int to,
@JsonKey(name: "to") required dynamic to,
@JsonKey(name: "total") required int total,
}) = _Meta;

View File

@@ -236,7 +236,7 @@ mixin _$Meta {
@JsonKey(name: "current_page")
int get currentPage => throw _privateConstructorUsedError;
@JsonKey(name: "from")
int get from => throw _privateConstructorUsedError;
dynamic get from => throw _privateConstructorUsedError;
@JsonKey(name: "last_page")
int get lastPage => throw _privateConstructorUsedError;
@JsonKey(name: "links")
@@ -246,7 +246,7 @@ mixin _$Meta {
@JsonKey(name: "per_page")
int get perPage => throw _privateConstructorUsedError;
@JsonKey(name: "to")
int get to => throw _privateConstructorUsedError;
dynamic get to => throw _privateConstructorUsedError;
@JsonKey(name: "total")
int get total => throw _privateConstructorUsedError;
@@ -262,12 +262,12 @@ abstract class $MetaCopyWith<$Res> {
@useResult
$Res call(
{@JsonKey(name: "current_page") int currentPage,
@JsonKey(name: "from") int from,
@JsonKey(name: "from") dynamic from,
@JsonKey(name: "last_page") int lastPage,
@JsonKey(name: "links") List<Link> links,
@JsonKey(name: "path") String path,
@JsonKey(name: "per_page") int perPage,
@JsonKey(name: "to") int to,
@JsonKey(name: "to") dynamic to,
@JsonKey(name: "total") int total});
}
@@ -285,12 +285,12 @@ class _$MetaCopyWithImpl<$Res, $Val extends Meta>
@override
$Res call({
Object? currentPage = null,
Object? from = null,
Object? from = freezed,
Object? lastPage = null,
Object? links = null,
Object? path = null,
Object? perPage = null,
Object? to = null,
Object? to = freezed,
Object? total = null,
}) {
return _then(_value.copyWith(
@@ -298,10 +298,10 @@ class _$MetaCopyWithImpl<$Res, $Val extends Meta>
? _value.currentPage
: currentPage // ignore: cast_nullable_to_non_nullable
as int,
from: null == from
from: freezed == from
? _value.from
: from // ignore: cast_nullable_to_non_nullable
as int,
as dynamic,
lastPage: null == lastPage
? _value.lastPage
: lastPage // ignore: cast_nullable_to_non_nullable
@@ -318,10 +318,10 @@ class _$MetaCopyWithImpl<$Res, $Val extends Meta>
? _value.perPage
: perPage // ignore: cast_nullable_to_non_nullable
as int,
to: null == to
to: freezed == to
? _value.to
: to // ignore: cast_nullable_to_non_nullable
as int,
as dynamic,
total: null == total
? _value.total
: total // ignore: cast_nullable_to_non_nullable
@@ -339,12 +339,12 @@ abstract class _$$MetaImplCopyWith<$Res> implements $MetaCopyWith<$Res> {
@useResult
$Res call(
{@JsonKey(name: "current_page") int currentPage,
@JsonKey(name: "from") int from,
@JsonKey(name: "from") dynamic from,
@JsonKey(name: "last_page") int lastPage,
@JsonKey(name: "links") List<Link> links,
@JsonKey(name: "path") String path,
@JsonKey(name: "per_page") int perPage,
@JsonKey(name: "to") int to,
@JsonKey(name: "to") dynamic to,
@JsonKey(name: "total") int total});
}
@@ -359,12 +359,12 @@ class __$$MetaImplCopyWithImpl<$Res>
@override
$Res call({
Object? currentPage = null,
Object? from = null,
Object? from = freezed,
Object? lastPage = null,
Object? links = null,
Object? path = null,
Object? perPage = null,
Object? to = null,
Object? to = freezed,
Object? total = null,
}) {
return _then(_$MetaImpl(
@@ -372,10 +372,10 @@ class __$$MetaImplCopyWithImpl<$Res>
? _value.currentPage
: currentPage // ignore: cast_nullable_to_non_nullable
as int,
from: null == from
from: freezed == from
? _value.from
: from // ignore: cast_nullable_to_non_nullable
as int,
as dynamic,
lastPage: null == lastPage
? _value.lastPage
: lastPage // ignore: cast_nullable_to_non_nullable
@@ -392,10 +392,10 @@ class __$$MetaImplCopyWithImpl<$Res>
? _value.perPage
: perPage // ignore: cast_nullable_to_non_nullable
as int,
to: null == to
to: freezed == to
? _value.to
: to // ignore: cast_nullable_to_non_nullable
as int,
as dynamic,
total: null == total
? _value.total
: total // ignore: cast_nullable_to_non_nullable
@@ -426,7 +426,7 @@ class _$MetaImpl implements _Meta {
final int currentPage;
@override
@JsonKey(name: "from")
final int from;
final dynamic from;
@override
@JsonKey(name: "last_page")
final int lastPage;
@@ -447,7 +447,7 @@ class _$MetaImpl implements _Meta {
final int perPage;
@override
@JsonKey(name: "to")
final int to;
final dynamic to;
@override
@JsonKey(name: "total")
final int total;
@@ -464,20 +464,28 @@ class _$MetaImpl implements _Meta {
other is _$MetaImpl &&
(identical(other.currentPage, currentPage) ||
other.currentPage == currentPage) &&
(identical(other.from, from) || other.from == from) &&
const DeepCollectionEquality().equals(other.from, from) &&
(identical(other.lastPage, lastPage) ||
other.lastPage == lastPage) &&
const DeepCollectionEquality().equals(other._links, _links) &&
(identical(other.path, path) || other.path == path) &&
(identical(other.perPage, perPage) || other.perPage == perPage) &&
(identical(other.to, to) || other.to == to) &&
const DeepCollectionEquality().equals(other.to, to) &&
(identical(other.total, total) || other.total == total));
}
@JsonKey(ignore: true)
@override
int get hashCode => Object.hash(runtimeType, currentPage, from, lastPage,
const DeepCollectionEquality().hash(_links), path, perPage, to, total);
int get hashCode => Object.hash(
runtimeType,
currentPage,
const DeepCollectionEquality().hash(from),
lastPage,
const DeepCollectionEquality().hash(_links),
path,
perPage,
const DeepCollectionEquality().hash(to),
total);
@JsonKey(ignore: true)
@override
@@ -496,12 +504,12 @@ class _$MetaImpl implements _Meta {
abstract class _Meta implements Meta {
const factory _Meta(
{@JsonKey(name: "current_page") required final int currentPage,
@JsonKey(name: "from") required final int from,
@JsonKey(name: "from") required final dynamic from,
@JsonKey(name: "last_page") required final int lastPage,
@JsonKey(name: "links") required final List<Link> links,
@JsonKey(name: "path") required final String path,
@JsonKey(name: "per_page") required final int perPage,
@JsonKey(name: "to") required final int to,
@JsonKey(name: "to") required final dynamic to,
@JsonKey(name: "total") required final int total}) = _$MetaImpl;
factory _Meta.fromJson(Map<String, dynamic> json) = _$MetaImpl.fromJson;
@@ -511,7 +519,7 @@ abstract class _Meta implements Meta {
int get currentPage;
@override
@JsonKey(name: "from")
int get from;
dynamic get from;
@override
@JsonKey(name: "last_page")
int get lastPage;
@@ -526,7 +534,7 @@ abstract class _Meta implements Meta {
int get perPage;
@override
@JsonKey(name: "to")
int get to;
dynamic get to;
@override
@JsonKey(name: "total")
int get total;

View File

@@ -23,14 +23,14 @@ Map<String, dynamic> _$$LinksImplToJson(_$LinksImpl instance) =>
_$MetaImpl _$$MetaImplFromJson(Map<String, dynamic> json) => _$MetaImpl(
currentPage: (json['current_page'] as num).toInt(),
from: (json['from'] as num).toInt(),
from: json['from'],
lastPage: (json['last_page'] as num).toInt(),
links: (json['links'] as List<dynamic>)
.map((e) => Link.fromJson(e as Map<String, dynamic>))
.toList(),
path: json['path'] as String,
perPage: (json['per_page'] as num).toInt(),
to: (json['to'] as num).toInt(),
to: json['to'],
total: (json['total'] as num).toInt(),
);