feature(training): Добавлен состояния загрузки, пустоты и наличие данных на экране тренировки
This commit is contained in:
@@ -9,10 +9,10 @@
|
||||
// coverage:ignore-file
|
||||
|
||||
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
||||
import 'package:auto_route/auto_route.dart' as _i13;
|
||||
import 'package:flutter/cupertino.dart' as _i14;
|
||||
import 'package:flutter/material.dart' as _i16;
|
||||
import 'package:remever/database/database.dart' as _i15;
|
||||
import 'package:auto_route/auto_route.dart' as _i14;
|
||||
import 'package:flutter/cupertino.dart' as _i15;
|
||||
import 'package:flutter/material.dart' as _i17;
|
||||
import 'package:remever/database/database.dart' as _i16;
|
||||
import 'package:remever/screens/auth/auth_screen.dart' as _i1;
|
||||
import 'package:remever/screens/collections/collection_detail_screen.dart'
|
||||
as _i2;
|
||||
@@ -28,16 +28,17 @@ 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;
|
||||
import 'package:remever/screens/training/training_screen.dart' as _i13;
|
||||
|
||||
/// generated route for
|
||||
/// [_i1.AuthScreen]
|
||||
class AuthRoute extends _i13.PageRouteInfo<void> {
|
||||
const AuthRoute({List<_i13.PageRouteInfo>? children})
|
||||
class AuthRoute extends _i14.PageRouteInfo<void> {
|
||||
const AuthRoute({List<_i14.PageRouteInfo>? children})
|
||||
: super(AuthRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'AuthRoute';
|
||||
|
||||
static _i13.PageInfo page = _i13.PageInfo(
|
||||
static _i14.PageInfo page = _i14.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i1.AuthScreen();
|
||||
@@ -48,11 +49,11 @@ class AuthRoute extends _i13.PageRouteInfo<void> {
|
||||
/// generated route for
|
||||
/// [_i2.CollectionDetailScreen]
|
||||
class CollectionDetailRoute
|
||||
extends _i13.PageRouteInfo<CollectionDetailRouteArgs> {
|
||||
extends _i14.PageRouteInfo<CollectionDetailRouteArgs> {
|
||||
CollectionDetailRoute({
|
||||
_i14.Key? key,
|
||||
required _i15.Collection collection,
|
||||
List<_i13.PageRouteInfo>? children,
|
||||
_i15.Key? key,
|
||||
required _i16.Collection collection,
|
||||
List<_i14.PageRouteInfo>? children,
|
||||
}) : super(
|
||||
CollectionDetailRoute.name,
|
||||
args: CollectionDetailRouteArgs(key: key, collection: collection),
|
||||
@@ -61,7 +62,7 @@ class CollectionDetailRoute
|
||||
|
||||
static const String name = 'CollectionDetailRoute';
|
||||
|
||||
static _i13.PageInfo page = _i13.PageInfo(
|
||||
static _i14.PageInfo page = _i14.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
final args = data.argsAs<CollectionDetailRouteArgs>();
|
||||
@@ -76,9 +77,9 @@ class CollectionDetailRoute
|
||||
class CollectionDetailRouteArgs {
|
||||
const CollectionDetailRouteArgs({this.key, required this.collection});
|
||||
|
||||
final _i14.Key? key;
|
||||
final _i15.Key? key;
|
||||
|
||||
final _i15.Collection collection;
|
||||
final _i16.Collection collection;
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
@@ -88,13 +89,13 @@ class CollectionDetailRouteArgs {
|
||||
|
||||
/// generated route for
|
||||
/// [_i3.CollectionScreen]
|
||||
class CollectionRoute extends _i13.PageRouteInfo<void> {
|
||||
const CollectionRoute({List<_i13.PageRouteInfo>? children})
|
||||
class CollectionRoute extends _i14.PageRouteInfo<void> {
|
||||
const CollectionRoute({List<_i14.PageRouteInfo>? children})
|
||||
: super(CollectionRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'CollectionRoute';
|
||||
|
||||
static _i13.PageInfo page = _i13.PageInfo(
|
||||
static _i14.PageInfo page = _i14.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i3.CollectionScreen();
|
||||
@@ -105,11 +106,11 @@ class CollectionRoute extends _i13.PageRouteInfo<void> {
|
||||
/// generated route for
|
||||
/// [_i4.CollectionSearchScreen]
|
||||
class CollectionSearchRoute
|
||||
extends _i13.PageRouteInfo<CollectionSearchRouteArgs> {
|
||||
extends _i14.PageRouteInfo<CollectionSearchRouteArgs> {
|
||||
CollectionSearchRoute({
|
||||
_i14.Key? key,
|
||||
required void Function(_i15.Collection) onCollectionSelect,
|
||||
List<_i13.PageRouteInfo>? children,
|
||||
_i15.Key? key,
|
||||
required void Function(_i16.Collection) onCollectionSelect,
|
||||
List<_i14.PageRouteInfo>? children,
|
||||
}) : super(
|
||||
CollectionSearchRoute.name,
|
||||
args: CollectionSearchRouteArgs(
|
||||
@@ -121,7 +122,7 @@ class CollectionSearchRoute
|
||||
|
||||
static const String name = 'CollectionSearchRoute';
|
||||
|
||||
static _i13.PageInfo page = _i13.PageInfo(
|
||||
static _i14.PageInfo page = _i14.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
final args = data.argsAs<CollectionSearchRouteArgs>();
|
||||
@@ -136,9 +137,9 @@ class CollectionSearchRoute
|
||||
class CollectionSearchRouteArgs {
|
||||
const CollectionSearchRouteArgs({this.key, required this.onCollectionSelect});
|
||||
|
||||
final _i14.Key? key;
|
||||
final _i15.Key? key;
|
||||
|
||||
final void Function(_i15.Collection) onCollectionSelect;
|
||||
final void Function(_i16.Collection) onCollectionSelect;
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
@@ -148,11 +149,11 @@ class CollectionSearchRouteArgs {
|
||||
|
||||
/// generated route for
|
||||
/// [_i5.CreateScreen]
|
||||
class CreateRoute extends _i13.PageRouteInfo<CreateRouteArgs> {
|
||||
class CreateRoute extends _i14.PageRouteInfo<CreateRouteArgs> {
|
||||
CreateRoute({
|
||||
_i14.Key? key,
|
||||
_i15.Collection? collection,
|
||||
List<_i13.PageRouteInfo>? children,
|
||||
_i15.Key? key,
|
||||
_i16.Collection? collection,
|
||||
List<_i14.PageRouteInfo>? children,
|
||||
}) : super(
|
||||
CreateRoute.name,
|
||||
args: CreateRouteArgs(key: key, collection: collection),
|
||||
@@ -161,7 +162,7 @@ class CreateRoute extends _i13.PageRouteInfo<CreateRouteArgs> {
|
||||
|
||||
static const String name = 'CreateRoute';
|
||||
|
||||
static _i13.PageInfo page = _i13.PageInfo(
|
||||
static _i14.PageInfo page = _i14.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
final args = data.argsAs<CreateRouteArgs>(
|
||||
@@ -175,9 +176,9 @@ class CreateRoute extends _i13.PageRouteInfo<CreateRouteArgs> {
|
||||
class CreateRouteArgs {
|
||||
const CreateRouteArgs({this.key, this.collection});
|
||||
|
||||
final _i14.Key? key;
|
||||
final _i15.Key? key;
|
||||
|
||||
final _i15.Collection? collection;
|
||||
final _i16.Collection? collection;
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
@@ -188,15 +189,15 @@ class CreateRouteArgs {
|
||||
/// generated route for
|
||||
/// [_i6.CrudCollectionFullscreenField]
|
||||
class CrudCollectionFullscreenField
|
||||
extends _i13.PageRouteInfo<CrudCollectionFullscreenFieldArgs> {
|
||||
extends _i14.PageRouteInfo<CrudCollectionFullscreenFieldArgs> {
|
||||
CrudCollectionFullscreenField({
|
||||
_i14.Key? key,
|
||||
_i15.Key? key,
|
||||
String title = '',
|
||||
String? hint,
|
||||
String? content,
|
||||
double height = 92,
|
||||
required void Function(String?) onEditingComplete,
|
||||
List<_i13.PageRouteInfo>? children,
|
||||
List<_i14.PageRouteInfo>? children,
|
||||
}) : super(
|
||||
CrudCollectionFullscreenField.name,
|
||||
args: CrudCollectionFullscreenFieldArgs(
|
||||
@@ -212,7 +213,7 @@ class CrudCollectionFullscreenField
|
||||
|
||||
static const String name = 'CrudCollectionFullscreenField';
|
||||
|
||||
static _i13.PageInfo page = _i13.PageInfo(
|
||||
static _i14.PageInfo page = _i14.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
final args = data.argsAs<CrudCollectionFullscreenFieldArgs>();
|
||||
@@ -238,7 +239,7 @@ class CrudCollectionFullscreenFieldArgs {
|
||||
required this.onEditingComplete,
|
||||
});
|
||||
|
||||
final _i14.Key? key;
|
||||
final _i15.Key? key;
|
||||
|
||||
final String title;
|
||||
|
||||
@@ -258,11 +259,11 @@ class CrudCollectionFullscreenFieldArgs {
|
||||
|
||||
/// generated route for
|
||||
/// [_i7.CrudCollectionScreen]
|
||||
class CrudCollectionRoute extends _i13.PageRouteInfo<CrudCollectionRouteArgs> {
|
||||
class CrudCollectionRoute extends _i14.PageRouteInfo<CrudCollectionRouteArgs> {
|
||||
CrudCollectionRoute({
|
||||
_i14.Key? key,
|
||||
_i15.Collection? editedCollection,
|
||||
List<_i13.PageRouteInfo>? children,
|
||||
_i15.Key? key,
|
||||
_i16.Collection? editedCollection,
|
||||
List<_i14.PageRouteInfo>? children,
|
||||
}) : super(
|
||||
CrudCollectionRoute.name,
|
||||
args: CrudCollectionRouteArgs(
|
||||
@@ -274,7 +275,7 @@ class CrudCollectionRoute extends _i13.PageRouteInfo<CrudCollectionRouteArgs> {
|
||||
|
||||
static const String name = 'CrudCollectionRoute';
|
||||
|
||||
static _i13.PageInfo page = _i13.PageInfo(
|
||||
static _i14.PageInfo page = _i14.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
final args = data.argsAs<CrudCollectionRouteArgs>(
|
||||
@@ -291,9 +292,9 @@ class CrudCollectionRoute extends _i13.PageRouteInfo<CrudCollectionRouteArgs> {
|
||||
class CrudCollectionRouteArgs {
|
||||
const CrudCollectionRouteArgs({this.key, this.editedCollection});
|
||||
|
||||
final _i14.Key? key;
|
||||
final _i15.Key? key;
|
||||
|
||||
final _i15.Collection? editedCollection;
|
||||
final _i16.Collection? editedCollection;
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
@@ -303,13 +304,13 @@ class CrudCollectionRouteArgs {
|
||||
|
||||
/// generated route for
|
||||
/// [_i8.HomeScreen]
|
||||
class HomeRoute extends _i13.PageRouteInfo<void> {
|
||||
const HomeRoute({List<_i13.PageRouteInfo>? children})
|
||||
class HomeRoute extends _i14.PageRouteInfo<void> {
|
||||
const HomeRoute({List<_i14.PageRouteInfo>? children})
|
||||
: super(HomeRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'HomeRoute';
|
||||
|
||||
static _i13.PageInfo page = _i13.PageInfo(
|
||||
static _i14.PageInfo page = _i14.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i8.HomeScreen();
|
||||
@@ -319,13 +320,13 @@ class HomeRoute extends _i13.PageRouteInfo<void> {
|
||||
|
||||
/// generated route for
|
||||
/// [_i9.SandboxScreen]
|
||||
class SandboxRoute extends _i13.PageRouteInfo<void> {
|
||||
const SandboxRoute({List<_i13.PageRouteInfo>? children})
|
||||
class SandboxRoute extends _i14.PageRouteInfo<void> {
|
||||
const SandboxRoute({List<_i14.PageRouteInfo>? children})
|
||||
: super(SandboxRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'SandboxRoute';
|
||||
|
||||
static _i13.PageInfo page = _i13.PageInfo(
|
||||
static _i14.PageInfo page = _i14.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i9.SandboxScreen();
|
||||
@@ -335,13 +336,13 @@ class SandboxRoute extends _i13.PageRouteInfo<void> {
|
||||
|
||||
/// generated route for
|
||||
/// [_i10.SettingsScreen]
|
||||
class SettingsRoute extends _i13.PageRouteInfo<void> {
|
||||
const SettingsRoute({List<_i13.PageRouteInfo>? children})
|
||||
class SettingsRoute extends _i14.PageRouteInfo<void> {
|
||||
const SettingsRoute({List<_i14.PageRouteInfo>? children})
|
||||
: super(SettingsRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'SettingsRoute';
|
||||
|
||||
static _i13.PageInfo page = _i13.PageInfo(
|
||||
static _i14.PageInfo page = _i14.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i10.SettingsScreen();
|
||||
@@ -351,13 +352,13 @@ class SettingsRoute extends _i13.PageRouteInfo<void> {
|
||||
|
||||
/// generated route for
|
||||
/// [_i11.SplashScreen]
|
||||
class SplashRoute extends _i13.PageRouteInfo<void> {
|
||||
const SplashRoute({List<_i13.PageRouteInfo>? children})
|
||||
class SplashRoute extends _i14.PageRouteInfo<void> {
|
||||
const SplashRoute({List<_i14.PageRouteInfo>? children})
|
||||
: super(SplashRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'SplashRoute';
|
||||
|
||||
static _i13.PageInfo page = _i13.PageInfo(
|
||||
static _i14.PageInfo page = _i14.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i11.SplashScreen();
|
||||
@@ -367,8 +368,8 @@ class SplashRoute extends _i13.PageRouteInfo<void> {
|
||||
|
||||
/// generated route for
|
||||
/// [_i12.StatistickScreen]
|
||||
class StatistickRoute extends _i13.PageRouteInfo<StatistickRouteArgs> {
|
||||
StatistickRoute({_i16.Key? key, List<_i13.PageRouteInfo>? children})
|
||||
class StatistickRoute extends _i14.PageRouteInfo<StatistickRouteArgs> {
|
||||
StatistickRoute({_i17.Key? key, List<_i14.PageRouteInfo>? children})
|
||||
: super(
|
||||
StatistickRoute.name,
|
||||
args: StatistickRouteArgs(key: key),
|
||||
@@ -377,7 +378,7 @@ class StatistickRoute extends _i13.PageRouteInfo<StatistickRouteArgs> {
|
||||
|
||||
static const String name = 'StatistickRoute';
|
||||
|
||||
static _i13.PageInfo page = _i13.PageInfo(
|
||||
static _i14.PageInfo page = _i14.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
final args = data.argsAs<StatistickRouteArgs>(
|
||||
@@ -391,10 +392,26 @@ class StatistickRoute extends _i13.PageRouteInfo<StatistickRouteArgs> {
|
||||
class StatistickRouteArgs {
|
||||
const StatistickRouteArgs({this.key});
|
||||
|
||||
final _i16.Key? key;
|
||||
final _i17.Key? key;
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'StatistickRouteArgs{key: $key}';
|
||||
}
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i13.TrainingScreen]
|
||||
class TrainingRoute extends _i14.PageRouteInfo<void> {
|
||||
const TrainingRoute({List<_i14.PageRouteInfo>? children})
|
||||
: super(TrainingRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'TrainingRoute';
|
||||
|
||||
static _i14.PageInfo page = _i14.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i13.TrainingScreen();
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user