From 0ff640b10a1d8b97d3aa91f9773688ceff2e4c6c Mon Sep 17 00:00:00 2001 From: poppingmoon <63451158+poppingmoon@users.noreply.github.com> Date: Sat, 30 Sep 2023 19:38:36 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=E5=85=A5=E5=8A=9B=E8=A3=9C=E5=AE=8C?= =?UTF-8?q?=E3=81=AE=E3=83=86=E3=82=B9=E3=83=88=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/view/note_create_page/note_create_page_test.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/view/note_create_page/note_create_page_test.dart b/test/view/note_create_page/note_create_page_test.dart index 846ec8b96..6fa9ee20c 100644 --- a/test/view/note_create_page/note_create_page_test.dart +++ b/test/view/note_create_page/note_create_page_test.dart @@ -1167,8 +1167,8 @@ void main() { TestData.unicodeEmojiRepositoryData1, TestData.customEmojiRepositoryData1 ]); - when(emojiRepository.searchEmojis(any)).thenAnswer( - (_) async => [TestData.unicodeEmoji1, TestData.customEmoji1]); + when(emojiRepository.defaultEmojis()).thenAnswer( + (_) => [TestData.unicodeEmoji1, TestData.customEmoji1]); final generalSettingsRepository = MockGeneralSettingsRepository(); when(generalSettingsRepository.settings) .thenReturn(const GeneralSettings(emojiType: EmojiType.system)); @@ -1212,8 +1212,8 @@ void main() { TestData.unicodeEmojiRepositoryData1, TestData.customEmojiRepositoryData1 ]); - when(emojiRepository.searchEmojis(any)).thenAnswer( - (_) async => [TestData.unicodeEmoji1, TestData.customEmoji1]); + when(emojiRepository.defaultEmojis()).thenAnswer( + (_) => [TestData.unicodeEmoji1, TestData.customEmoji1]); final generalSettingsRepository = MockGeneralSettingsRepository(); when(generalSettingsRepository.settings) From c6fde443ff6f450655f970dd9627e1a35d2b45a1 Mon Sep 17 00:00:00 2001 From: poppingmoon <63451158+poppingmoon@users.noreply.github.com> Date: Sat, 30 Sep 2023 21:37:29 +0900 Subject: [PATCH 2/2] =?UTF-8?q?MFM=E3=81=AE=E9=96=A2=E6=95=B0=E3=81=A8?= =?UTF-8?q?=E3=83=8F=E3=83=83=E3=82=B7=E3=83=A5=E3=82=BF=E3=82=B0=E3=81=AE?= =?UTF-8?q?=E5=85=A5=E5=8A=9B=E8=A3=9C=E5=AE=8C=E3=81=AE=E3=83=86=E3=82=B9?= =?UTF-8?q?=E3=83=88=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/router/app_router.gr.dart | 1424 ++++++++--------- test/test_util/mock.dart | 1 + test/test_util/mock.mocks.dart | 189 ++- .../note_create_page_test.dart | 65 + 4 files changed, 915 insertions(+), 764 deletions(-) diff --git a/lib/router/app_router.gr.dart b/lib/router/app_router.gr.dart index 46c92668b..79bf53faa 100644 --- a/lib/router/app_router.gr.dart +++ b/lib/router/app_router.gr.dart @@ -15,13 +15,23 @@ abstract class _$AppRouter extends RootStackRouter { @override final Map pagesMap = { - NotesAfterRenoteRoute.name: (routeData) { - final args = routeData.argsAs(); + AnnouncementRoute.name: (routeData) { + final args = routeData.argsAs(); return AutoRoutePage( routeData: routeData, - child: NotesAfterRenotePage( + child: AnnouncementPage( key: args.key, - note: args.note, + account: args.account, + ), + ); + }, + AntennaNotesRoute.name: (routeData) { + final args = routeData.argsAs(); + return AutoRoutePage( + routeData: routeData, + child: AntennaNotesPage( + key: args.key, + antenna: args.antenna, account: args.account, ), ); @@ -36,33 +46,27 @@ abstract class _$AppRouter extends RootStackRouter { ), ); }, - AntennaNotesRoute.name: (routeData) { - final args = routeData.argsAs(); + ChannelsRoute.name: (routeData) { + final args = routeData.argsAs(); return AutoRoutePage( routeData: routeData, - child: AntennaNotesPage( + child: ChannelsPage( key: args.key, - antenna: args.antenna, account: args.account, ), ); }, - NotificationRoute.name: (routeData) { - final args = routeData.argsAs(); + ChannelDetailRoute.name: (routeData) { + final args = routeData.argsAs(); return AutoRoutePage( routeData: routeData, - child: NotificationPage( + child: ChannelDetailPage( key: args.key, account: args.account, + channelId: args.channelId, ), ); }, - LoginRoute.name: (routeData) { - return AutoRoutePage( - routeData: routeData, - child: const LoginPage(), - ); - }, ClipDetailRoute.name: (routeData) { final args = routeData.argsAs(); return AutoRoutePage( @@ -84,216 +88,230 @@ abstract class _$AppRouter extends RootStackRouter { ), ); }, - NoteCreateRoute.name: (routeData) { - final args = routeData.argsAs(); + ExploreRoute.name: (routeData) { + final args = routeData.argsAs(); return AutoRoutePage( routeData: routeData, - child: NoteCreatePage( + child: ExplorePage( key: args.key, - initialAccount: args.initialAccount, - initialText: args.initialText, - initialMediaFiles: args.initialMediaFiles, - channel: args.channel, - reply: args.reply, - renote: args.renote, - note: args.note, - noteCreationMode: args.noteCreationMode, + account: args.account, ), ); }, - HashtagRoute.name: (routeData) { - final args = routeData.argsAs(); + ExploreRoleUsersRoute.name: (routeData) { + final args = routeData.argsAs(); return AutoRoutePage( routeData: routeData, - child: HashtagPage( + child: ExploreRoleUsersPage( key: args.key, - hashtag: args.hashtag, + item: args.item, account: args.account, ), ); }, - UserFolloweeRoute.name: (routeData) { - final args = routeData.argsAs(); + FavoritedNoteRoute.name: (routeData) { + final args = routeData.argsAs(); return AutoRoutePage( routeData: routeData, - child: UserFolloweePage( + child: FavoritedNotePage( key: args.key, - userId: args.userId, account: args.account, ), ); }, - UserRoute.name: (routeData) { - final args = routeData.argsAs(); + FederationRoute.name: (routeData) { + final args = routeData.argsAs(); return AutoRoutePage( routeData: routeData, - child: UserPage( + child: FederationPage( key: args.key, - userId: args.userId, account: args.account, + host: args.host, ), ); }, - UserFollowerRoute.name: (routeData) { - final args = routeData.argsAs(); + HashtagRoute.name: (routeData) { + final args = routeData.argsAs(); return AutoRoutePage( routeData: routeData, - child: UserFollowerPage( + child: HashtagPage( key: args.key, - userId: args.userId, + hashtag: args.hashtag, account: args.account, ), ); }, - PhotoEditRoute.name: (routeData) { - final args = routeData.argsAs(); - return AutoRoutePage( + LoginRoute.name: (routeData) { + return AutoRoutePage( routeData: routeData, - child: PhotoEditPage( - account: args.account, - file: args.file, - onSubmit: args.onSubmit, - key: args.key, - ), + child: const LoginPage(), ); }, - AnnouncementRoute.name: (routeData) { - final args = routeData.argsAs(); + NotesAfterRenoteRoute.name: (routeData) { + final args = routeData.argsAs(); return AutoRoutePage( routeData: routeData, - child: AnnouncementPage( + child: NotesAfterRenotePage( key: args.key, + note: args.note, account: args.account, ), ); }, - SplashRoute.name: (routeData) { + NoteCreateRoute.name: (routeData) { + final args = routeData.argsAs(); return AutoRoutePage( routeData: routeData, - child: const SplashPage(), + child: NoteCreatePage( + key: args.key, + initialAccount: args.initialAccount, + initialText: args.initialText, + initialMediaFiles: args.initialMediaFiles, + channel: args.channel, + reply: args.reply, + renote: args.renote, + note: args.note, + noteCreationMode: args.noteCreationMode, + ), ); }, - SeveralAccountGeneralSettingsRoute.name: (routeData) { - final args = routeData.argsAs(); + NoteDetailRoute.name: (routeData) { + final args = routeData.argsAs(); return AutoRoutePage( routeData: routeData, - child: SeveralAccountGeneralSettingsPage( + child: NoteDetailPage( key: args.key, + note: args.note, account: args.account, ), ); }, - SeveralAccountSettingsRoute.name: (routeData) { - final args = routeData.argsAs(); + NotificationRoute.name: (routeData) { + final args = routeData.argsAs(); return AutoRoutePage( routeData: routeData, - child: SeveralAccountSettingsPage( + child: NotificationPage( key: args.key, account: args.account, ), ); }, - InstanceMuteRoute.name: (routeData) { - final args = routeData.argsAs(); - return AutoRoutePage( + PhotoEditRoute.name: (routeData) { + final args = routeData.argsAs(); + return AutoRoutePage( routeData: routeData, - child: InstanceMutePage( - key: args.key, + child: PhotoEditPage( account: args.account, + file: args.file, + onSubmit: args.onSubmit, + key: args.key, ), ); }, - HardMuteRoute.name: (routeData) { - final args = routeData.argsAs(); + SearchRoute.name: (routeData) { + final args = routeData.argsAs(); return AutoRoutePage( routeData: routeData, - child: HardMutePage( + child: SearchPage( key: args.key, + initialSearchText: args.initialSearchText, account: args.account, ), ); }, - ReactionDeckRoute.name: (routeData) { - final args = routeData.argsAs(); + AccountListRoute.name: (routeData) { return AutoRoutePage( routeData: routeData, - child: ReactionDeckPage( - key: args.key, - account: args.account, - ), + child: const AccountListPage(), ); }, - UsersListTimelineRoute.name: (routeData) { - final args = routeData.argsAs(); + AppInfoRoute.name: (routeData) { return AutoRoutePage( routeData: routeData, - child: UsersListTimelinePage( - args.account, - args.listId, - key: args.key, - ), + child: const AppInfoPage(), ); }, - UsersListRoute.name: (routeData) { - final args = routeData.argsAs(); + GeneralSettingsRoute.name: (routeData) { return AutoRoutePage( routeData: routeData, - child: UsersListPage( - args.account, + child: const GeneralSettingsPage(), + ); + }, + ImportExportRoute.name: (routeData) { + return AutoRoutePage( + routeData: routeData, + child: const ImportExportPage(), + ); + }, + SettingsRoute.name: (routeData) { + return AutoRoutePage( + routeData: routeData, + child: const SettingsPage(), + ); + }, + TabSettingsListRoute.name: (routeData) { + return AutoRoutePage( + routeData: routeData, + child: const TabSettingsListPage(), + ); + }, + TabSettingsRoute.name: (routeData) { + final args = routeData.argsAs( + orElse: () => const TabSettingsRouteArgs()); + return AutoRoutePage( + routeData: routeData, + child: TabSettingsPage( key: args.key, + tabIndex: args.tabIndex, ), ); }, - ChannelDetailRoute.name: (routeData) { - final args = routeData.argsAs(); + HardMuteRoute.name: (routeData) { + final args = routeData.argsAs(); return AutoRoutePage( routeData: routeData, - child: ChannelDetailPage( + child: HardMutePage( key: args.key, account: args.account, - channelId: args.channelId, ), ); }, - ChannelsRoute.name: (routeData) { - final args = routeData.argsAs(); + InstanceMuteRoute.name: (routeData) { + final args = routeData.argsAs(); return AutoRoutePage( routeData: routeData, - child: ChannelsPage( + child: InstanceMutePage( key: args.key, account: args.account, ), ); }, - FederationRoute.name: (routeData) { - final args = routeData.argsAs(); + ReactionDeckRoute.name: (routeData) { + final args = routeData.argsAs(); return AutoRoutePage( routeData: routeData, - child: FederationPage( + child: ReactionDeckPage( key: args.key, account: args.account, - host: args.host, ), ); }, - NoteDetailRoute.name: (routeData) { - final args = routeData.argsAs(); + SeveralAccountGeneralSettingsRoute.name: (routeData) { + final args = routeData.argsAs(); return AutoRoutePage( routeData: routeData, - child: NoteDetailPage( + child: SeveralAccountGeneralSettingsPage( key: args.key, - note: args.note, account: args.account, ), ); }, - SearchRoute.name: (routeData) { - final args = routeData.argsAs(); + SeveralAccountSettingsRoute.name: (routeData) { + final args = routeData.argsAs(); return AutoRoutePage( routeData: routeData, - child: SearchPage( + child: SeveralAccountSettingsPage( key: args.key, - initialSearchText: args.initialSearchText, account: args.account, ), ); @@ -310,70 +328,62 @@ abstract class _$AppRouter extends RootStackRouter { ), ); }, - ImportExportRoute.name: (routeData) { + SplashRoute.name: (routeData) { return AutoRoutePage( routeData: routeData, - child: const ImportExportPage(), + child: const SplashPage(), ); }, - GeneralSettingsRoute.name: (routeData) { + UsersListRoute.name: (routeData) { + final args = routeData.argsAs(); return AutoRoutePage( routeData: routeData, - child: const GeneralSettingsPage(), + child: UsersListPage( + args.account, + key: args.key, + ), ); }, - TabSettingsRoute.name: (routeData) { - final args = routeData.argsAs( - orElse: () => const TabSettingsRouteArgs()); + UsersListTimelineRoute.name: (routeData) { + final args = routeData.argsAs(); return AutoRoutePage( routeData: routeData, - child: TabSettingsPage( + child: UsersListTimelinePage( + args.account, + args.listId, key: args.key, - tabIndex: args.tabIndex, ), ); }, - TabSettingsListRoute.name: (routeData) { - return AutoRoutePage( - routeData: routeData, - child: const TabSettingsListPage(), - ); - }, - AppInfoRoute.name: (routeData) { - return AutoRoutePage( - routeData: routeData, - child: const AppInfoPage(), - ); - }, - SettingsRoute.name: (routeData) { - return AutoRoutePage( - routeData: routeData, - child: const SettingsPage(), - ); - }, - AccountListRoute.name: (routeData) { + UserFolloweeRoute.name: (routeData) { + final args = routeData.argsAs(); return AutoRoutePage( routeData: routeData, - child: const AccountListPage(), + child: UserFolloweePage( + key: args.key, + userId: args.userId, + account: args.account, + ), ); }, - ExploreRoleUsersRoute.name: (routeData) { - final args = routeData.argsAs(); + UserFollowerRoute.name: (routeData) { + final args = routeData.argsAs(); return AutoRoutePage( routeData: routeData, - child: ExploreRoleUsersPage( + child: UserFollowerPage( key: args.key, - item: args.item, + userId: args.userId, account: args.account, ), ); }, - ExploreRoute.name: (routeData) { - final args = routeData.argsAs(); + UserRoute.name: (routeData) { + final args = routeData.argsAs(); return AutoRoutePage( routeData: routeData, - child: ExplorePage( + child: UserPage( key: args.key, + userId: args.userId, account: args.account, ), ); @@ -388,59 +398,87 @@ abstract class _$AppRouter extends RootStackRouter { ), ); }, - FavoritedNoteRoute.name: (routeData) { - final args = routeData.argsAs(); - return AutoRoutePage( - routeData: routeData, - child: FavoritedNotePage( - key: args.key, - account: args.account, - ), - ); - }, }; } /// generated route for -/// [NotesAfterRenotePage] -class NotesAfterRenoteRoute extends PageRouteInfo { - NotesAfterRenoteRoute({ +/// [AnnouncementPage] +class AnnouncementRoute extends PageRouteInfo { + AnnouncementRoute({ Key? key, - required Note note, required Account account, List? children, }) : super( - NotesAfterRenoteRoute.name, - args: NotesAfterRenoteRouteArgs( + AnnouncementRoute.name, + args: AnnouncementRouteArgs( key: key, - note: note, account: account, ), initialChildren: children, ); - static const String name = 'NotesAfterRenoteRoute'; + static const String name = 'AnnouncementRoute'; - static const PageInfo page = - PageInfo(name); + static const PageInfo page = + PageInfo(name); } -class NotesAfterRenoteRouteArgs { - const NotesAfterRenoteRouteArgs({ +class AnnouncementRouteArgs { + const AnnouncementRouteArgs({ this.key, - required this.note, required this.account, }); final Key? key; - final Note note; + final Account account; + + @override + String toString() { + return 'AnnouncementRouteArgs{key: $key, account: $account}'; + } +} + +/// generated route for +/// [AntennaNotesPage] +class AntennaNotesRoute extends PageRouteInfo { + AntennaNotesRoute({ + Key? key, + required Antenna antenna, + required Account account, + List? children, + }) : super( + AntennaNotesRoute.name, + args: AntennaNotesRouteArgs( + key: key, + antenna: antenna, + account: account, + ), + initialChildren: children, + ); + + static const String name = 'AntennaNotesRoute'; + + static const PageInfo page = + PageInfo(name); +} + +class AntennaNotesRouteArgs { + const AntennaNotesRouteArgs({ + this.key, + required this.antenna, + required this.account, + }); + + final Key? key; + + final Antenna antenna; final Account account; @override String toString() { - return 'NotesAfterRenoteRouteArgs{key: $key, note: $note, account: $account}'; + return 'AntennaNotesRouteArgs{key: $key, antenna: $antenna, account: $account}'; } } @@ -483,100 +521,86 @@ class AntennaRouteArgs { } /// generated route for -/// [AntennaNotesPage] -class AntennaNotesRoute extends PageRouteInfo { - AntennaNotesRoute({ +/// [ChannelsPage] +class ChannelsRoute extends PageRouteInfo { + ChannelsRoute({ Key? key, - required Antenna antenna, required Account account, List? children, }) : super( - AntennaNotesRoute.name, - args: AntennaNotesRouteArgs( + ChannelsRoute.name, + args: ChannelsRouteArgs( key: key, - antenna: antenna, account: account, ), initialChildren: children, ); - static const String name = 'AntennaNotesRoute'; + static const String name = 'ChannelsRoute'; - static const PageInfo page = - PageInfo(name); + static const PageInfo page = + PageInfo(name); } -class AntennaNotesRouteArgs { - const AntennaNotesRouteArgs({ +class ChannelsRouteArgs { + const ChannelsRouteArgs({ this.key, - required this.antenna, required this.account, }); final Key? key; - final Antenna antenna; - final Account account; @override String toString() { - return 'AntennaNotesRouteArgs{key: $key, antenna: $antenna, account: $account}'; + return 'ChannelsRouteArgs{key: $key, account: $account}'; } } /// generated route for -/// [NotificationPage] -class NotificationRoute extends PageRouteInfo { - NotificationRoute({ +/// [ChannelDetailPage] +class ChannelDetailRoute extends PageRouteInfo { + ChannelDetailRoute({ Key? key, required Account account, + required String channelId, List? children, }) : super( - NotificationRoute.name, - args: NotificationRouteArgs( + ChannelDetailRoute.name, + args: ChannelDetailRouteArgs( key: key, account: account, + channelId: channelId, ), initialChildren: children, ); - static const String name = 'NotificationRoute'; + static const String name = 'ChannelDetailRoute'; - static const PageInfo page = - PageInfo(name); + static const PageInfo page = + PageInfo(name); } -class NotificationRouteArgs { - const NotificationRouteArgs({ +class ChannelDetailRouteArgs { + const ChannelDetailRouteArgs({ this.key, required this.account, + required this.channelId, }); final Key? key; final Account account; + final String channelId; + @override String toString() { - return 'NotificationRouteArgs{key: $key, account: $account}'; + return 'ChannelDetailRouteArgs{key: $key, account: $account, channelId: $channelId}'; } } -/// generated route for -/// [LoginPage] -class LoginRoute extends PageRouteInfo { - const LoginRoute({List? children}) - : super( - LoginRoute.name, - initialChildren: children, - ); - - static const String name = 'LoginRoute'; - - static const PageInfo page = PageInfo(name); -} - /// generated route for /// [ClipDetailPage] class ClipDetailRoute extends PageRouteInfo { @@ -659,413 +683,407 @@ class ClipListRouteArgs { } /// generated route for -/// [NoteCreatePage] -class NoteCreateRoute extends PageRouteInfo { - NoteCreateRoute({ +/// [ExplorePage] +class ExploreRoute extends PageRouteInfo { + ExploreRoute({ Key? key, - required Account initialAccount, - String? initialText, - List? initialMediaFiles, - CommunityChannel? channel, - Note? reply, - Note? renote, - Note? note, - NoteCreationMode? noteCreationMode, + required Account account, List? children, }) : super( - NoteCreateRoute.name, - args: NoteCreateRouteArgs( + ExploreRoute.name, + args: ExploreRouteArgs( key: key, - initialAccount: initialAccount, - initialText: initialText, - initialMediaFiles: initialMediaFiles, - channel: channel, - reply: reply, - renote: renote, - note: note, - noteCreationMode: noteCreationMode, + account: account, ), initialChildren: children, ); - static const String name = 'NoteCreateRoute'; + static const String name = 'ExploreRoute'; - static const PageInfo page = - PageInfo(name); + static const PageInfo page = + PageInfo(name); } -class NoteCreateRouteArgs { - const NoteCreateRouteArgs({ +class ExploreRouteArgs { + const ExploreRouteArgs({ this.key, - required this.initialAccount, - this.initialText, - this.initialMediaFiles, - this.channel, - this.reply, - this.renote, - this.note, - this.noteCreationMode, + required this.account, }); final Key? key; - final Account initialAccount; - - final String? initialText; - - final List? initialMediaFiles; - - final CommunityChannel? channel; - - final Note? reply; - - final Note? renote; - - final Note? note; - - final NoteCreationMode? noteCreationMode; + final Account account; @override String toString() { - return 'NoteCreateRouteArgs{key: $key, initialAccount: $initialAccount, initialText: $initialText, initialMediaFiles: $initialMediaFiles, channel: $channel, reply: $reply, renote: $renote, note: $note, noteCreationMode: $noteCreationMode}'; + return 'ExploreRouteArgs{key: $key, account: $account}'; } } /// generated route for -/// [HashtagPage] -class HashtagRoute extends PageRouteInfo { - HashtagRoute({ +/// [ExploreRoleUsersPage] +class ExploreRoleUsersRoute extends PageRouteInfo { + ExploreRoleUsersRoute({ Key? key, - required String hashtag, + required RolesListResponse item, required Account account, List? children, }) : super( - HashtagRoute.name, - args: HashtagRouteArgs( + ExploreRoleUsersRoute.name, + args: ExploreRoleUsersRouteArgs( key: key, - hashtag: hashtag, + item: item, account: account, ), initialChildren: children, ); - static const String name = 'HashtagRoute'; + static const String name = 'ExploreRoleUsersRoute'; - static const PageInfo page = - PageInfo(name); + static const PageInfo page = + PageInfo(name); } -class HashtagRouteArgs { - const HashtagRouteArgs({ +class ExploreRoleUsersRouteArgs { + const ExploreRoleUsersRouteArgs({ this.key, - required this.hashtag, + required this.item, required this.account, }); final Key? key; - final String hashtag; + final RolesListResponse item; final Account account; @override String toString() { - return 'HashtagRouteArgs{key: $key, hashtag: $hashtag, account: $account}'; + return 'ExploreRoleUsersRouteArgs{key: $key, item: $item, account: $account}'; } } /// generated route for -/// [UserFolloweePage] -class UserFolloweeRoute extends PageRouteInfo { - UserFolloweeRoute({ +/// [FavoritedNotePage] +class FavoritedNoteRoute extends PageRouteInfo { + FavoritedNoteRoute({ Key? key, - required String userId, required Account account, List? children, }) : super( - UserFolloweeRoute.name, - args: UserFolloweeRouteArgs( + FavoritedNoteRoute.name, + args: FavoritedNoteRouteArgs( key: key, - userId: userId, account: account, ), initialChildren: children, ); - static const String name = 'UserFolloweeRoute'; + static const String name = 'FavoritedNoteRoute'; - static const PageInfo page = - PageInfo(name); + static const PageInfo page = + PageInfo(name); } -class UserFolloweeRouteArgs { - const UserFolloweeRouteArgs({ +class FavoritedNoteRouteArgs { + const FavoritedNoteRouteArgs({ this.key, - required this.userId, required this.account, }); final Key? key; - final String userId; - final Account account; @override String toString() { - return 'UserFolloweeRouteArgs{key: $key, userId: $userId, account: $account}'; + return 'FavoritedNoteRouteArgs{key: $key, account: $account}'; } } /// generated route for -/// [UserPage] -class UserRoute extends PageRouteInfo { - UserRoute({ +/// [FederationPage] +class FederationRoute extends PageRouteInfo { + FederationRoute({ Key? key, - required String userId, required Account account, + required String host, List? children, }) : super( - UserRoute.name, - args: UserRouteArgs( + FederationRoute.name, + args: FederationRouteArgs( key: key, - userId: userId, account: account, + host: host, ), initialChildren: children, ); - static const String name = 'UserRoute'; + static const String name = 'FederationRoute'; - static const PageInfo page = PageInfo(name); + static const PageInfo page = + PageInfo(name); } -class UserRouteArgs { - const UserRouteArgs({ +class FederationRouteArgs { + const FederationRouteArgs({ this.key, - required this.userId, required this.account, + required this.host, }); final Key? key; - final String userId; - final Account account; + final String host; + @override String toString() { - return 'UserRouteArgs{key: $key, userId: $userId, account: $account}'; + return 'FederationRouteArgs{key: $key, account: $account, host: $host}'; } } /// generated route for -/// [UserFollowerPage] -class UserFollowerRoute extends PageRouteInfo { - UserFollowerRoute({ +/// [HashtagPage] +class HashtagRoute extends PageRouteInfo { + HashtagRoute({ Key? key, - required String userId, + required String hashtag, required Account account, List? children, }) : super( - UserFollowerRoute.name, - args: UserFollowerRouteArgs( + HashtagRoute.name, + args: HashtagRouteArgs( key: key, - userId: userId, + hashtag: hashtag, account: account, ), initialChildren: children, ); - static const String name = 'UserFollowerRoute'; + static const String name = 'HashtagRoute'; - static const PageInfo page = - PageInfo(name); + static const PageInfo page = + PageInfo(name); } -class UserFollowerRouteArgs { - const UserFollowerRouteArgs({ +class HashtagRouteArgs { + const HashtagRouteArgs({ this.key, - required this.userId, + required this.hashtag, required this.account, }); final Key? key; - final String userId; + final String hashtag; final Account account; @override String toString() { - return 'UserFollowerRouteArgs{key: $key, userId: $userId, account: $account}'; + return 'HashtagRouteArgs{key: $key, hashtag: $hashtag, account: $account}'; } } /// generated route for -/// [PhotoEditPage] -class PhotoEditRoute extends PageRouteInfo { - PhotoEditRoute({ - required Account account, - required MisskeyPostFile file, - required void Function(Uint8List) onSubmit, +/// [LoginPage] +class LoginRoute extends PageRouteInfo { + const LoginRoute({List? children}) + : super( + LoginRoute.name, + initialChildren: children, + ); + + static const String name = 'LoginRoute'; + + static const PageInfo page = PageInfo(name); +} + +/// generated route for +/// [NotesAfterRenotePage] +class NotesAfterRenoteRoute extends PageRouteInfo { + NotesAfterRenoteRoute({ Key? key, + required Note note, + required Account account, List? children, }) : super( - PhotoEditRoute.name, - args: PhotoEditRouteArgs( - account: account, - file: file, - onSubmit: onSubmit, + NotesAfterRenoteRoute.name, + args: NotesAfterRenoteRouteArgs( key: key, + note: note, + account: account, ), initialChildren: children, ); - static const String name = 'PhotoEditRoute'; + static const String name = 'NotesAfterRenoteRoute'; - static const PageInfo page = - PageInfo(name); + static const PageInfo page = + PageInfo(name); } -class PhotoEditRouteArgs { - const PhotoEditRouteArgs({ - required this.account, - required this.file, - required this.onSubmit, +class NotesAfterRenoteRouteArgs { + const NotesAfterRenoteRouteArgs({ this.key, + required this.note, + required this.account, }); - final Account account; - - final MisskeyPostFile file; + final Key? key; - final void Function(Uint8List) onSubmit; + final Note note; - final Key? key; + final Account account; @override String toString() { - return 'PhotoEditRouteArgs{account: $account, file: $file, onSubmit: $onSubmit, key: $key}'; + return 'NotesAfterRenoteRouteArgs{key: $key, note: $note, account: $account}'; } } /// generated route for -/// [AnnouncementPage] -class AnnouncementRoute extends PageRouteInfo { - AnnouncementRoute({ +/// [NoteCreatePage] +class NoteCreateRoute extends PageRouteInfo { + NoteCreateRoute({ Key? key, - required Account account, + required Account initialAccount, + String? initialText, + List? initialMediaFiles, + CommunityChannel? channel, + Note? reply, + Note? renote, + Note? note, + NoteCreationMode? noteCreationMode, List? children, }) : super( - AnnouncementRoute.name, - args: AnnouncementRouteArgs( + NoteCreateRoute.name, + args: NoteCreateRouteArgs( key: key, - account: account, + initialAccount: initialAccount, + initialText: initialText, + initialMediaFiles: initialMediaFiles, + channel: channel, + reply: reply, + renote: renote, + note: note, + noteCreationMode: noteCreationMode, ), initialChildren: children, ); - static const String name = 'AnnouncementRoute'; + static const String name = 'NoteCreateRoute'; - static const PageInfo page = - PageInfo(name); + static const PageInfo page = + PageInfo(name); } -class AnnouncementRouteArgs { - const AnnouncementRouteArgs({ +class NoteCreateRouteArgs { + const NoteCreateRouteArgs({ this.key, - required this.account, + required this.initialAccount, + this.initialText, + this.initialMediaFiles, + this.channel, + this.reply, + this.renote, + this.note, + this.noteCreationMode, }); final Key? key; - final Account account; + final Account initialAccount; - @override - String toString() { - return 'AnnouncementRouteArgs{key: $key, account: $account}'; - } -} + final String? initialText; -/// generated route for -/// [SplashPage] -class SplashRoute extends PageRouteInfo { - const SplashRoute({List? children}) - : super( - SplashRoute.name, - initialChildren: children, - ); + final List? initialMediaFiles; - static const String name = 'SplashRoute'; + final CommunityChannel? channel; - static const PageInfo page = PageInfo(name); + final Note? reply; + + final Note? renote; + + final Note? note; + + final NoteCreationMode? noteCreationMode; + + @override + String toString() { + return 'NoteCreateRouteArgs{key: $key, initialAccount: $initialAccount, initialText: $initialText, initialMediaFiles: $initialMediaFiles, channel: $channel, reply: $reply, renote: $renote, note: $note, noteCreationMode: $noteCreationMode}'; + } } /// generated route for -/// [SeveralAccountGeneralSettingsPage] -class SeveralAccountGeneralSettingsRoute - extends PageRouteInfo { - SeveralAccountGeneralSettingsRoute({ +/// [NoteDetailPage] +class NoteDetailRoute extends PageRouteInfo { + NoteDetailRoute({ Key? key, + required Note note, required Account account, List? children, }) : super( - SeveralAccountGeneralSettingsRoute.name, - args: SeveralAccountGeneralSettingsRouteArgs( + NoteDetailRoute.name, + args: NoteDetailRouteArgs( key: key, + note: note, account: account, ), initialChildren: children, ); - static const String name = 'SeveralAccountGeneralSettingsRoute'; + static const String name = 'NoteDetailRoute'; - static const PageInfo page = - PageInfo(name); + static const PageInfo page = + PageInfo(name); } -class SeveralAccountGeneralSettingsRouteArgs { - const SeveralAccountGeneralSettingsRouteArgs({ +class NoteDetailRouteArgs { + const NoteDetailRouteArgs({ this.key, + required this.note, required this.account, }); final Key? key; + final Note note; + final Account account; @override String toString() { - return 'SeveralAccountGeneralSettingsRouteArgs{key: $key, account: $account}'; + return 'NoteDetailRouteArgs{key: $key, note: $note, account: $account}'; } } /// generated route for -/// [SeveralAccountSettingsPage] -class SeveralAccountSettingsRoute - extends PageRouteInfo { - SeveralAccountSettingsRoute({ +/// [NotificationPage] +class NotificationRoute extends PageRouteInfo { + NotificationRoute({ Key? key, required Account account, List? children, }) : super( - SeveralAccountSettingsRoute.name, - args: SeveralAccountSettingsRouteArgs( + NotificationRoute.name, + args: NotificationRouteArgs( key: key, account: account, ), initialChildren: children, ); - static const String name = 'SeveralAccountSettingsRoute'; + static const String name = 'NotificationRoute'; - static const PageInfo page = - PageInfo(name); + static const PageInfo page = + PageInfo(name); } -class SeveralAccountSettingsRouteArgs { - const SeveralAccountSettingsRouteArgs({ +class NotificationRouteArgs { + const NotificationRouteArgs({ this.key, required this.account, }); @@ -1076,272 +1094,284 @@ class SeveralAccountSettingsRouteArgs { @override String toString() { - return 'SeveralAccountSettingsRouteArgs{key: $key, account: $account}'; + return 'NotificationRouteArgs{key: $key, account: $account}'; } } /// generated route for -/// [InstanceMutePage] -class InstanceMuteRoute extends PageRouteInfo { - InstanceMuteRoute({ - Key? key, +/// [PhotoEditPage] +class PhotoEditRoute extends PageRouteInfo { + PhotoEditRoute({ required Account account, + required MisskeyPostFile file, + required void Function(Uint8List) onSubmit, + Key? key, List? children, }) : super( - InstanceMuteRoute.name, - args: InstanceMuteRouteArgs( - key: key, + PhotoEditRoute.name, + args: PhotoEditRouteArgs( account: account, + file: file, + onSubmit: onSubmit, + key: key, ), initialChildren: children, ); - static const String name = 'InstanceMuteRoute'; + static const String name = 'PhotoEditRoute'; - static const PageInfo page = - PageInfo(name); + static const PageInfo page = + PageInfo(name); } -class InstanceMuteRouteArgs { - const InstanceMuteRouteArgs({ - this.key, +class PhotoEditRouteArgs { + const PhotoEditRouteArgs({ required this.account, + required this.file, + required this.onSubmit, + this.key, }); - final Key? key; - final Account account; + final MisskeyPostFile file; + + final void Function(Uint8List) onSubmit; + + final Key? key; + @override String toString() { - return 'InstanceMuteRouteArgs{key: $key, account: $account}'; + return 'PhotoEditRouteArgs{account: $account, file: $file, onSubmit: $onSubmit, key: $key}'; } } /// generated route for -/// [HardMutePage] -class HardMuteRoute extends PageRouteInfo { - HardMuteRoute({ +/// [SearchPage] +class SearchRoute extends PageRouteInfo { + SearchRoute({ Key? key, + String? initialSearchText, required Account account, List? children, }) : super( - HardMuteRoute.name, - args: HardMuteRouteArgs( + SearchRoute.name, + args: SearchRouteArgs( key: key, + initialSearchText: initialSearchText, account: account, ), initialChildren: children, ); - static const String name = 'HardMuteRoute'; + static const String name = 'SearchRoute'; - static const PageInfo page = - PageInfo(name); + static const PageInfo page = PageInfo(name); } -class HardMuteRouteArgs { - const HardMuteRouteArgs({ +class SearchRouteArgs { + const SearchRouteArgs({ this.key, + this.initialSearchText, required this.account, }); final Key? key; + final String? initialSearchText; + final Account account; - @override - String toString() { - return 'HardMuteRouteArgs{key: $key, account: $account}'; - } + @override + String toString() { + return 'SearchRouteArgs{key: $key, initialSearchText: $initialSearchText, account: $account}'; + } +} + +/// generated route for +/// [AccountListPage] +class AccountListRoute extends PageRouteInfo { + const AccountListRoute({List? children}) + : super( + AccountListRoute.name, + initialChildren: children, + ); + + static const String name = 'AccountListRoute'; + + static const PageInfo page = PageInfo(name); +} + +/// generated route for +/// [AppInfoPage] +class AppInfoRoute extends PageRouteInfo { + const AppInfoRoute({List? children}) + : super( + AppInfoRoute.name, + initialChildren: children, + ); + + static const String name = 'AppInfoRoute'; + + static const PageInfo page = PageInfo(name); } /// generated route for -/// [ReactionDeckPage] -class ReactionDeckRoute extends PageRouteInfo { - ReactionDeckRoute({ - Key? key, - required Account account, - List? children, - }) : super( - ReactionDeckRoute.name, - args: ReactionDeckRouteArgs( - key: key, - account: account, - ), +/// [GeneralSettingsPage] +class GeneralSettingsRoute extends PageRouteInfo { + const GeneralSettingsRoute({List? children}) + : super( + GeneralSettingsRoute.name, initialChildren: children, ); - static const String name = 'ReactionDeckRoute'; + static const String name = 'GeneralSettingsRoute'; - static const PageInfo page = - PageInfo(name); + static const PageInfo page = PageInfo(name); } -class ReactionDeckRouteArgs { - const ReactionDeckRouteArgs({ - this.key, - required this.account, - }); - - final Key? key; +/// generated route for +/// [ImportExportPage] +class ImportExportRoute extends PageRouteInfo { + const ImportExportRoute({List? children}) + : super( + ImportExportRoute.name, + initialChildren: children, + ); - final Account account; + static const String name = 'ImportExportRoute'; - @override - String toString() { - return 'ReactionDeckRouteArgs{key: $key, account: $account}'; - } + static const PageInfo page = PageInfo(name); } /// generated route for -/// [UsersListTimelinePage] -class UsersListTimelineRoute extends PageRouteInfo { - UsersListTimelineRoute({ - required Account account, - required String listId, - Key? key, - List? children, - }) : super( - UsersListTimelineRoute.name, - args: UsersListTimelineRouteArgs( - account: account, - listId: listId, - key: key, - ), +/// [SettingsPage] +class SettingsRoute extends PageRouteInfo { + const SettingsRoute({List? children}) + : super( + SettingsRoute.name, initialChildren: children, ); - static const String name = 'UsersListTimelineRoute'; + static const String name = 'SettingsRoute'; - static const PageInfo page = - PageInfo(name); + static const PageInfo page = PageInfo(name); } -class UsersListTimelineRouteArgs { - const UsersListTimelineRouteArgs({ - required this.account, - required this.listId, - this.key, - }); - - final Account account; - - final String listId; +/// generated route for +/// [TabSettingsListPage] +class TabSettingsListRoute extends PageRouteInfo { + const TabSettingsListRoute({List? children}) + : super( + TabSettingsListRoute.name, + initialChildren: children, + ); - final Key? key; + static const String name = 'TabSettingsListRoute'; - @override - String toString() { - return 'UsersListTimelineRouteArgs{account: $account, listId: $listId, key: $key}'; - } + static const PageInfo page = PageInfo(name); } /// generated route for -/// [UsersListPage] -class UsersListRoute extends PageRouteInfo { - UsersListRoute({ - required Account account, +/// [TabSettingsPage] +class TabSettingsRoute extends PageRouteInfo { + TabSettingsRoute({ Key? key, + int? tabIndex, List? children, }) : super( - UsersListRoute.name, - args: UsersListRouteArgs( - account: account, + TabSettingsRoute.name, + args: TabSettingsRouteArgs( key: key, + tabIndex: tabIndex, ), initialChildren: children, ); - static const String name = 'UsersListRoute'; + static const String name = 'TabSettingsRoute'; - static const PageInfo page = - PageInfo(name); + static const PageInfo page = + PageInfo(name); } -class UsersListRouteArgs { - const UsersListRouteArgs({ - required this.account, +class TabSettingsRouteArgs { + const TabSettingsRouteArgs({ this.key, + this.tabIndex, }); - final Account account; - final Key? key; + final int? tabIndex; + @override String toString() { - return 'UsersListRouteArgs{account: $account, key: $key}'; + return 'TabSettingsRouteArgs{key: $key, tabIndex: $tabIndex}'; } } /// generated route for -/// [ChannelDetailPage] -class ChannelDetailRoute extends PageRouteInfo { - ChannelDetailRoute({ +/// [HardMutePage] +class HardMuteRoute extends PageRouteInfo { + HardMuteRoute({ Key? key, required Account account, - required String channelId, List? children, }) : super( - ChannelDetailRoute.name, - args: ChannelDetailRouteArgs( + HardMuteRoute.name, + args: HardMuteRouteArgs( key: key, account: account, - channelId: channelId, ), initialChildren: children, ); - static const String name = 'ChannelDetailRoute'; + static const String name = 'HardMuteRoute'; - static const PageInfo page = - PageInfo(name); + static const PageInfo page = + PageInfo(name); } -class ChannelDetailRouteArgs { - const ChannelDetailRouteArgs({ +class HardMuteRouteArgs { + const HardMuteRouteArgs({ this.key, required this.account, - required this.channelId, }); final Key? key; final Account account; - final String channelId; - @override String toString() { - return 'ChannelDetailRouteArgs{key: $key, account: $account, channelId: $channelId}'; + return 'HardMuteRouteArgs{key: $key, account: $account}'; } } /// generated route for -/// [ChannelsPage] -class ChannelsRoute extends PageRouteInfo { - ChannelsRoute({ +/// [InstanceMutePage] +class InstanceMuteRoute extends PageRouteInfo { + InstanceMuteRoute({ Key? key, required Account account, List? children, }) : super( - ChannelsRoute.name, - args: ChannelsRouteArgs( + InstanceMuteRoute.name, + args: InstanceMuteRouteArgs( key: key, account: account, ), initialChildren: children, ); - static const String name = 'ChannelsRoute'; + static const String name = 'InstanceMuteRoute'; - static const PageInfo page = - PageInfo(name); + static const PageInfo page = + PageInfo(name); } -class ChannelsRouteArgs { - const ChannelsRouteArgs({ +class InstanceMuteRouteArgs { + const InstanceMuteRouteArgs({ this.key, required this.account, }); @@ -1352,135 +1382,123 @@ class ChannelsRouteArgs { @override String toString() { - return 'ChannelsRouteArgs{key: $key, account: $account}'; + return 'InstanceMuteRouteArgs{key: $key, account: $account}'; } } /// generated route for -/// [FederationPage] -class FederationRoute extends PageRouteInfo { - FederationRoute({ +/// [ReactionDeckPage] +class ReactionDeckRoute extends PageRouteInfo { + ReactionDeckRoute({ Key? key, required Account account, - required String host, List? children, }) : super( - FederationRoute.name, - args: FederationRouteArgs( + ReactionDeckRoute.name, + args: ReactionDeckRouteArgs( key: key, account: account, - host: host, ), initialChildren: children, ); - static const String name = 'FederationRoute'; + static const String name = 'ReactionDeckRoute'; - static const PageInfo page = - PageInfo(name); + static const PageInfo page = + PageInfo(name); } -class FederationRouteArgs { - const FederationRouteArgs({ +class ReactionDeckRouteArgs { + const ReactionDeckRouteArgs({ this.key, required this.account, - required this.host, }); final Key? key; final Account account; - final String host; - @override String toString() { - return 'FederationRouteArgs{key: $key, account: $account, host: $host}'; + return 'ReactionDeckRouteArgs{key: $key, account: $account}'; } } /// generated route for -/// [NoteDetailPage] -class NoteDetailRoute extends PageRouteInfo { - NoteDetailRoute({ +/// [SeveralAccountGeneralSettingsPage] +class SeveralAccountGeneralSettingsRoute + extends PageRouteInfo { + SeveralAccountGeneralSettingsRoute({ Key? key, - required Note note, required Account account, List? children, }) : super( - NoteDetailRoute.name, - args: NoteDetailRouteArgs( + SeveralAccountGeneralSettingsRoute.name, + args: SeveralAccountGeneralSettingsRouteArgs( key: key, - note: note, account: account, ), initialChildren: children, ); - static const String name = 'NoteDetailRoute'; + static const String name = 'SeveralAccountGeneralSettingsRoute'; - static const PageInfo page = - PageInfo(name); + static const PageInfo page = + PageInfo(name); } -class NoteDetailRouteArgs { - const NoteDetailRouteArgs({ +class SeveralAccountGeneralSettingsRouteArgs { + const SeveralAccountGeneralSettingsRouteArgs({ this.key, - required this.note, required this.account, }); final Key? key; - final Note note; - final Account account; @override String toString() { - return 'NoteDetailRouteArgs{key: $key, note: $note, account: $account}'; + return 'SeveralAccountGeneralSettingsRouteArgs{key: $key, account: $account}'; } } /// generated route for -/// [SearchPage] -class SearchRoute extends PageRouteInfo { - SearchRoute({ +/// [SeveralAccountSettingsPage] +class SeveralAccountSettingsRoute + extends PageRouteInfo { + SeveralAccountSettingsRoute({ Key? key, - String? initialSearchText, required Account account, List? children, }) : super( - SearchRoute.name, - args: SearchRouteArgs( + SeveralAccountSettingsRoute.name, + args: SeveralAccountSettingsRouteArgs( key: key, - initialSearchText: initialSearchText, account: account, ), initialChildren: children, ); - static const String name = 'SearchRoute'; + static const String name = 'SeveralAccountSettingsRoute'; - static const PageInfo page = PageInfo(name); + static const PageInfo page = + PageInfo(name); } - -class SearchRouteArgs { - const SearchRouteArgs({ + +class SeveralAccountSettingsRouteArgs { + const SeveralAccountSettingsRouteArgs({ this.key, - this.initialSearchText, required this.account, }); final Key? key; - final String? initialSearchText; - final Account account; @override String toString() { - return 'SearchRouteArgs{key: $key, initialSearchText: $initialSearchText, account: $account}'; + return 'SeveralAccountSettingsRouteArgs{key: $key, account: $account}'; } } @@ -1529,205 +1547,225 @@ class SharingAccountSelectRouteArgs { } /// generated route for -/// [ImportExportPage] -class ImportExportRoute extends PageRouteInfo { - const ImportExportRoute({List? children}) - : super( - ImportExportRoute.name, - initialChildren: children, - ); - - static const String name = 'ImportExportRoute'; - - static const PageInfo page = PageInfo(name); -} - -/// generated route for -/// [GeneralSettingsPage] -class GeneralSettingsRoute extends PageRouteInfo { - const GeneralSettingsRoute({List? children}) +/// [SplashPage] +class SplashRoute extends PageRouteInfo { + const SplashRoute({List? children}) : super( - GeneralSettingsRoute.name, + SplashRoute.name, initialChildren: children, ); - static const String name = 'GeneralSettingsRoute'; + static const String name = 'SplashRoute'; static const PageInfo page = PageInfo(name); } /// generated route for -/// [TabSettingsPage] -class TabSettingsRoute extends PageRouteInfo { - TabSettingsRoute({ +/// [UsersListPage] +class UsersListRoute extends PageRouteInfo { + UsersListRoute({ + required Account account, Key? key, - int? tabIndex, List? children, }) : super( - TabSettingsRoute.name, - args: TabSettingsRouteArgs( + UsersListRoute.name, + args: UsersListRouteArgs( + account: account, key: key, - tabIndex: tabIndex, ), initialChildren: children, ); - static const String name = 'TabSettingsRoute'; + static const String name = 'UsersListRoute'; - static const PageInfo page = - PageInfo(name); + static const PageInfo page = + PageInfo(name); } -class TabSettingsRouteArgs { - const TabSettingsRouteArgs({ +class UsersListRouteArgs { + const UsersListRouteArgs({ + required this.account, this.key, - this.tabIndex, }); - final Key? key; + final Account account; - final int? tabIndex; + final Key? key; @override String toString() { - return 'TabSettingsRouteArgs{key: $key, tabIndex: $tabIndex}'; + return 'UsersListRouteArgs{account: $account, key: $key}'; } } /// generated route for -/// [TabSettingsListPage] -class TabSettingsListRoute extends PageRouteInfo { - const TabSettingsListRoute({List? children}) - : super( - TabSettingsListRoute.name, +/// [UsersListTimelinePage] +class UsersListTimelineRoute extends PageRouteInfo { + UsersListTimelineRoute({ + required Account account, + required String listId, + Key? key, + List? children, + }) : super( + UsersListTimelineRoute.name, + args: UsersListTimelineRouteArgs( + account: account, + listId: listId, + key: key, + ), initialChildren: children, ); - static const String name = 'TabSettingsListRoute'; + static const String name = 'UsersListTimelineRoute'; - static const PageInfo page = PageInfo(name); + static const PageInfo page = + PageInfo(name); } -/// generated route for -/// [AppInfoPage] -class AppInfoRoute extends PageRouteInfo { - const AppInfoRoute({List? children}) - : super( - AppInfoRoute.name, - initialChildren: children, - ); +class UsersListTimelineRouteArgs { + const UsersListTimelineRouteArgs({ + required this.account, + required this.listId, + this.key, + }); - static const String name = 'AppInfoRoute'; + final Account account; - static const PageInfo page = PageInfo(name); + final String listId; + + final Key? key; + + @override + String toString() { + return 'UsersListTimelineRouteArgs{account: $account, listId: $listId, key: $key}'; + } } /// generated route for -/// [SettingsPage] -class SettingsRoute extends PageRouteInfo { - const SettingsRoute({List? children}) - : super( - SettingsRoute.name, +/// [UserFolloweePage] +class UserFolloweeRoute extends PageRouteInfo { + UserFolloweeRoute({ + Key? key, + required String userId, + required Account account, + List? children, + }) : super( + UserFolloweeRoute.name, + args: UserFolloweeRouteArgs( + key: key, + userId: userId, + account: account, + ), initialChildren: children, ); - static const String name = 'SettingsRoute'; + static const String name = 'UserFolloweeRoute'; - static const PageInfo page = PageInfo(name); + static const PageInfo page = + PageInfo(name); } -/// generated route for -/// [AccountListPage] -class AccountListRoute extends PageRouteInfo { - const AccountListRoute({List? children}) - : super( - AccountListRoute.name, - initialChildren: children, - ); +class UserFolloweeRouteArgs { + const UserFolloweeRouteArgs({ + this.key, + required this.userId, + required this.account, + }); - static const String name = 'AccountListRoute'; + final Key? key; - static const PageInfo page = PageInfo(name); + final String userId; + + final Account account; + + @override + String toString() { + return 'UserFolloweeRouteArgs{key: $key, userId: $userId, account: $account}'; + } } /// generated route for -/// [ExploreRoleUsersPage] -class ExploreRoleUsersRoute extends PageRouteInfo { - ExploreRoleUsersRoute({ +/// [UserFollowerPage] +class UserFollowerRoute extends PageRouteInfo { + UserFollowerRoute({ Key? key, - required RolesListResponse item, + required String userId, required Account account, List? children, }) : super( - ExploreRoleUsersRoute.name, - args: ExploreRoleUsersRouteArgs( + UserFollowerRoute.name, + args: UserFollowerRouteArgs( key: key, - item: item, + userId: userId, account: account, ), initialChildren: children, ); - static const String name = 'ExploreRoleUsersRoute'; + static const String name = 'UserFollowerRoute'; - static const PageInfo page = - PageInfo(name); + static const PageInfo page = + PageInfo(name); } -class ExploreRoleUsersRouteArgs { - const ExploreRoleUsersRouteArgs({ +class UserFollowerRouteArgs { + const UserFollowerRouteArgs({ this.key, - required this.item, + required this.userId, required this.account, }); final Key? key; - final RolesListResponse item; + final String userId; final Account account; @override String toString() { - return 'ExploreRoleUsersRouteArgs{key: $key, item: $item, account: $account}'; + return 'UserFollowerRouteArgs{key: $key, userId: $userId, account: $account}'; } } /// generated route for -/// [ExplorePage] -class ExploreRoute extends PageRouteInfo { - ExploreRoute({ +/// [UserPage] +class UserRoute extends PageRouteInfo { + UserRoute({ Key? key, + required String userId, required Account account, List? children, }) : super( - ExploreRoute.name, - args: ExploreRouteArgs( + UserRoute.name, + args: UserRouteArgs( key: key, + userId: userId, account: account, ), initialChildren: children, ); - static const String name = 'ExploreRoute'; + static const String name = 'UserRoute'; - static const PageInfo page = - PageInfo(name); + static const PageInfo page = PageInfo(name); } -class ExploreRouteArgs { - const ExploreRouteArgs({ +class UserRouteArgs { + const UserRouteArgs({ this.key, + required this.userId, required this.account, }); final Key? key; + final String userId; + final Account account; @override String toString() { - return 'ExploreRouteArgs{key: $key, account: $account}'; + return 'UserRouteArgs{key: $key, userId: $userId, account: $account}'; } } @@ -1768,41 +1806,3 @@ class TimeLineRouteArgs { return 'TimeLineRouteArgs{key: $key, initialTabSetting: $initialTabSetting}'; } } - -/// generated route for -/// [FavoritedNotePage] -class FavoritedNoteRoute extends PageRouteInfo { - FavoritedNoteRoute({ - Key? key, - required Account account, - List? children, - }) : super( - FavoritedNoteRoute.name, - args: FavoritedNoteRouteArgs( - key: key, - account: account, - ), - initialChildren: children, - ); - - static const String name = 'FavoritedNoteRoute'; - - static const PageInfo page = - PageInfo(name); -} - -class FavoritedNoteRouteArgs { - const FavoritedNoteRouteArgs({ - this.key, - required this.account, - }); - - final Key? key; - - final Account account; - - @override - String toString() { - return 'FavoritedNoteRouteArgs{key: $key, account: $account}'; - } -} diff --git a/test/test_util/mock.dart b/test/test_util/mock.dart index 2fbfbbf6c..91f2e15f5 100644 --- a/test/test_util/mock.dart +++ b/test/test_util/mock.dart @@ -25,6 +25,7 @@ import 'package:plugin_platform_interface/plugin_platform_interface.dart'; MockSpec(), MockSpec(), MockSpec(), + MockSpec(), // プラグインとか MockSpec(), diff --git a/test/test_util/mock.mocks.dart b/test/test_util/mock.mocks.dart index 7dc27ddd4..1784e3506 100644 --- a/test/test_util/mock.mocks.dart +++ b/test/test_util/mock.mocks.dart @@ -459,8 +459,8 @@ class _FakeDriveFile_38 extends _i1.SmartFake implements _i6.DriveFile { ); } -class _FakeBaseOptions_39 extends _i1.SmartFake implements _i9.BaseOptions { - _FakeBaseOptions_39( +class _FakeHashtag_39 extends _i1.SmartFake implements _i6.Hashtag { + _FakeHashtag_39( Object parent, Invocation parentInvocation, ) : super( @@ -469,9 +469,19 @@ class _FakeBaseOptions_39 extends _i1.SmartFake implements _i9.BaseOptions { ); } -class _FakeHttpClientAdapter_40 extends _i1.SmartFake +class _FakeBaseOptions_40 extends _i1.SmartFake implements _i9.BaseOptions { + _FakeBaseOptions_40( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeHttpClientAdapter_41 extends _i1.SmartFake implements _i10.HttpClientAdapter { - _FakeHttpClientAdapter_40( + _FakeHttpClientAdapter_41( Object parent, Invocation parentInvocation, ) : super( @@ -480,8 +490,8 @@ class _FakeHttpClientAdapter_40 extends _i1.SmartFake ); } -class _FakeTransformer_41 extends _i1.SmartFake implements _i11.Transformer { - _FakeTransformer_41( +class _FakeTransformer_42 extends _i1.SmartFake implements _i11.Transformer { + _FakeTransformer_42( Object parent, Invocation parentInvocation, ) : super( @@ -490,8 +500,8 @@ class _FakeTransformer_41 extends _i1.SmartFake implements _i11.Transformer { ); } -class _FakeInterceptors_42 extends _i1.SmartFake implements _i12.Interceptors { - _FakeInterceptors_42( +class _FakeInterceptors_43 extends _i1.SmartFake implements _i12.Interceptors { + _FakeInterceptors_43( Object parent, Invocation parentInvocation, ) : super( @@ -500,8 +510,8 @@ class _FakeInterceptors_42 extends _i1.SmartFake implements _i12.Interceptors { ); } -class _FakeResponse_43 extends _i1.SmartFake implements _i13.Response { - _FakeResponse_43( +class _FakeResponse_44 extends _i1.SmartFake implements _i13.Response { + _FakeResponse_44( Object parent, Invocation parentInvocation, ) : super( @@ -2992,6 +3002,81 @@ class MockMisskeyDriveFiles extends _i1.Mock implements _i6.MisskeyDriveFiles { ) as _i16.Future>); } +/// A class which mocks [MisskeyHashtags]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockMisskeyHashtags extends _i1.Mock implements _i6.MisskeyHashtags { + @override + _i16.Future> list(_i6.HashtagsListRequest? request) => + (super.noSuchMethod( + Invocation.method( + #list, + [request], + ), + returnValue: _i16.Future>.value(<_i6.Hashtag>[]), + returnValueForMissingStub: + _i16.Future>.value(<_i6.Hashtag>[]), + ) as _i16.Future>); + @override + _i16.Future> search(_i6.HashtagsSearchRequest? request) => + (super.noSuchMethod( + Invocation.method( + #search, + [request], + ), + returnValue: _i16.Future>.value([]), + returnValueForMissingStub: + _i16.Future>.value([]), + ) as _i16.Future>); + @override + _i16.Future<_i6.Hashtag> show(_i6.HashtagsShowRequest? request) => + (super.noSuchMethod( + Invocation.method( + #show, + [request], + ), + returnValue: _i16.Future<_i6.Hashtag>.value(_FakeHashtag_39( + this, + Invocation.method( + #show, + [request], + ), + )), + returnValueForMissingStub: + _i16.Future<_i6.Hashtag>.value(_FakeHashtag_39( + this, + Invocation.method( + #show, + [request], + ), + )), + ) as _i16.Future<_i6.Hashtag>); + @override + _i16.Future> trend() => + (super.noSuchMethod( + Invocation.method( + #trend, + [], + ), + returnValue: _i16.Future>.value( + <_i6.HashtagsTrendResponse>[]), + returnValueForMissingStub: + _i16.Future>.value( + <_i6.HashtagsTrendResponse>[]), + ) as _i16.Future>); + @override + _i16.Future> users(_i6.HashtagsUsersRequest? request) => + (super.noSuchMethod( + Invocation.method( + #users, + [request], + ), + returnValue: _i16.Future>.value(<_i6.User>[]), + returnValueForMissingStub: + _i16.Future>.value(<_i6.User>[]), + ) as _i16.Future>); +} + /// A class which mocks [Dio]. /// /// See the documentation for Mockito's code generation for more information. @@ -2999,11 +3084,11 @@ class MockDio extends _i1.Mock implements _i25.Dio { @override _i9.BaseOptions get options => (super.noSuchMethod( Invocation.getter(#options), - returnValue: _FakeBaseOptions_39( + returnValue: _FakeBaseOptions_40( this, Invocation.getter(#options), ), - returnValueForMissingStub: _FakeBaseOptions_39( + returnValueForMissingStub: _FakeBaseOptions_40( this, Invocation.getter(#options), ), @@ -3019,11 +3104,11 @@ class MockDio extends _i1.Mock implements _i25.Dio { @override _i10.HttpClientAdapter get httpClientAdapter => (super.noSuchMethod( Invocation.getter(#httpClientAdapter), - returnValue: _FakeHttpClientAdapter_40( + returnValue: _FakeHttpClientAdapter_41( this, Invocation.getter(#httpClientAdapter), ), - returnValueForMissingStub: _FakeHttpClientAdapter_40( + returnValueForMissingStub: _FakeHttpClientAdapter_41( this, Invocation.getter(#httpClientAdapter), ), @@ -3040,11 +3125,11 @@ class MockDio extends _i1.Mock implements _i25.Dio { @override _i11.Transformer get transformer => (super.noSuchMethod( Invocation.getter(#transformer), - returnValue: _FakeTransformer_41( + returnValue: _FakeTransformer_42( this, Invocation.getter(#transformer), ), - returnValueForMissingStub: _FakeTransformer_41( + returnValueForMissingStub: _FakeTransformer_42( this, Invocation.getter(#transformer), ), @@ -3060,11 +3145,11 @@ class MockDio extends _i1.Mock implements _i25.Dio { @override _i12.Interceptors get interceptors => (super.noSuchMethod( Invocation.getter(#interceptors), - returnValue: _FakeInterceptors_42( + returnValue: _FakeInterceptors_43( this, Invocation.getter(#interceptors), ), - returnValueForMissingStub: _FakeInterceptors_42( + returnValueForMissingStub: _FakeInterceptors_43( this, Invocation.getter(#interceptors), ), @@ -3099,7 +3184,7 @@ class MockDio extends _i1.Mock implements _i25.Dio { #onReceiveProgress: onReceiveProgress, }, ), - returnValue: _i16.Future<_i13.Response>.value(_FakeResponse_43( + returnValue: _i16.Future<_i13.Response>.value(_FakeResponse_44( this, Invocation.method( #get, @@ -3114,7 +3199,7 @@ class MockDio extends _i1.Mock implements _i25.Dio { ), )), returnValueForMissingStub: - _i16.Future<_i13.Response>.value(_FakeResponse_43( + _i16.Future<_i13.Response>.value(_FakeResponse_44( this, Invocation.method( #get, @@ -3148,7 +3233,7 @@ class MockDio extends _i1.Mock implements _i25.Dio { #onReceiveProgress: onReceiveProgress, }, ), - returnValue: _i16.Future<_i13.Response>.value(_FakeResponse_43( + returnValue: _i16.Future<_i13.Response>.value(_FakeResponse_44( this, Invocation.method( #getUri, @@ -3162,7 +3247,7 @@ class MockDio extends _i1.Mock implements _i25.Dio { ), )), returnValueForMissingStub: - _i16.Future<_i13.Response>.value(_FakeResponse_43( + _i16.Future<_i13.Response>.value(_FakeResponse_44( this, Invocation.method( #getUri, @@ -3199,7 +3284,7 @@ class MockDio extends _i1.Mock implements _i25.Dio { #onReceiveProgress: onReceiveProgress, }, ), - returnValue: _i16.Future<_i13.Response>.value(_FakeResponse_43( + returnValue: _i16.Future<_i13.Response>.value(_FakeResponse_44( this, Invocation.method( #post, @@ -3215,7 +3300,7 @@ class MockDio extends _i1.Mock implements _i25.Dio { ), )), returnValueForMissingStub: - _i16.Future<_i13.Response>.value(_FakeResponse_43( + _i16.Future<_i13.Response>.value(_FakeResponse_44( this, Invocation.method( #post, @@ -3252,7 +3337,7 @@ class MockDio extends _i1.Mock implements _i25.Dio { #onReceiveProgress: onReceiveProgress, }, ), - returnValue: _i16.Future<_i13.Response>.value(_FakeResponse_43( + returnValue: _i16.Future<_i13.Response>.value(_FakeResponse_44( this, Invocation.method( #postUri, @@ -3267,7 +3352,7 @@ class MockDio extends _i1.Mock implements _i25.Dio { ), )), returnValueForMissingStub: - _i16.Future<_i13.Response>.value(_FakeResponse_43( + _i16.Future<_i13.Response>.value(_FakeResponse_44( this, Invocation.method( #postUri, @@ -3305,7 +3390,7 @@ class MockDio extends _i1.Mock implements _i25.Dio { #onReceiveProgress: onReceiveProgress, }, ), - returnValue: _i16.Future<_i13.Response>.value(_FakeResponse_43( + returnValue: _i16.Future<_i13.Response>.value(_FakeResponse_44( this, Invocation.method( #put, @@ -3321,7 +3406,7 @@ class MockDio extends _i1.Mock implements _i25.Dio { ), )), returnValueForMissingStub: - _i16.Future<_i13.Response>.value(_FakeResponse_43( + _i16.Future<_i13.Response>.value(_FakeResponse_44( this, Invocation.method( #put, @@ -3358,7 +3443,7 @@ class MockDio extends _i1.Mock implements _i25.Dio { #onReceiveProgress: onReceiveProgress, }, ), - returnValue: _i16.Future<_i13.Response>.value(_FakeResponse_43( + returnValue: _i16.Future<_i13.Response>.value(_FakeResponse_44( this, Invocation.method( #putUri, @@ -3373,7 +3458,7 @@ class MockDio extends _i1.Mock implements _i25.Dio { ), )), returnValueForMissingStub: - _i16.Future<_i13.Response>.value(_FakeResponse_43( + _i16.Future<_i13.Response>.value(_FakeResponse_44( this, Invocation.method( #putUri, @@ -3407,7 +3492,7 @@ class MockDio extends _i1.Mock implements _i25.Dio { #cancelToken: cancelToken, }, ), - returnValue: _i16.Future<_i13.Response>.value(_FakeResponse_43( + returnValue: _i16.Future<_i13.Response>.value(_FakeResponse_44( this, Invocation.method( #head, @@ -3421,7 +3506,7 @@ class MockDio extends _i1.Mock implements _i25.Dio { ), )), returnValueForMissingStub: - _i16.Future<_i13.Response>.value(_FakeResponse_43( + _i16.Future<_i13.Response>.value(_FakeResponse_44( this, Invocation.method( #head, @@ -3452,7 +3537,7 @@ class MockDio extends _i1.Mock implements _i25.Dio { #cancelToken: cancelToken, }, ), - returnValue: _i16.Future<_i13.Response>.value(_FakeResponse_43( + returnValue: _i16.Future<_i13.Response>.value(_FakeResponse_44( this, Invocation.method( #headUri, @@ -3465,7 +3550,7 @@ class MockDio extends _i1.Mock implements _i25.Dio { ), )), returnValueForMissingStub: - _i16.Future<_i13.Response>.value(_FakeResponse_43( + _i16.Future<_i13.Response>.value(_FakeResponse_44( this, Invocation.method( #headUri, @@ -3497,7 +3582,7 @@ class MockDio extends _i1.Mock implements _i25.Dio { #cancelToken: cancelToken, }, ), - returnValue: _i16.Future<_i13.Response>.value(_FakeResponse_43( + returnValue: _i16.Future<_i13.Response>.value(_FakeResponse_44( this, Invocation.method( #delete, @@ -3511,7 +3596,7 @@ class MockDio extends _i1.Mock implements _i25.Dio { ), )), returnValueForMissingStub: - _i16.Future<_i13.Response>.value(_FakeResponse_43( + _i16.Future<_i13.Response>.value(_FakeResponse_44( this, Invocation.method( #delete, @@ -3542,7 +3627,7 @@ class MockDio extends _i1.Mock implements _i25.Dio { #cancelToken: cancelToken, }, ), - returnValue: _i16.Future<_i13.Response>.value(_FakeResponse_43( + returnValue: _i16.Future<_i13.Response>.value(_FakeResponse_44( this, Invocation.method( #deleteUri, @@ -3555,7 +3640,7 @@ class MockDio extends _i1.Mock implements _i25.Dio { ), )), returnValueForMissingStub: - _i16.Future<_i13.Response>.value(_FakeResponse_43( + _i16.Future<_i13.Response>.value(_FakeResponse_44( this, Invocation.method( #deleteUri, @@ -3591,7 +3676,7 @@ class MockDio extends _i1.Mock implements _i25.Dio { #onReceiveProgress: onReceiveProgress, }, ), - returnValue: _i16.Future<_i13.Response>.value(_FakeResponse_43( + returnValue: _i16.Future<_i13.Response>.value(_FakeResponse_44( this, Invocation.method( #patch, @@ -3607,7 +3692,7 @@ class MockDio extends _i1.Mock implements _i25.Dio { ), )), returnValueForMissingStub: - _i16.Future<_i13.Response>.value(_FakeResponse_43( + _i16.Future<_i13.Response>.value(_FakeResponse_44( this, Invocation.method( #patch, @@ -3644,7 +3729,7 @@ class MockDio extends _i1.Mock implements _i25.Dio { #onReceiveProgress: onReceiveProgress, }, ), - returnValue: _i16.Future<_i13.Response>.value(_FakeResponse_43( + returnValue: _i16.Future<_i13.Response>.value(_FakeResponse_44( this, Invocation.method( #patchUri, @@ -3659,7 +3744,7 @@ class MockDio extends _i1.Mock implements _i25.Dio { ), )), returnValueForMissingStub: - _i16.Future<_i13.Response>.value(_FakeResponse_43( + _i16.Future<_i13.Response>.value(_FakeResponse_44( this, Invocation.method( #patchUri, @@ -3704,7 +3789,7 @@ class MockDio extends _i1.Mock implements _i25.Dio { }, ), returnValue: - _i16.Future<_i13.Response>.value(_FakeResponse_43( + _i16.Future<_i13.Response>.value(_FakeResponse_44( this, Invocation.method( #download, @@ -3724,7 +3809,7 @@ class MockDio extends _i1.Mock implements _i25.Dio { ), )), returnValueForMissingStub: - _i16.Future<_i13.Response>.value(_FakeResponse_43( + _i16.Future<_i13.Response>.value(_FakeResponse_44( this, Invocation.method( #download, @@ -3772,7 +3857,7 @@ class MockDio extends _i1.Mock implements _i25.Dio { }, ), returnValue: - _i16.Future<_i13.Response>.value(_FakeResponse_43( + _i16.Future<_i13.Response>.value(_FakeResponse_44( this, Invocation.method( #downloadUri, @@ -3791,7 +3876,7 @@ class MockDio extends _i1.Mock implements _i25.Dio { ), )), returnValueForMissingStub: - _i16.Future<_i13.Response>.value(_FakeResponse_43( + _i16.Future<_i13.Response>.value(_FakeResponse_44( this, Invocation.method( #downloadUri, @@ -3833,7 +3918,7 @@ class MockDio extends _i1.Mock implements _i25.Dio { #onReceiveProgress: onReceiveProgress, }, ), - returnValue: _i16.Future<_i13.Response>.value(_FakeResponse_43( + returnValue: _i16.Future<_i13.Response>.value(_FakeResponse_44( this, Invocation.method( #request, @@ -3849,7 +3934,7 @@ class MockDio extends _i1.Mock implements _i25.Dio { ), )), returnValueForMissingStub: - _i16.Future<_i13.Response>.value(_FakeResponse_43( + _i16.Future<_i13.Response>.value(_FakeResponse_44( this, Invocation.method( #request, @@ -3886,7 +3971,7 @@ class MockDio extends _i1.Mock implements _i25.Dio { #onReceiveProgress: onReceiveProgress, }, ), - returnValue: _i16.Future<_i13.Response>.value(_FakeResponse_43( + returnValue: _i16.Future<_i13.Response>.value(_FakeResponse_44( this, Invocation.method( #requestUri, @@ -3901,7 +3986,7 @@ class MockDio extends _i1.Mock implements _i25.Dio { ), )), returnValueForMissingStub: - _i16.Future<_i13.Response>.value(_FakeResponse_43( + _i16.Future<_i13.Response>.value(_FakeResponse_44( this, Invocation.method( #requestUri, @@ -3923,7 +4008,7 @@ class MockDio extends _i1.Mock implements _i25.Dio { #fetch, [requestOptions], ), - returnValue: _i16.Future<_i13.Response>.value(_FakeResponse_43( + returnValue: _i16.Future<_i13.Response>.value(_FakeResponse_44( this, Invocation.method( #fetch, @@ -3931,7 +4016,7 @@ class MockDio extends _i1.Mock implements _i25.Dio { ), )), returnValueForMissingStub: - _i16.Future<_i13.Response>.value(_FakeResponse_43( + _i16.Future<_i13.Response>.value(_FakeResponse_44( this, Invocation.method( #fetch, diff --git a/test/view/note_create_page/note_create_page_test.dart b/test/view/note_create_page/note_create_page_test.dart index 6fa9ee20c..5aec6c230 100644 --- a/test/view/note_create_page/note_create_page_test.dart +++ b/test/view/note_create_page/note_create_page_test.dart @@ -1282,6 +1282,71 @@ void main() { .text, ":${TestData.customEmoji1.baseName}:"); }); + + testWidgets("MFMの関数名の入力補完が可能なこと", (tester) async { + await tester.pumpWidget( + ProviderScope( + child: DefaultRootWidget( + initialRoute: NoteCreateRoute(initialAccount: TestData.account), + ), + ), + ); + await tester.pumpAndSettle(); + await tester.tap(find.text(r"$[")); + await tester.pumpAndSettle(); + expect(find.text("tada"), findsOneWidget); + + await tester.enterText(find.byType(TextField).hitTestable(), r"$[r"); + await tester.pumpAndSettle(); + await tester.tap(find.text("rainbow")); + await tester.pumpAndSettle(); + expect( + tester + .textEditingController(find.byType(TextField).hitTestable()) + .text, + r"$[rainbow ", + ); + }); + + testWidgets("ハッシュタグの入力補完が可能なこと", (tester) async { + final mockMisskey = MockMisskey(); + final mockHashtags = MockMisskeyHashtags(); + when(mockMisskey.hashtags).thenReturn(mockHashtags); + when(mockHashtags.trend()).thenAnswer( + (_) async => [ + const HashtagsTrendResponse(tag: "abc", chart: [], usersCount: 0), + ], + ); + when(mockHashtags.search(any)).thenAnswer( + (_) async => ["def"], + ); + + await tester.pumpWidget( + ProviderScope( + overrides: [ + misskeyProvider.overrideWith((ref, arg) => mockMisskey) + ], + child: DefaultRootWidget( + initialRoute: NoteCreateRoute(initialAccount: TestData.account), + ), + ), + ); + await tester.pumpAndSettle(); + await tester.enterText(find.byType(TextField).hitTestable(), "#"); + await tester.pumpAndSettle(); + expect(find.text("abc"), findsOneWidget); + + await tester.enterText(find.byType(TextField).hitTestable(), "#d"); + await tester.pumpAndSettle(); + await tester.tap(find.text("def")); + await tester.pumpAndSettle(); + expect( + tester + .textEditingController(find.byType(TextField).hitTestable()) + .text, + "#def ", + ); + }); }); group("プレビュー", () {