Skip to content

Commit

Permalink
UserControlDialogからユーザーのノートを検索できるように
Browse files Browse the repository at this point in the history
  • Loading branch information
poppingmoon committed Dec 19, 2023
1 parent 1cd5554 commit 443e37e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 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_dialog_handler.dart';
import 'package:miria/view/dialogs/simple_confirm_dialog.dart';
import 'package:miria/view/user_page/antenna_modal_sheet.dart';
Expand Down Expand Up @@ -212,6 +215,18 @@ class UserControlDialogState extends ConsumerState<UserControlDialog> {
.openUserInOtherAccount(context, widget.response.toUser())
.expectFailure(context),
),
ListTile(
leading: const Icon(Icons.search),
title: const Text("ノートを検索"),
onTap: () => context.pushRoute(
SearchRoute(
account: widget.account,
initialNoteSearchCondition: NoteSearchCondition(
user: widget.response.toUser(),
),
),
),
),
ListTile(
leading: const Icon(Icons.list),
title: const Text("リストに追加"),
Expand Down

0 comments on commit 443e37e

Please sign in to comment.