Skip to content

Commit

Permalink
UserControlDialogからユーザーのノートを検索できるように
Browse files Browse the repository at this point in the history
  • Loading branch information
poppingmoon committed Sep 4, 2023
1 parent d74a30f commit ab2b2d7
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/view/user_page/user_control_dialog.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import 'package:auto_route/auto_route.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:miria/extensions/users_show_response_extension.dart';
import 'package:miria/model/account.dart';
import 'package:miria/model/note_search_condition.dart';
import 'package:miria/providers.dart';
import 'package:miria/router/app_router.dart';
import 'package:miria/view/common/error_notification.dart';
import 'package:miria/view/common/futurable.dart';
import 'package:misskey_dart/misskey_dart.dart';
Expand Down Expand Up @@ -170,6 +173,17 @@ class UserControlDialogState extends ConsumerState<UserControlDialog> {
Navigator.of(context).pop();
},
),
ListTile(
title: const Text("ノートを検索"),
onTap: () => context.pushRoute(
SearchRoute(
account: widget.account,
initialNoteSearchCondition: NoteSearchCondition(
user: widget.response.toUser(),
),
),
),
),
ListTile(
onTap: addToList,
title: const Text("リストに追加"),
Expand Down

0 comments on commit ab2b2d7

Please sign in to comment.