Создание коллекций

This commit is contained in:
2025-03-25 20:53:53 +03:00
parent cb6ce05059
commit e6517402d3
375 changed files with 1775 additions and 1519 deletions

View File

@@ -10,8 +10,7 @@
// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'package:auto_route/auto_route.dart' as _i12;
import 'package:flutter/cupertino.dart' as _i14;
import 'package:flutter/material.dart' as _i13;
import 'package:flutter/cupertino.dart' as _i13;
import 'package:remever/screens/auth/auth_screen.dart' as _i1;
import 'package:remever/screens/collections/collection_detail_screen.dart'
as _i2;
@@ -60,38 +59,20 @@ class CollectionDetailRoute extends _i12.PageRouteInfo<void> {
/// generated route for
/// [_i3.CollectionScreen]
class CollectionRoute extends _i12.PageRouteInfo<CollectionRouteArgs> {
CollectionRoute({_i13.Key? key, List<_i12.PageRouteInfo>? children})
: super(
CollectionRoute.name,
args: CollectionRouteArgs(key: key),
initialChildren: children,
);
class CollectionRoute extends _i12.PageRouteInfo<void> {
const CollectionRoute({List<_i12.PageRouteInfo>? children})
: super(CollectionRoute.name, initialChildren: children);
static const String name = 'CollectionRoute';
static _i12.PageInfo page = _i12.PageInfo(
name,
builder: (data) {
final args = data.argsAs<CollectionRouteArgs>(
orElse: () => const CollectionRouteArgs(),
);
return _i3.CollectionScreen(key: args.key);
return const _i3.CollectionScreen();
},
);
}
class CollectionRouteArgs {
const CollectionRouteArgs({this.key});
final _i13.Key? key;
@override
String toString() {
return 'CollectionRouteArgs{key: $key}';
}
}
/// generated route for
/// [_i4.CreateScreen]
class CreateRoute extends _i12.PageRouteInfo<void> {
@@ -113,10 +94,12 @@ class CreateRoute extends _i12.PageRouteInfo<void> {
class CrudCollectionFullscreenField
extends _i12.PageRouteInfo<CrudCollectionFullscreenFieldArgs> {
CrudCollectionFullscreenField({
_i14.Key? key,
_i13.Key? key,
String title = '',
String? hint,
String? content,
double height = 92,
required void Function(String?) onEditingComplete,
List<_i12.PageRouteInfo>? children,
}) : super(
CrudCollectionFullscreenField.name,
@@ -124,7 +107,9 @@ class CrudCollectionFullscreenField
key: key,
title: title,
hint: hint,
content: content,
height: height,
onEditingComplete: onEditingComplete,
),
initialChildren: children,
);
@@ -134,14 +119,14 @@ class CrudCollectionFullscreenField
static _i12.PageInfo page = _i12.PageInfo(
name,
builder: (data) {
final args = data.argsAs<CrudCollectionFullscreenFieldArgs>(
orElse: () => const CrudCollectionFullscreenFieldArgs(),
);
final args = data.argsAs<CrudCollectionFullscreenFieldArgs>();
return _i5.CrudCollectionFullscreenField(
key: args.key,
title: args.title,
hint: args.hint,
content: args.content,
height: args.height,
onEditingComplete: args.onEditingComplete,
);
},
);
@@ -152,20 +137,26 @@ class CrudCollectionFullscreenFieldArgs {
this.key,
this.title = '',
this.hint,
this.content,
this.height = 92,
required this.onEditingComplete,
});
final _i14.Key? key;
final _i13.Key? key;
final String title;
final String? hint;
final String? content;
final double height;
final void Function(String?) onEditingComplete;
@override
String toString() {
return 'CrudCollectionFullscreenFieldArgs{key: $key, title: $title, hint: $hint, height: $height}';
return 'CrudCollectionFullscreenFieldArgs{key: $key, title: $title, hint: $hint, content: $content, height: $height, onEditingComplete: $onEditingComplete}';
}
}
@@ -173,7 +164,7 @@ class CrudCollectionFullscreenFieldArgs {
/// [_i6.CrudCollectionScreen]
class CrudCollectionRoute extends _i12.PageRouteInfo<CrudCollectionRouteArgs> {
CrudCollectionRoute({
_i14.Key? key,
_i13.Key? key,
_i6.CrudType crudType = _i6.CrudType.CREATE,
List<_i12.PageRouteInfo>? children,
}) : super(
@@ -201,7 +192,7 @@ class CrudCollectionRouteArgs {
this.crudType = _i6.CrudType.CREATE,
});
final _i14.Key? key;
final _i13.Key? key;
final _i6.CrudType crudType;