Создание карточки в коллекции + экран поиска коллекции
This commit is contained in:
@@ -9,32 +9,34 @@
|
||||
// coverage:ignore-file
|
||||
|
||||
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
||||
import 'package:auto_route/auto_route.dart' as _i12;
|
||||
import 'package:flutter/cupertino.dart' as _i13;
|
||||
import 'package:remever/database/database.dart' as _i14;
|
||||
import 'package:auto_route/auto_route.dart' as _i13;
|
||||
import 'package:flutter/cupertino.dart' as _i14;
|
||||
import 'package:remever/database/database.dart' as _i15;
|
||||
import 'package:remever/screens/auth/auth_screen.dart' as _i1;
|
||||
import 'package:remever/screens/collections/collection_detail_screen.dart'
|
||||
as _i2;
|
||||
import 'package:remever/screens/collections/collection_search_screen.dart'
|
||||
as _i4;
|
||||
import 'package:remever/screens/collections/collections_screen.dart' as _i3;
|
||||
import 'package:remever/screens/create_card/create_screen.dart' as _i4;
|
||||
import 'package:remever/screens/crud_collection/crud_collection.dart' as _i6;
|
||||
import 'package:remever/screens/create_card/create_screen.dart' as _i5;
|
||||
import 'package:remever/screens/crud_collection/crud_collection.dart' as _i7;
|
||||
import 'package:remever/screens/crud_collection/widgets/crud_collection_fullscreen_field.dart'
|
||||
as _i5;
|
||||
import 'package:remever/screens/home/home_screen.dart' as _i7;
|
||||
import 'package:remever/screens/sandbox/sandbox_screen.dart' as _i8;
|
||||
import 'package:remever/screens/settings/settings_screen.dart' as _i9;
|
||||
import 'package:remever/screens/splash/splash_screen.dart' as _i10;
|
||||
import 'package:remever/screens/statistick/statistick_screen.dart' as _i11;
|
||||
as _i6;
|
||||
import 'package:remever/screens/home/home_screen.dart' as _i8;
|
||||
import 'package:remever/screens/sandbox/sandbox_screen.dart' as _i9;
|
||||
import 'package:remever/screens/settings/settings_screen.dart' as _i10;
|
||||
import 'package:remever/screens/splash/splash_screen.dart' as _i11;
|
||||
import 'package:remever/screens/statistick/statistick_screen.dart' as _i12;
|
||||
|
||||
/// generated route for
|
||||
/// [_i1.AuthScreen]
|
||||
class AuthRoute extends _i12.PageRouteInfo<void> {
|
||||
const AuthRoute({List<_i12.PageRouteInfo>? children})
|
||||
class AuthRoute extends _i13.PageRouteInfo<void> {
|
||||
const AuthRoute({List<_i13.PageRouteInfo>? children})
|
||||
: super(AuthRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'AuthRoute';
|
||||
|
||||
static _i12.PageInfo page = _i12.PageInfo(
|
||||
static _i13.PageInfo page = _i13.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i1.AuthScreen();
|
||||
@@ -45,11 +47,11 @@ class AuthRoute extends _i12.PageRouteInfo<void> {
|
||||
/// generated route for
|
||||
/// [_i2.CollectionDetailScreen]
|
||||
class CollectionDetailRoute
|
||||
extends _i12.PageRouteInfo<CollectionDetailRouteArgs> {
|
||||
extends _i13.PageRouteInfo<CollectionDetailRouteArgs> {
|
||||
CollectionDetailRoute({
|
||||
_i13.Key? key,
|
||||
required _i14.Collection collection,
|
||||
List<_i12.PageRouteInfo>? children,
|
||||
_i14.Key? key,
|
||||
required _i15.Collection collection,
|
||||
List<_i13.PageRouteInfo>? children,
|
||||
}) : super(
|
||||
CollectionDetailRoute.name,
|
||||
args: CollectionDetailRouteArgs(key: key, collection: collection),
|
||||
@@ -58,7 +60,7 @@ class CollectionDetailRoute
|
||||
|
||||
static const String name = 'CollectionDetailRoute';
|
||||
|
||||
static _i12.PageInfo page = _i12.PageInfo(
|
||||
static _i13.PageInfo page = _i13.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
final args = data.argsAs<CollectionDetailRouteArgs>();
|
||||
@@ -73,9 +75,9 @@ class CollectionDetailRoute
|
||||
class CollectionDetailRouteArgs {
|
||||
const CollectionDetailRouteArgs({this.key, required this.collection});
|
||||
|
||||
final _i13.Key? key;
|
||||
final _i14.Key? key;
|
||||
|
||||
final _i14.Collection collection;
|
||||
final _i15.Collection collection;
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
@@ -85,13 +87,13 @@ class CollectionDetailRouteArgs {
|
||||
|
||||
/// generated route for
|
||||
/// [_i3.CollectionScreen]
|
||||
class CollectionRoute extends _i12.PageRouteInfo<void> {
|
||||
const CollectionRoute({List<_i12.PageRouteInfo>? children})
|
||||
class CollectionRoute extends _i13.PageRouteInfo<void> {
|
||||
const CollectionRoute({List<_i13.PageRouteInfo>? children})
|
||||
: super(CollectionRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'CollectionRoute';
|
||||
|
||||
static _i12.PageInfo page = _i12.PageInfo(
|
||||
static _i13.PageInfo page = _i13.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i3.CollectionScreen();
|
||||
@@ -100,33 +102,77 @@ class CollectionRoute extends _i12.PageRouteInfo<void> {
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i4.CreateScreen]
|
||||
class CreateRoute extends _i12.PageRouteInfo<void> {
|
||||
const CreateRoute({List<_i12.PageRouteInfo>? children})
|
||||
/// [_i4.CollectionSearchScreen]
|
||||
class CollectionSearchRoute
|
||||
extends _i13.PageRouteInfo<CollectionSearchRouteArgs> {
|
||||
CollectionSearchRoute({
|
||||
_i14.Key? key,
|
||||
required void Function(_i15.Collection) onCollectionSelect,
|
||||
List<_i13.PageRouteInfo>? children,
|
||||
}) : super(
|
||||
CollectionSearchRoute.name,
|
||||
args: CollectionSearchRouteArgs(
|
||||
key: key,
|
||||
onCollectionSelect: onCollectionSelect,
|
||||
),
|
||||
initialChildren: children,
|
||||
);
|
||||
|
||||
static const String name = 'CollectionSearchRoute';
|
||||
|
||||
static _i13.PageInfo page = _i13.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
final args = data.argsAs<CollectionSearchRouteArgs>();
|
||||
return _i4.CollectionSearchScreen(
|
||||
key: args.key,
|
||||
onCollectionSelect: args.onCollectionSelect,
|
||||
);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
class CollectionSearchRouteArgs {
|
||||
const CollectionSearchRouteArgs({this.key, required this.onCollectionSelect});
|
||||
|
||||
final _i14.Key? key;
|
||||
|
||||
final void Function(_i15.Collection) onCollectionSelect;
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'CollectionSearchRouteArgs{key: $key, onCollectionSelect: $onCollectionSelect}';
|
||||
}
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i5.CreateScreen]
|
||||
class CreateRoute extends _i13.PageRouteInfo<void> {
|
||||
const CreateRoute({List<_i13.PageRouteInfo>? children})
|
||||
: super(CreateRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'CreateRoute';
|
||||
|
||||
static _i12.PageInfo page = _i12.PageInfo(
|
||||
static _i13.PageInfo page = _i13.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i4.CreateScreen();
|
||||
return const _i5.CreateScreen();
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i5.CrudCollectionFullscreenField]
|
||||
/// [_i6.CrudCollectionFullscreenField]
|
||||
class CrudCollectionFullscreenField
|
||||
extends _i12.PageRouteInfo<CrudCollectionFullscreenFieldArgs> {
|
||||
extends _i13.PageRouteInfo<CrudCollectionFullscreenFieldArgs> {
|
||||
CrudCollectionFullscreenField({
|
||||
_i13.Key? key,
|
||||
_i14.Key? key,
|
||||
String title = '',
|
||||
String? hint,
|
||||
String? content,
|
||||
double height = 92,
|
||||
required void Function(String?) onEditingComplete,
|
||||
List<_i12.PageRouteInfo>? children,
|
||||
List<_i13.PageRouteInfo>? children,
|
||||
}) : super(
|
||||
CrudCollectionFullscreenField.name,
|
||||
args: CrudCollectionFullscreenFieldArgs(
|
||||
@@ -142,11 +188,11 @@ class CrudCollectionFullscreenField
|
||||
|
||||
static const String name = 'CrudCollectionFullscreenField';
|
||||
|
||||
static _i12.PageInfo page = _i12.PageInfo(
|
||||
static _i13.PageInfo page = _i13.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
final args = data.argsAs<CrudCollectionFullscreenFieldArgs>();
|
||||
return _i5.CrudCollectionFullscreenField(
|
||||
return _i6.CrudCollectionFullscreenField(
|
||||
key: args.key,
|
||||
title: args.title,
|
||||
hint: args.hint,
|
||||
@@ -168,7 +214,7 @@ class CrudCollectionFullscreenFieldArgs {
|
||||
required this.onEditingComplete,
|
||||
});
|
||||
|
||||
final _i13.Key? key;
|
||||
final _i14.Key? key;
|
||||
|
||||
final String title;
|
||||
|
||||
@@ -187,12 +233,12 @@ class CrudCollectionFullscreenFieldArgs {
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i6.CrudCollectionScreen]
|
||||
class CrudCollectionRoute extends _i12.PageRouteInfo<CrudCollectionRouteArgs> {
|
||||
/// [_i7.CrudCollectionScreen]
|
||||
class CrudCollectionRoute extends _i13.PageRouteInfo<CrudCollectionRouteArgs> {
|
||||
CrudCollectionRoute({
|
||||
_i13.Key? key,
|
||||
_i14.Collection? editedCollection,
|
||||
List<_i12.PageRouteInfo>? children,
|
||||
_i14.Key? key,
|
||||
_i15.Collection? editedCollection,
|
||||
List<_i13.PageRouteInfo>? children,
|
||||
}) : super(
|
||||
CrudCollectionRoute.name,
|
||||
args: CrudCollectionRouteArgs(
|
||||
@@ -204,13 +250,13 @@ class CrudCollectionRoute extends _i12.PageRouteInfo<CrudCollectionRouteArgs> {
|
||||
|
||||
static const String name = 'CrudCollectionRoute';
|
||||
|
||||
static _i12.PageInfo page = _i12.PageInfo(
|
||||
static _i13.PageInfo page = _i13.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
final args = data.argsAs<CrudCollectionRouteArgs>(
|
||||
orElse: () => const CrudCollectionRouteArgs(),
|
||||
);
|
||||
return _i6.CrudCollectionScreen(
|
||||
return _i7.CrudCollectionScreen(
|
||||
key: args.key,
|
||||
editedCollection: args.editedCollection,
|
||||
);
|
||||
@@ -221,9 +267,9 @@ class CrudCollectionRoute extends _i12.PageRouteInfo<CrudCollectionRouteArgs> {
|
||||
class CrudCollectionRouteArgs {
|
||||
const CrudCollectionRouteArgs({this.key, this.editedCollection});
|
||||
|
||||
final _i13.Key? key;
|
||||
final _i14.Key? key;
|
||||
|
||||
final _i14.Collection? editedCollection;
|
||||
final _i15.Collection? editedCollection;
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
@@ -232,81 +278,81 @@ class CrudCollectionRouteArgs {
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i7.HomeScreen]
|
||||
class HomeRoute extends _i12.PageRouteInfo<void> {
|
||||
const HomeRoute({List<_i12.PageRouteInfo>? children})
|
||||
/// [_i8.HomeScreen]
|
||||
class HomeRoute extends _i13.PageRouteInfo<void> {
|
||||
const HomeRoute({List<_i13.PageRouteInfo>? children})
|
||||
: super(HomeRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'HomeRoute';
|
||||
|
||||
static _i12.PageInfo page = _i12.PageInfo(
|
||||
static _i13.PageInfo page = _i13.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i7.HomeScreen();
|
||||
return const _i8.HomeScreen();
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i8.SandboxScreen]
|
||||
class SandboxRoute extends _i12.PageRouteInfo<void> {
|
||||
const SandboxRoute({List<_i12.PageRouteInfo>? children})
|
||||
/// [_i9.SandboxScreen]
|
||||
class SandboxRoute extends _i13.PageRouteInfo<void> {
|
||||
const SandboxRoute({List<_i13.PageRouteInfo>? children})
|
||||
: super(SandboxRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'SandboxRoute';
|
||||
|
||||
static _i12.PageInfo page = _i12.PageInfo(
|
||||
static _i13.PageInfo page = _i13.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i8.SandboxScreen();
|
||||
return const _i9.SandboxScreen();
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i9.SettingsScreen]
|
||||
class SettingsRoute extends _i12.PageRouteInfo<void> {
|
||||
const SettingsRoute({List<_i12.PageRouteInfo>? children})
|
||||
/// [_i10.SettingsScreen]
|
||||
class SettingsRoute extends _i13.PageRouteInfo<void> {
|
||||
const SettingsRoute({List<_i13.PageRouteInfo>? children})
|
||||
: super(SettingsRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'SettingsRoute';
|
||||
|
||||
static _i12.PageInfo page = _i12.PageInfo(
|
||||
static _i13.PageInfo page = _i13.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i9.SettingsScreen();
|
||||
return const _i10.SettingsScreen();
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i10.SplashScreen]
|
||||
class SplashRoute extends _i12.PageRouteInfo<void> {
|
||||
const SplashRoute({List<_i12.PageRouteInfo>? children})
|
||||
/// [_i11.SplashScreen]
|
||||
class SplashRoute extends _i13.PageRouteInfo<void> {
|
||||
const SplashRoute({List<_i13.PageRouteInfo>? children})
|
||||
: super(SplashRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'SplashRoute';
|
||||
|
||||
static _i12.PageInfo page = _i12.PageInfo(
|
||||
static _i13.PageInfo page = _i13.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i10.SplashScreen();
|
||||
return const _i11.SplashScreen();
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i11.StatistickScreen]
|
||||
class StatistickRoute extends _i12.PageRouteInfo<void> {
|
||||
const StatistickRoute({List<_i12.PageRouteInfo>? children})
|
||||
/// [_i12.StatistickScreen]
|
||||
class StatistickRoute extends _i13.PageRouteInfo<void> {
|
||||
const StatistickRoute({List<_i13.PageRouteInfo>? children})
|
||||
: super(StatistickRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'StatistickRoute';
|
||||
|
||||
static _i12.PageInfo page = _i12.PageInfo(
|
||||
static _i13.PageInfo page = _i13.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i11.StatistickScreen();
|
||||
return const _i12.StatistickScreen();
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user