Skip to content

Commit cb21f39

Browse files
Paras UpadhayayParas Upadhayay
Paras Upadhayay
authored and
Paras Upadhayay
committed
add switch account icon
1 parent bf64923 commit cb21f39

File tree

5 files changed

+19
-14
lines changed

5 files changed

+19
-14
lines changed

assets/icons/ZulipIcons.ttf

196 Bytes
Binary file not shown.

assets/icons/switch_account.svg

Lines changed: 4 additions & 0 deletions
Loading

lib/widgets/home.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -540,10 +540,8 @@ class _SwitchAccountButton extends _MenuButton {
540540

541541
@override
542542
// TODO(design): choose an icon
543-
IconData? get icon => null;
543+
IconData? get icon => ZulipIcons.switch_account;
544544

545-
@override
546-
Widget buildLeading(BuildContext context) => const SizedBox.shrink();
547545

548546
@override
549547
String label(ZulipLocalizations zulipLocalizations) {

lib/widgets/icons.dart

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,14 +117,17 @@ abstract final class ZulipIcons {
117117
/// The Zulip custom icon "star_filled".
118118
static const IconData star_filled = IconData(0xf11f, fontFamily: "Zulip Icons");
119119

120+
/// The Zulip custom icon "switch_account".
121+
static const IconData switch_account = IconData(0xf120, fontFamily: "Zulip Icons");
122+
120123
/// The Zulip custom icon "topic".
121-
static const IconData topic = IconData(0xf120, fontFamily: "Zulip Icons");
124+
static const IconData topic = IconData(0xf121, fontFamily: "Zulip Icons");
122125

123126
/// The Zulip custom icon "unmute".
124-
static const IconData unmute = IconData(0xf121, fontFamily: "Zulip Icons");
127+
static const IconData unmute = IconData(0xf122, fontFamily: "Zulip Icons");
125128

126129
/// The Zulip custom icon "user".
127-
static const IconData user = IconData(0xf122, fontFamily: "Zulip Icons");
130+
static const IconData user = IconData(0xf123, fontFamily: "Zulip Icons");
128131

129132
// END GENERATED ICON DATA
130133
}

pubspec.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,10 +1004,10 @@ packages:
10041004
dependency: transitive
10051005
description:
10061006
name: source_span
1007-
sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c"
1007+
sha256: "254ee5351d6cb365c859e20ee823c3bb479bf4a293c22d17a9f1bf144ce86f7c"
10081008
url: "https://pub.dev"
10091009
source: hosted
1010-
version: "1.10.0"
1010+
version: "1.10.1"
10111011
sprintf:
10121012
dependency: transitive
10131013
description:
@@ -1092,26 +1092,26 @@ packages:
10921092
dependency: "direct dev"
10931093
description:
10941094
name: test
1095-
sha256: "713a8789d62f3233c46b4a90b174737b2c04cb6ae4500f2aa8b1be8f03f5e67f"
1095+
sha256: "43490fe4c0f5ecb898f3fa1cdcdad8d521d7f6ff17ebdc4e8cd32b2e99524a20"
10961096
url: "https://pub.dev"
10971097
source: hosted
1098-
version: "1.25.8"
1098+
version: "1.25.13"
10991099
test_api:
11001100
dependency: "direct dev"
11011101
description:
11021102
name: test_api
1103-
sha256: "664d3a9a64782fcdeb83ce9c6b39e78fd2971d4e37827b9b06c3aa1edc5e760c"
1103+
sha256: fb31f383e2ee25fbbfe06b40fe21e1e458d14080e3c67e7ba0acfde4df4e0bbd
11041104
url: "https://pub.dev"
11051105
source: hosted
1106-
version: "0.7.3"
1106+
version: "0.7.4"
11071107
test_core:
11081108
dependency: transitive
11091109
description:
11101110
name: test_core
1111-
sha256: "12391302411737c176b0b5d6491f466b0dd56d4763e347b6714efbaa74d7953d"
1111+
sha256: "84d17c3486c8dfdbe5e12a50c8ae176d15e2a771b96909a9442b40173649ccaa"
11121112
url: "https://pub.dev"
11131113
source: hosted
1114-
version: "0.6.5"
1114+
version: "0.6.8"
11151115
timing:
11161116
dependency: transitive
11171117
description:

0 commit comments

Comments
 (0)