Skip to content

Commit 0259b0d

Browse files
authored
Merge pull request #103 from tommyxchow/dev
Release v1.2.1
2 parents e40a5c5 + 8b96e57 commit 0259b0d

File tree

5 files changed

+16
-5
lines changed

5 files changed

+16
-5
lines changed

lib/screens/channel/chat/widgets/chat_message.dart

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,18 @@ class ChatMessage extends StatelessWidget {
117117
child: Column(
118118
crossAxisAlignment: CrossAxisAlignment.start,
119119
children: [
120-
Text(ircMessage.tags['system-msg']!),
120+
if (ircMessage.tags.containsKey('system-msg')) Text(ircMessage.tags['system-msg']!),
121+
if (ircMessage.tags.containsKey('msg-id') && ircMessage.tags['msg-id'] == 'announcement')
122+
Row(
123+
children: const [
124+
Icon(Icons.announcement),
125+
SizedBox(width: 5.0),
126+
Text(
127+
'Announcement',
128+
style: TextStyle(fontWeight: FontWeight.bold),
129+
),
130+
],
131+
),
121132
const SizedBox(height: 5.0),
122133
if (ircMessage.message != null)
123134
Observer(

lib/screens/settings/sections/chat_settings.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class _ChatSettingsState extends State<ChatSettings> {
5757
SwitchListTile.adaptive(
5858
isThreeLine: true,
5959
title: const Text('Readable Name Colors'),
60-
subtitle: const Text('Adjusts the lightness value of overly bright/dark names.'),
60+
subtitle: const Text('Adjusts the lightness value of overly bright or dark names.'),
6161
value: settingsStore.useReadableColors,
6262
onChanged: (newValue) => settingsStore.useReadableColors = newValue,
6363
),

lib/widgets/profile_picture.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class ProfilePicture extends StatelessWidget {
2323
return CircleAvatar(
2424
radius: radius,
2525
backgroundColor: Colors.transparent,
26-
foregroundImage: snapshot.hasData && snapshot.data != null ? CachedNetworkImageProvider(snapshot.data!.profileImageUrl) : null,
26+
foregroundImage: !snapshot.hasError && snapshot.hasData ? CachedNetworkImageProvider(snapshot.data!.profileImageUrl) : null,
2727
);
2828
},
2929
);

pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ packages:
264264
name: flutter_native_splash
265265
url: "https://pub.dartlang.org"
266266
source: hosted
267-
version: "2.1.2+1"
267+
version: "2.1.3+1"
268268
flutter_secure_storage:
269269
dependency: "direct main"
270270
description:

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
1515
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
1616
# Read more about iOS versioning at
1717
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
18-
version: 1.2.0+18
18+
version: 1.2.1+19
1919

2020
environment:
2121
sdk: ">=2.15.0 <3.0.0"

0 commit comments

Comments
 (0)