Skip to content

Commit b7c8550

Browse files
committed
chore: minor improvement
1 parent 7c53f16 commit b7c8550

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sample_app/lib/pages/channel_page.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ class _ChannelPageState extends State<ChannelPage> {
5757
final colorTheme = theme.colorTheme;
5858

5959
final channel = StreamChannel.of(context).channel;
60+
final config = channel.config;
6061

6162
return Scaffold(
6263
backgroundColor: colorTheme.appBg,
@@ -131,8 +132,7 @@ class _ChannelPageState extends State<ChannelPage> {
131132
enableVoiceRecording: true,
132133
allowedAttachmentPickerTypes: [
133134
...AttachmentPickerType.values,
134-
if (channel.config?.sharedLocations == true &&
135-
channel.canShareLocation)
135+
if (config?.sharedLocations == true && channel.canShareLocation)
136136
const LocationPickerType(),
137137
],
138138
onCustomAttachmentPickerResult: (result) {

0 commit comments

Comments
 (0)