chore:cleanup-packages breaking: remove isar (#474)

Co-authored-by: PartyDonut <PartyDonut@users.noreply.github.com>
This commit is contained in:
PartyDonut 2025-08-24 21:16:51 +02:00 committed by GitHub
parent ab6182f69d
commit 6357b9843c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
81 changed files with 31400 additions and 25673 deletions

View file

@ -1,3 +1,4 @@
// dart format width=80
// GENERATED CODE - DO NOT MODIFY BY HAND
// **************************************************************************
@ -8,9 +9,10 @@
// coverage:ignore-file
// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i23;
import 'dart:async' as _i24;
import 'package:auto_route/auto_route.dart' as _i18;
import 'package:collection/collection.dart' as _i23;
import 'package:fladder/models/item_base_model.dart' as _i19;
import 'package:fladder/models/items/photos_model.dart' as _i22;
import 'package:fladder/models/library_search/library_search_options.dart'
@ -35,16 +37,13 @@ import 'package:fladder/screens/settings/settings_selection_screen.dart'
import 'package:fladder/screens/splash_screen.dart' as _i16;
import 'package:fladder/screens/syncing/synced_screen.dart' as _i17;
import 'package:flutter/foundation.dart' as _i20;
import 'package:flutter/material.dart' as _i24;
import 'package:flutter/material.dart' as _i25;
/// generated route for
/// [_i1.AboutSettingsPage]
class AboutSettingsRoute extends _i18.PageRouteInfo<void> {
const AboutSettingsRoute({List<_i18.PageRouteInfo>? children})
: super(
AboutSettingsRoute.name,
initialChildren: children,
);
: super(AboutSettingsRoute.name, initialChildren: children);
static const String name = 'AboutSettingsRoute';
@ -60,10 +59,7 @@ class AboutSettingsRoute extends _i18.PageRouteInfo<void> {
/// [_i2.ClientSettingsPage]
class ClientSettingsRoute extends _i18.PageRouteInfo<void> {
const ClientSettingsRoute({List<_i18.PageRouteInfo>? children})
: super(
ClientSettingsRoute.name,
initialChildren: children,
);
: super(ClientSettingsRoute.name, initialChildren: children);
static const String name = 'ClientSettingsRoute';
@ -79,10 +75,7 @@ class ClientSettingsRoute extends _i18.PageRouteInfo<void> {
/// [_i3.DashboardScreen]
class DashboardRoute extends _i18.PageRouteInfo<void> {
const DashboardRoute({List<_i18.PageRouteInfo>? children})
: super(
DashboardRoute.name,
initialChildren: children,
);
: super(DashboardRoute.name, initialChildren: children);
static const String name = 'DashboardRoute';
@ -104,11 +97,7 @@ class DetailsRoute extends _i18.PageRouteInfo<DetailsRouteArgs> {
List<_i18.PageRouteInfo>? children,
}) : super(
DetailsRoute.name,
args: DetailsRouteArgs(
id: id,
item: item,
key: key,
),
args: DetailsRouteArgs(id: id, item: item, key: key),
rawQueryParams: {'id': id},
initialChildren: children,
);
@ -120,26 +109,15 @@ class DetailsRoute extends _i18.PageRouteInfo<DetailsRouteArgs> {
builder: (data) {
final queryParams = data.queryParams;
final args = data.argsAs<DetailsRouteArgs>(
orElse: () => DetailsRouteArgs(
id: queryParams.getString(
'id',
'',
)));
return _i4.DetailsScreen(
id: args.id,
item: args.item,
key: args.key,
orElse: () => DetailsRouteArgs(id: queryParams.getString('id', '')),
);
return _i4.DetailsScreen(id: args.id, item: args.item, key: args.key);
},
);
}
class DetailsRouteArgs {
const DetailsRouteArgs({
this.id = '',
this.item,
this.key,
});
const DetailsRouteArgs({this.id = '', this.item, this.key});
final String id;
@ -151,16 +129,23 @@ class DetailsRouteArgs {
String toString() {
return 'DetailsRouteArgs{id: $id, item: $item, key: $key}';
}
@override
bool operator ==(Object other) {
if (identical(this, other)) return true;
if (other is! DetailsRouteArgs) return false;
return id == other.id && item == other.item && key == other.key;
}
@override
int get hashCode => id.hashCode ^ item.hashCode ^ key.hashCode;
}
/// generated route for
/// [_i5.FavouritesScreen]
class FavouritesRoute extends _i18.PageRouteInfo<void> {
const FavouritesRoute({List<_i18.PageRouteInfo>? children})
: super(
FavouritesRoute.name,
initialChildren: children,
);
: super(FavouritesRoute.name, initialChildren: children);
static const String name = 'FavouritesRoute';
@ -176,10 +161,7 @@ class FavouritesRoute extends _i18.PageRouteInfo<void> {
/// [_i6.HomeScreen]
class HomeRoute extends _i18.PageRouteInfo<void> {
const HomeRoute({List<_i18.PageRouteInfo>? children})
: super(
HomeRoute.name,
initialChildren: children,
);
: super(HomeRoute.name, initialChildren: children);
static const String name = 'HomeRoute';
@ -195,10 +177,7 @@ class HomeRoute extends _i18.PageRouteInfo<void> {
/// [_i7.LibraryScreen]
class LibraryRoute extends _i18.PageRouteInfo<void> {
const LibraryRoute({List<_i18.PageRouteInfo>? children})
: super(
LibraryRoute.name,
initialChildren: children,
);
: super(LibraryRoute.name, initialChildren: children);
static const String name = 'LibraryRoute';
@ -250,13 +229,14 @@ class LibrarySearchRoute extends _i18.PageRouteInfo<LibrarySearchRouteArgs> {
builder: (data) {
final queryParams = data.queryParams;
final args = data.argsAs<LibrarySearchRouteArgs>(
orElse: () => LibrarySearchRouteArgs(
viewModelId: queryParams.optString('parentId'),
folderId: queryParams.optList('folderId'),
favourites: queryParams.optBool('favourites'),
sortOrder: queryParams.get('sortOrder'),
sortingOptions: queryParams.get('sortOptions'),
));
orElse: () => LibrarySearchRouteArgs(
viewModelId: queryParams.optString('parentId'),
folderId: queryParams.optList('folderId'),
favourites: queryParams.optBool('favourites'),
sortOrder: queryParams.get('sortOrder'),
sortingOptions: queryParams.get('sortOptions'),
),
);
return _i8.LibrarySearchScreen(
viewModelId: args.viewModelId,
folderId: args.folderId,
@ -299,16 +279,36 @@ class LibrarySearchRouteArgs {
String toString() {
return 'LibrarySearchRouteArgs{viewModelId: $viewModelId, folderId: $folderId, favourites: $favourites, sortOrder: $sortOrder, sortingOptions: $sortingOptions, photoToView: $photoToView, key: $key}';
}
@override
bool operator ==(Object other) {
if (identical(this, other)) return true;
if (other is! LibrarySearchRouteArgs) return false;
return viewModelId == other.viewModelId &&
const _i23.ListEquality().equals(folderId, other.folderId) &&
favourites == other.favourites &&
sortOrder == other.sortOrder &&
sortingOptions == other.sortingOptions &&
photoToView == other.photoToView &&
key == other.key;
}
@override
int get hashCode =>
viewModelId.hashCode ^
const _i23.ListEquality().hash(folderId) ^
favourites.hashCode ^
sortOrder.hashCode ^
sortingOptions.hashCode ^
photoToView.hashCode ^
key.hashCode;
}
/// generated route for
/// [_i9.LockScreen]
class LockRoute extends _i18.PageRouteInfo<void> {
const LockRoute({List<_i18.PageRouteInfo>? children})
: super(
LockRoute.name,
initialChildren: children,
);
: super(LockRoute.name, initialChildren: children);
static const String name = 'LockRoute';
@ -324,10 +324,7 @@ class LockRoute extends _i18.PageRouteInfo<void> {
/// [_i10.LoginScreen]
class LoginRoute extends _i18.PageRouteInfo<void> {
const LoginRoute({List<_i18.PageRouteInfo>? children})
: super(
LoginRoute.name,
initialChildren: children,
);
: super(LoginRoute.name, initialChildren: children);
static const String name = 'LoginRoute';
@ -345,8 +342,8 @@ class PhotoViewerRoute extends _i18.PageRouteInfo<PhotoViewerRouteArgs> {
PhotoViewerRoute({
List<_i22.PhotoModel>? items,
String? selected,
_i23.Future<List<_i22.PhotoModel>>? loadingItems,
_i24.Key? key,
_i24.Future<List<_i22.PhotoModel>>? loadingItems,
_i25.Key? key,
List<_i18.PageRouteInfo>? children,
}) : super(
PhotoViewerRoute.name,
@ -367,8 +364,9 @@ class PhotoViewerRoute extends _i18.PageRouteInfo<PhotoViewerRouteArgs> {
builder: (data) {
final queryParams = data.queryParams;
final args = data.argsAs<PhotoViewerRouteArgs>(
orElse: () => PhotoViewerRouteArgs(
selected: queryParams.optString('selectedId')));
orElse: () =>
PhotoViewerRouteArgs(selected: queryParams.optString('selectedId')),
);
return _i11.PhotoViewerScreen(
items: args.items,
selected: args.selected,
@ -391,24 +389,38 @@ class PhotoViewerRouteArgs {
final String? selected;
final _i23.Future<List<_i22.PhotoModel>>? loadingItems;
final _i24.Future<List<_i22.PhotoModel>>? loadingItems;
final _i24.Key? key;
final _i25.Key? key;
@override
String toString() {
return 'PhotoViewerRouteArgs{items: $items, selected: $selected, loadingItems: $loadingItems, key: $key}';
}
@override
bool operator ==(Object other) {
if (identical(this, other)) return true;
if (other is! PhotoViewerRouteArgs) return false;
return const _i23.ListEquality().equals(items, other.items) &&
selected == other.selected &&
loadingItems == other.loadingItems &&
key == other.key;
}
@override
int get hashCode =>
const _i23.ListEquality().hash(items) ^
selected.hashCode ^
loadingItems.hashCode ^
key.hashCode;
}
/// generated route for
/// [_i12.PlayerSettingsPage]
class PlayerSettingsRoute extends _i18.PageRouteInfo<void> {
const PlayerSettingsRoute({List<_i18.PageRouteInfo>? children})
: super(
PlayerSettingsRoute.name,
initialChildren: children,
);
: super(PlayerSettingsRoute.name, initialChildren: children);
static const String name = 'PlayerSettingsRoute';
@ -424,10 +436,7 @@ class PlayerSettingsRoute extends _i18.PageRouteInfo<void> {
/// [_i13.SecuritySettingsPage]
class SecuritySettingsRoute extends _i18.PageRouteInfo<void> {
const SecuritySettingsRoute({List<_i18.PageRouteInfo>? children})
: super(
SecuritySettingsRoute.name,
initialChildren: children,
);
: super(SecuritySettingsRoute.name, initialChildren: children);
static const String name = 'SecuritySettingsRoute';
@ -443,10 +452,7 @@ class SecuritySettingsRoute extends _i18.PageRouteInfo<void> {
/// [_i14.SettingsScreen]
class SettingsRoute extends _i18.PageRouteInfo<void> {
const SettingsRoute({List<_i18.PageRouteInfo>? children})
: super(
SettingsRoute.name,
initialChildren: children,
);
: super(SettingsRoute.name, initialChildren: children);
static const String name = 'SettingsRoute';
@ -462,10 +468,7 @@ class SettingsRoute extends _i18.PageRouteInfo<void> {
/// [_i15.SettingsSelectionScreen]
class SettingsSelectionRoute extends _i18.PageRouteInfo<void> {
const SettingsSelectionRoute({List<_i18.PageRouteInfo>? children})
: super(
SettingsSelectionRoute.name,
initialChildren: children,
);
: super(SettingsSelectionRoute.name, initialChildren: children);
static const String name = 'SettingsSelectionRoute';
@ -482,14 +485,11 @@ class SettingsSelectionRoute extends _i18.PageRouteInfo<void> {
class SplashRoute extends _i18.PageRouteInfo<SplashRouteArgs> {
SplashRoute({
dynamic Function(bool)? loggedIn,
_i24.Key? key,
_i25.Key? key,
List<_i18.PageRouteInfo>? children,
}) : super(
SplashRoute.name,
args: SplashRouteArgs(
loggedIn: loggedIn,
key: key,
),
args: SplashRouteArgs(loggedIn: loggedIn, key: key),
initialChildren: children,
);
@ -498,37 +498,42 @@ class SplashRoute extends _i18.PageRouteInfo<SplashRouteArgs> {
static _i18.PageInfo page = _i18.PageInfo(
name,
builder: (data) {
final args =
data.argsAs<SplashRouteArgs>(orElse: () => const SplashRouteArgs());
return _i16.SplashScreen(
loggedIn: args.loggedIn,
key: args.key,
final args = data.argsAs<SplashRouteArgs>(
orElse: () => const SplashRouteArgs(),
);
return _i16.SplashScreen(loggedIn: args.loggedIn, key: args.key);
},
);
}
class SplashRouteArgs {
const SplashRouteArgs({
this.loggedIn,
this.key,
});
const SplashRouteArgs({this.loggedIn, this.key});
final dynamic Function(bool)? loggedIn;
final _i24.Key? key;
final _i25.Key? key;
@override
String toString() {
return 'SplashRouteArgs{loggedIn: $loggedIn, key: $key}';
}
@override
bool operator ==(Object other) {
if (identical(this, other)) return true;
if (other is! SplashRouteArgs) return false;
return key == other.key;
}
@override
int get hashCode => key.hashCode;
}
/// generated route for
/// [_i17.SyncedScreen]
class SyncedRoute extends _i18.PageRouteInfo<SyncedRouteArgs> {
SyncedRoute({
_i24.ScrollController? navigationScrollController,
_i25.ScrollController? navigationScrollController,
_i20.Key? key,
List<_i18.PageRouteInfo>? children,
}) : super(
@ -545,8 +550,9 @@ class SyncedRoute extends _i18.PageRouteInfo<SyncedRouteArgs> {
static _i18.PageInfo page = _i18.PageInfo(
name,
builder: (data) {
final args =
data.argsAs<SyncedRouteArgs>(orElse: () => const SyncedRouteArgs());
final args = data.argsAs<SyncedRouteArgs>(
orElse: () => const SyncedRouteArgs(),
);
return _i17.SyncedScreen(
navigationScrollController: args.navigationScrollController,
key: args.key,
@ -556,12 +562,9 @@ class SyncedRoute extends _i18.PageRouteInfo<SyncedRouteArgs> {
}
class SyncedRouteArgs {
const SyncedRouteArgs({
this.navigationScrollController,
this.key,
});
const SyncedRouteArgs({this.navigationScrollController, this.key});
final _i24.ScrollController? navigationScrollController;
final _i25.ScrollController? navigationScrollController;
final _i20.Key? key;
@ -569,4 +572,15 @@ class SyncedRouteArgs {
String toString() {
return 'SyncedRouteArgs{navigationScrollController: $navigationScrollController, key: $key}';
}
@override
bool operator ==(Object other) {
if (identical(this, other)) return true;
if (other is! SyncedRouteArgs) return false;
return navigationScrollController == other.navigationScrollController &&
key == other.key;
}
@override
int get hashCode => navigationScrollController.hashCode ^ key.hashCode;
}