We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c53f16 commit b7c8550Copy full SHA for b7c8550
sample_app/lib/pages/channel_page.dart
@@ -57,6 +57,7 @@ class _ChannelPageState extends State<ChannelPage> {
57
final colorTheme = theme.colorTheme;
58
59
final channel = StreamChannel.of(context).channel;
60
+ final config = channel.config;
61
62
return Scaffold(
63
backgroundColor: colorTheme.appBg,
@@ -131,8 +132,7 @@ class _ChannelPageState extends State<ChannelPage> {
131
132
enableVoiceRecording: true,
133
allowedAttachmentPickerTypes: [
134
...AttachmentPickerType.values,
- if (channel.config?.sharedLocations == true &&
135
- channel.canShareLocation)
+ if (config?.sharedLocations == true && channel.canShareLocation)
136
const LocationPickerType(),
137
],
138
onCustomAttachmentPickerResult: (result) {
0 commit comments