feat: adopt smolmail protocol 1.1, adaptive nav shell, and server mail retention
This commit is contained in:
parent
eaaa3f2ede
commit
c693e6fcb9
27 changed files with 1190 additions and 592 deletions
|
|
@ -10,26 +10,27 @@
|
|||
|
||||
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
||||
|
||||
import 'package:auto_route/auto_route.dart' as _i8;
|
||||
import 'package:flutter/material.dart' as _i9;
|
||||
import 'package:auto_route/auto_route.dart' as _i9;
|
||||
import 'package:flutter/material.dart' as _i10;
|
||||
import 'package:smol_mail/presentation/screens/compose_screen.dart' as _i1;
|
||||
import 'package:smol_mail/presentation/screens/contact_detail_screen.dart'
|
||||
as _i2;
|
||||
import 'package:smol_mail/presentation/screens/contacts_screen.dart' as _i3;
|
||||
import 'package:smol_mail/presentation/screens/inbox_screen.dart' as _i4;
|
||||
import 'package:smol_mail/presentation/screens/home_screen.dart' as _i4;
|
||||
import 'package:smol_mail/presentation/screens/inbox_screen.dart' as _i5;
|
||||
import 'package:smol_mail/presentation/screens/message_detail_screen.dart'
|
||||
as _i5;
|
||||
import 'package:smol_mail/presentation/screens/onboarding_screen.dart' as _i6;
|
||||
import 'package:smol_mail/presentation/screens/settings_screen.dart' as _i7;
|
||||
as _i6;
|
||||
import 'package:smol_mail/presentation/screens/onboarding_screen.dart' as _i7;
|
||||
import 'package:smol_mail/presentation/screens/settings_screen.dart' as _i8;
|
||||
|
||||
/// generated route for
|
||||
/// [_i1.ComposeScreen]
|
||||
class ComposeRoute extends _i8.PageRouteInfo<ComposeRouteArgs> {
|
||||
class ComposeRoute extends _i9.PageRouteInfo<ComposeRouteArgs> {
|
||||
ComposeRoute({
|
||||
_i9.Key? key,
|
||||
_i10.Key? key,
|
||||
String? to,
|
||||
String? subject,
|
||||
List<_i8.PageRouteInfo>? children,
|
||||
List<_i9.PageRouteInfo>? children,
|
||||
}) : super(
|
||||
ComposeRoute.name,
|
||||
args: ComposeRouteArgs(key: key, to: to, subject: subject),
|
||||
|
|
@ -38,7 +39,7 @@ class ComposeRoute extends _i8.PageRouteInfo<ComposeRouteArgs> {
|
|||
|
||||
static const String name = 'ComposeRoute';
|
||||
|
||||
static _i8.PageInfo page = _i8.PageInfo(
|
||||
static _i9.PageInfo page = _i9.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
final args = data.argsAs<ComposeRouteArgs>(
|
||||
|
|
@ -56,7 +57,7 @@ class ComposeRoute extends _i8.PageRouteInfo<ComposeRouteArgs> {
|
|||
class ComposeRouteArgs {
|
||||
const ComposeRouteArgs({this.key, this.to, this.subject});
|
||||
|
||||
final _i9.Key? key;
|
||||
final _i10.Key? key;
|
||||
|
||||
final String? to;
|
||||
|
||||
|
|
@ -80,11 +81,11 @@ class ComposeRouteArgs {
|
|||
|
||||
/// generated route for
|
||||
/// [_i2.ContactDetailScreen]
|
||||
class ContactDetailRoute extends _i8.PageRouteInfo<ContactDetailRouteArgs> {
|
||||
class ContactDetailRoute extends _i9.PageRouteInfo<ContactDetailRouteArgs> {
|
||||
ContactDetailRoute({
|
||||
_i9.Key? key,
|
||||
_i10.Key? key,
|
||||
required String address,
|
||||
List<_i8.PageRouteInfo>? children,
|
||||
List<_i9.PageRouteInfo>? children,
|
||||
}) : super(
|
||||
ContactDetailRoute.name,
|
||||
args: ContactDetailRouteArgs(key: key, address: address),
|
||||
|
|
@ -93,7 +94,7 @@ class ContactDetailRoute extends _i8.PageRouteInfo<ContactDetailRouteArgs> {
|
|||
|
||||
static const String name = 'ContactDetailRoute';
|
||||
|
||||
static _i8.PageInfo page = _i8.PageInfo(
|
||||
static _i9.PageInfo page = _i9.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
final args = data.argsAs<ContactDetailRouteArgs>();
|
||||
|
|
@ -105,7 +106,7 @@ class ContactDetailRoute extends _i8.PageRouteInfo<ContactDetailRouteArgs> {
|
|||
class ContactDetailRouteArgs {
|
||||
const ContactDetailRouteArgs({this.key, required this.address});
|
||||
|
||||
final _i9.Key? key;
|
||||
final _i10.Key? key;
|
||||
|
||||
final String address;
|
||||
|
||||
|
|
@ -127,13 +128,13 @@ class ContactDetailRouteArgs {
|
|||
|
||||
/// generated route for
|
||||
/// [_i3.ContactsScreen]
|
||||
class ContactsRoute extends _i8.PageRouteInfo<void> {
|
||||
const ContactsRoute({List<_i8.PageRouteInfo>? children})
|
||||
class ContactsRoute extends _i9.PageRouteInfo<void> {
|
||||
const ContactsRoute({List<_i9.PageRouteInfo>? children})
|
||||
: super(ContactsRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'ContactsRoute';
|
||||
|
||||
static _i8.PageInfo page = _i8.PageInfo(
|
||||
static _i9.PageInfo page = _i9.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i3.ContactsScreen();
|
||||
|
|
@ -142,29 +143,45 @@ class ContactsRoute extends _i8.PageRouteInfo<void> {
|
|||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i4.InboxScreen]
|
||||
class InboxRoute extends _i8.PageRouteInfo<void> {
|
||||
const InboxRoute({List<_i8.PageRouteInfo>? children})
|
||||
: super(InboxRoute.name, initialChildren: children);
|
||||
/// [_i4.HomeScreen]
|
||||
class HomeRoute extends _i9.PageRouteInfo<void> {
|
||||
const HomeRoute({List<_i9.PageRouteInfo>? children})
|
||||
: super(HomeRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'InboxRoute';
|
||||
static const String name = 'HomeRoute';
|
||||
|
||||
static _i8.PageInfo page = _i8.PageInfo(
|
||||
static _i9.PageInfo page = _i9.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i4.InboxScreen();
|
||||
return const _i4.HomeScreen();
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i5.MessageDetailScreen]
|
||||
class MessageDetailRoute extends _i8.PageRouteInfo<MessageDetailRouteArgs> {
|
||||
/// [_i5.InboxScreen]
|
||||
class InboxRoute extends _i9.PageRouteInfo<void> {
|
||||
const InboxRoute({List<_i9.PageRouteInfo>? children})
|
||||
: super(InboxRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'InboxRoute';
|
||||
|
||||
static _i9.PageInfo page = _i9.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i5.InboxScreen();
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i6.MessageDetailScreen]
|
||||
class MessageDetailRoute extends _i9.PageRouteInfo<MessageDetailRouteArgs> {
|
||||
MessageDetailRoute({
|
||||
_i9.Key? key,
|
||||
_i10.Key? key,
|
||||
required String folder,
|
||||
required String id,
|
||||
List<_i8.PageRouteInfo>? children,
|
||||
List<_i9.PageRouteInfo>? children,
|
||||
}) : super(
|
||||
MessageDetailRoute.name,
|
||||
args: MessageDetailRouteArgs(key: key, folder: folder, id: id),
|
||||
|
|
@ -173,11 +190,11 @@ class MessageDetailRoute extends _i8.PageRouteInfo<MessageDetailRouteArgs> {
|
|||
|
||||
static const String name = 'MessageDetailRoute';
|
||||
|
||||
static _i8.PageInfo page = _i8.PageInfo(
|
||||
static _i9.PageInfo page = _i9.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
final args = data.argsAs<MessageDetailRouteArgs>();
|
||||
return _i5.MessageDetailScreen(
|
||||
return _i6.MessageDetailScreen(
|
||||
key: args.key,
|
||||
folder: args.folder,
|
||||
id: args.id,
|
||||
|
|
@ -193,7 +210,7 @@ class MessageDetailRouteArgs {
|
|||
required this.id,
|
||||
});
|
||||
|
||||
final _i9.Key? key;
|
||||
final _i10.Key? key;
|
||||
|
||||
final String folder;
|
||||
|
||||
|
|
@ -216,33 +233,33 @@ class MessageDetailRouteArgs {
|
|||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i6.OnboardingScreen]
|
||||
class OnboardingRoute extends _i8.PageRouteInfo<void> {
|
||||
const OnboardingRoute({List<_i8.PageRouteInfo>? children})
|
||||
/// [_i7.OnboardingScreen]
|
||||
class OnboardingRoute extends _i9.PageRouteInfo<void> {
|
||||
const OnboardingRoute({List<_i9.PageRouteInfo>? children})
|
||||
: super(OnboardingRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'OnboardingRoute';
|
||||
|
||||
static _i8.PageInfo page = _i8.PageInfo(
|
||||
static _i9.PageInfo page = _i9.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i6.OnboardingScreen();
|
||||
return const _i7.OnboardingScreen();
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i7.SettingsScreen]
|
||||
class SettingsRoute extends _i8.PageRouteInfo<void> {
|
||||
const SettingsRoute({List<_i8.PageRouteInfo>? children})
|
||||
/// [_i8.SettingsScreen]
|
||||
class SettingsRoute extends _i9.PageRouteInfo<void> {
|
||||
const SettingsRoute({List<_i9.PageRouteInfo>? children})
|
||||
: super(SettingsRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'SettingsRoute';
|
||||
|
||||
static _i8.PageInfo page = _i8.PageInfo(
|
||||
static _i9.PageInfo page = _i9.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i7.SettingsScreen();
|
||||
return const _i8.SettingsScreen();
|
||||
},
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue