408 lines
11 KiB
Dart
408 lines
11 KiB
Dart
// dart format width=80
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
// **************************************************************************
|
|
// AutoRouterGenerator
|
|
// **************************************************************************
|
|
|
|
// ignore_for_file: type=lint
|
|
// coverage:ignore-file
|
|
|
|
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
|
import 'package:auto_route/auto_route.dart' as _i12;
|
|
import 'package:flutter/material.dart' as _i13;
|
|
import 'package:island/models/post.dart' as _i14;
|
|
import 'package:island/screens/account.dart' as _i1;
|
|
import 'package:island/screens/account/me.dart' as _i7;
|
|
import 'package:island/screens/account/me/publishers.dart' as _i3;
|
|
import 'package:island/screens/account/me/update.dart' as _i11;
|
|
import 'package:island/screens/auth/create_account.dart' as _i2;
|
|
import 'package:island/screens/auth/login.dart' as _i6;
|
|
import 'package:island/screens/auth/tabs.dart' as _i10;
|
|
import 'package:island/screens/explore.dart' as _i5;
|
|
import 'package:island/screens/posts/compose.dart' as _i8;
|
|
import 'package:island/screens/posts/detail.dart' as _i9;
|
|
import 'package:island/screens/realm/realms.dart' as _i4;
|
|
|
|
/// generated route for
|
|
/// [_i1.AccountScreen]
|
|
class AccountRoute extends _i12.PageRouteInfo<void> {
|
|
const AccountRoute({List<_i12.PageRouteInfo>? children})
|
|
: super(AccountRoute.name, initialChildren: children);
|
|
|
|
static const String name = 'AccountRoute';
|
|
|
|
static _i12.PageInfo page = _i12.PageInfo(
|
|
name,
|
|
builder: (data) {
|
|
return const _i1.AccountScreen();
|
|
},
|
|
);
|
|
}
|
|
|
|
/// generated route for
|
|
/// [_i2.CreateAccountScreen]
|
|
class CreateAccountRoute extends _i12.PageRouteInfo<void> {
|
|
const CreateAccountRoute({List<_i12.PageRouteInfo>? children})
|
|
: super(CreateAccountRoute.name, initialChildren: children);
|
|
|
|
static const String name = 'CreateAccountRoute';
|
|
|
|
static _i12.PageInfo page = _i12.PageInfo(
|
|
name,
|
|
builder: (data) {
|
|
return const _i2.CreateAccountScreen();
|
|
},
|
|
);
|
|
}
|
|
|
|
/// generated route for
|
|
/// [_i3.EditPublisherScreen]
|
|
class EditPublisherRoute extends _i12.PageRouteInfo<EditPublisherRouteArgs> {
|
|
EditPublisherRoute({
|
|
_i13.Key? key,
|
|
String? name,
|
|
List<_i12.PageRouteInfo>? children,
|
|
}) : super(
|
|
EditPublisherRoute.name,
|
|
args: EditPublisherRouteArgs(key: key, name: name),
|
|
rawPathParams: {'id': name},
|
|
initialChildren: children,
|
|
);
|
|
|
|
static const String name = 'EditPublisherRoute';
|
|
|
|
static _i12.PageInfo page = _i12.PageInfo(
|
|
name,
|
|
builder: (data) {
|
|
final pathParams = data.inheritedPathParams;
|
|
final args = data.argsAs<EditPublisherRouteArgs>(
|
|
orElse: () => EditPublisherRouteArgs(name: pathParams.optString('id')),
|
|
);
|
|
return _i3.EditPublisherScreen(key: args.key, name: args.name);
|
|
},
|
|
);
|
|
}
|
|
|
|
class EditPublisherRouteArgs {
|
|
const EditPublisherRouteArgs({this.key, this.name});
|
|
|
|
final _i13.Key? key;
|
|
|
|
final String? name;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'EditPublisherRouteArgs{key: $key, name: $name}';
|
|
}
|
|
}
|
|
|
|
/// generated route for
|
|
/// [_i4.EditRealmScreen]
|
|
class EditRealmRoute extends _i12.PageRouteInfo<EditRealmRouteArgs> {
|
|
EditRealmRoute({
|
|
_i13.Key? key,
|
|
String? slug,
|
|
List<_i12.PageRouteInfo>? children,
|
|
}) : super(
|
|
EditRealmRoute.name,
|
|
args: EditRealmRouteArgs(key: key, slug: slug),
|
|
rawPathParams: {'slug': slug},
|
|
initialChildren: children,
|
|
);
|
|
|
|
static const String name = 'EditRealmRoute';
|
|
|
|
static _i12.PageInfo page = _i12.PageInfo(
|
|
name,
|
|
builder: (data) {
|
|
final pathParams = data.inheritedPathParams;
|
|
final args = data.argsAs<EditRealmRouteArgs>(
|
|
orElse: () => EditRealmRouteArgs(slug: pathParams.optString('slug')),
|
|
);
|
|
return _i4.EditRealmScreen(key: args.key, slug: args.slug);
|
|
},
|
|
);
|
|
}
|
|
|
|
class EditRealmRouteArgs {
|
|
const EditRealmRouteArgs({this.key, this.slug});
|
|
|
|
final _i13.Key? key;
|
|
|
|
final String? slug;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'EditRealmRouteArgs{key: $key, slug: $slug}';
|
|
}
|
|
}
|
|
|
|
/// generated route for
|
|
/// [_i5.ExploreScreen]
|
|
class ExploreRoute extends _i12.PageRouteInfo<void> {
|
|
const ExploreRoute({List<_i12.PageRouteInfo>? children})
|
|
: super(ExploreRoute.name, initialChildren: children);
|
|
|
|
static const String name = 'ExploreRoute';
|
|
|
|
static _i12.PageInfo page = _i12.PageInfo(
|
|
name,
|
|
builder: (data) {
|
|
return const _i5.ExploreScreen();
|
|
},
|
|
);
|
|
}
|
|
|
|
/// generated route for
|
|
/// [_i6.LoginScreen]
|
|
class LoginRoute extends _i12.PageRouteInfo<void> {
|
|
const LoginRoute({List<_i12.PageRouteInfo>? children})
|
|
: super(LoginRoute.name, initialChildren: children);
|
|
|
|
static const String name = 'LoginRoute';
|
|
|
|
static _i12.PageInfo page = _i12.PageInfo(
|
|
name,
|
|
builder: (data) {
|
|
return const _i6.LoginScreen();
|
|
},
|
|
);
|
|
}
|
|
|
|
/// generated route for
|
|
/// [_i3.ManagedPublisherScreen]
|
|
class ManagedPublisherRoute extends _i12.PageRouteInfo<void> {
|
|
const ManagedPublisherRoute({List<_i12.PageRouteInfo>? children})
|
|
: super(ManagedPublisherRoute.name, initialChildren: children);
|
|
|
|
static const String name = 'ManagedPublisherRoute';
|
|
|
|
static _i12.PageInfo page = _i12.PageInfo(
|
|
name,
|
|
builder: (data) {
|
|
return const _i3.ManagedPublisherScreen();
|
|
},
|
|
);
|
|
}
|
|
|
|
/// generated route for
|
|
/// [_i7.MyselfProfileScreen]
|
|
class MyselfProfileRoute extends _i12.PageRouteInfo<void> {
|
|
const MyselfProfileRoute({List<_i12.PageRouteInfo>? children})
|
|
: super(MyselfProfileRoute.name, initialChildren: children);
|
|
|
|
static const String name = 'MyselfProfileRoute';
|
|
|
|
static _i12.PageInfo page = _i12.PageInfo(
|
|
name,
|
|
builder: (data) {
|
|
return const _i7.MyselfProfileScreen();
|
|
},
|
|
);
|
|
}
|
|
|
|
/// generated route for
|
|
/// [_i3.NewPublisherScreen]
|
|
class NewPublisherRoute extends _i12.PageRouteInfo<void> {
|
|
const NewPublisherRoute({List<_i12.PageRouteInfo>? children})
|
|
: super(NewPublisherRoute.name, initialChildren: children);
|
|
|
|
static const String name = 'NewPublisherRoute';
|
|
|
|
static _i12.PageInfo page = _i12.PageInfo(
|
|
name,
|
|
builder: (data) {
|
|
return const _i3.NewPublisherScreen();
|
|
},
|
|
);
|
|
}
|
|
|
|
/// generated route for
|
|
/// [_i4.NewRealmScreen]
|
|
class NewRealmRoute extends _i12.PageRouteInfo<void> {
|
|
const NewRealmRoute({List<_i12.PageRouteInfo>? children})
|
|
: super(NewRealmRoute.name, initialChildren: children);
|
|
|
|
static const String name = 'NewRealmRoute';
|
|
|
|
static _i12.PageInfo page = _i12.PageInfo(
|
|
name,
|
|
builder: (data) {
|
|
return const _i4.NewRealmScreen();
|
|
},
|
|
);
|
|
}
|
|
|
|
/// generated route for
|
|
/// [_i8.PostComposeScreen]
|
|
class PostComposeRoute extends _i12.PageRouteInfo<PostComposeRouteArgs> {
|
|
PostComposeRoute({
|
|
_i13.Key? key,
|
|
_i14.SnPost? originalPost,
|
|
List<_i12.PageRouteInfo>? children,
|
|
}) : super(
|
|
PostComposeRoute.name,
|
|
args: PostComposeRouteArgs(key: key, originalPost: originalPost),
|
|
initialChildren: children,
|
|
);
|
|
|
|
static const String name = 'PostComposeRoute';
|
|
|
|
static _i12.PageInfo page = _i12.PageInfo(
|
|
name,
|
|
builder: (data) {
|
|
final args = data.argsAs<PostComposeRouteArgs>(
|
|
orElse: () => const PostComposeRouteArgs(),
|
|
);
|
|
return _i8.PostComposeScreen(
|
|
key: args.key,
|
|
originalPost: args.originalPost,
|
|
);
|
|
},
|
|
);
|
|
}
|
|
|
|
class PostComposeRouteArgs {
|
|
const PostComposeRouteArgs({this.key, this.originalPost});
|
|
|
|
final _i13.Key? key;
|
|
|
|
final _i14.SnPost? originalPost;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'PostComposeRouteArgs{key: $key, originalPost: $originalPost}';
|
|
}
|
|
}
|
|
|
|
/// generated route for
|
|
/// [_i9.PostDetailScreen]
|
|
class PostDetailRoute extends _i12.PageRouteInfo<PostDetailRouteArgs> {
|
|
PostDetailRoute({
|
|
_i13.Key? key,
|
|
required int id,
|
|
List<_i12.PageRouteInfo>? children,
|
|
}) : super(
|
|
PostDetailRoute.name,
|
|
args: PostDetailRouteArgs(key: key, id: id),
|
|
rawPathParams: {'id': id},
|
|
initialChildren: children,
|
|
);
|
|
|
|
static const String name = 'PostDetailRoute';
|
|
|
|
static _i12.PageInfo page = _i12.PageInfo(
|
|
name,
|
|
builder: (data) {
|
|
final pathParams = data.inheritedPathParams;
|
|
final args = data.argsAs<PostDetailRouteArgs>(
|
|
orElse: () => PostDetailRouteArgs(id: pathParams.getInt('id')),
|
|
);
|
|
return _i9.PostDetailScreen(key: args.key, id: args.id);
|
|
},
|
|
);
|
|
}
|
|
|
|
class PostDetailRouteArgs {
|
|
const PostDetailRouteArgs({this.key, required this.id});
|
|
|
|
final _i13.Key? key;
|
|
|
|
final int id;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'PostDetailRouteArgs{key: $key, id: $id}';
|
|
}
|
|
}
|
|
|
|
/// generated route for
|
|
/// [_i8.PostEditScreen]
|
|
class PostEditRoute extends _i12.PageRouteInfo<PostEditRouteArgs> {
|
|
PostEditRoute({
|
|
_i13.Key? key,
|
|
required int id,
|
|
List<_i12.PageRouteInfo>? children,
|
|
}) : super(
|
|
PostEditRoute.name,
|
|
args: PostEditRouteArgs(key: key, id: id),
|
|
rawPathParams: {'id': id},
|
|
initialChildren: children,
|
|
);
|
|
|
|
static const String name = 'PostEditRoute';
|
|
|
|
static _i12.PageInfo page = _i12.PageInfo(
|
|
name,
|
|
builder: (data) {
|
|
final pathParams = data.inheritedPathParams;
|
|
final args = data.argsAs<PostEditRouteArgs>(
|
|
orElse: () => PostEditRouteArgs(id: pathParams.getInt('id')),
|
|
);
|
|
return _i8.PostEditScreen(key: args.key, id: args.id);
|
|
},
|
|
);
|
|
}
|
|
|
|
class PostEditRouteArgs {
|
|
const PostEditRouteArgs({this.key, required this.id});
|
|
|
|
final _i13.Key? key;
|
|
|
|
final int id;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'PostEditRouteArgs{key: $key, id: $id}';
|
|
}
|
|
}
|
|
|
|
/// generated route for
|
|
/// [_i4.RealmListScreen]
|
|
class RealmListRoute extends _i12.PageRouteInfo<void> {
|
|
const RealmListRoute({List<_i12.PageRouteInfo>? children})
|
|
: super(RealmListRoute.name, initialChildren: children);
|
|
|
|
static const String name = 'RealmListRoute';
|
|
|
|
static _i12.PageInfo page = _i12.PageInfo(
|
|
name,
|
|
builder: (data) {
|
|
return const _i4.RealmListScreen();
|
|
},
|
|
);
|
|
}
|
|
|
|
/// generated route for
|
|
/// [_i10.TabsScreen]
|
|
class TabsRoute extends _i12.PageRouteInfo<void> {
|
|
const TabsRoute({List<_i12.PageRouteInfo>? children})
|
|
: super(TabsRoute.name, initialChildren: children);
|
|
|
|
static const String name = 'TabsRoute';
|
|
|
|
static _i12.PageInfo page = _i12.PageInfo(
|
|
name,
|
|
builder: (data) {
|
|
return const _i10.TabsScreen();
|
|
},
|
|
);
|
|
}
|
|
|
|
/// generated route for
|
|
/// [_i11.UpdateProfileScreen]
|
|
class UpdateProfileRoute extends _i12.PageRouteInfo<void> {
|
|
const UpdateProfileRoute({List<_i12.PageRouteInfo>? children})
|
|
: super(UpdateProfileRoute.name, initialChildren: children);
|
|
|
|
static const String name = 'UpdateProfileRoute';
|
|
|
|
static _i12.PageInfo page = _i12.PageInfo(
|
|
name,
|
|
builder: (data) {
|
|
return const _i11.UpdateProfileScreen();
|
|
},
|
|
);
|
|
}
|