Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable no need functions #200

Merged
merged 2 commits into from
Jun 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions lib/pages/chat_list/chat_list_header.dart
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,12 @@ class ChatListHeader extends StatelessWidget implements PreferredSizeWidget {
),
child: ClientChooserButton(controller),
),
if (selectMode == SelectMode.select && controller.spaces.isNotEmpty)
IconButton(
tooltip: L10n.of(context)!.addToSpace,
icon: const Icon(Icons.workspaces_outlined),
onPressed: controller.addToSpace,
),
// if (selectMode == SelectMode.select && controller.spaces.isNotEmpty)
// IconButton(
// tooltip: L10n.of(context)!.addToSpace,
// icon: const Icon(Icons.workspaces_outlined),
// onPressed: controller.addToSpace,
// ),
if (selectMode == SelectMode.select)
IconButton(
tooltip: L10n.of(context)!.toggleUnread,
Expand Down
74 changes: 37 additions & 37 deletions lib/pages/chat_list/client_chooser_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,26 +28,26 @@ class ClientChooserButton extends StatelessWidget {
: 1,
);
return <PopupMenuEntry<Object>>[
PopupMenuItem(
value: SettingsAction.newStory,
child: Row(
children: [
const Icon(Icons.camera_outlined),
const SizedBox(width: 18),
Text(L10n.of(context)!.yourStory),
],
),
),
PopupMenuItem(
value: SettingsAction.invite,
child: Row(
children: [
Icon(Icons.adaptive.share_outlined),
const SizedBox(width: 18),
Text(L10n.of(context)!.inviteContact),
],
),
),
// PopupMenuItem(
// value: SettingsAction.newStory,
// child: Row(
// children: [
// const Icon(Icons.camera_outlined),
// const SizedBox(width: 18),
// Text(L10n.of(context)!.yourStory),
// ],
// ),
// ),
// PopupMenuItem(
// value: SettingsAction.invite,
// child: Row(
// children: [
// Icon(Icons.adaptive.share_outlined),
// const SizedBox(width: 18),
// Text(L10n.of(context)!.inviteContact),
// ],
// ),
// ),
PopupMenuItem(
value: SettingsAction.archive,
child: Row(
Expand Down Expand Up @@ -106,16 +106,16 @@ class ClientChooserButton extends StatelessWidget {
}
).toList(),
],
PopupMenuItem(
value: SettingsAction.addAccount,
child: Row(
children: [
const Icon(Icons.person_add_outlined),
const SizedBox(width: 18),
Text(L10n.of(context)!.addAccount),
],
),
),
// PopupMenuItem(
// value: SettingsAction.addAccount,
// child: Row(
// children: [
// const Icon(Icons.person_add_outlined),
// const SizedBox(width: 18),
// Text(L10n.of(context)!.addAccount),
// ],
// ),
// ),
];
}

Expand Down Expand Up @@ -364,13 +364,13 @@ class _ProfileWidgetState extends State<ProfileWidget> {
),
),
const SizedBox(width: 12),
IconButton(
icon: const Icon(Icons.edit_outlined),
onPressed: () => widget.controller.editBundlesForAccount(
widget.client.userID,
widget.bundle,
),
),
// IconButton(
// icon: const Icon(Icons.edit_outlined),
// onPressed: () => widget.controller.editBundlesForAccount(
// widget.client.userID,
// widget.bundle,
// ),
// ),
],
);
},
Expand Down