minor fixes

This commit is contained in:
Salvatore Giordano
2021-07-09 15:13:48 +02:00
parent 68f1328a54
commit 7b1a85c40c
22 changed files with 67 additions and 91 deletions
@@ -4,7 +4,7 @@ sidebar_position: 3
title: Adding Custom Attachments
---
Adding Your Own Types Of Attachments To A Message
Adding your own types of attachments to a message
### Introduction
@@ -14,7 +14,9 @@ own types of attachments through the SDK such as location, audio, etc.
This involves doing three things:
1) Rendering the attachment thumbnail in the `MessageInput`
2) Sending a message with the custom attachment
3) Rendering the custom message attachment
To do this, let's check out an example to add location sharing to Stream Chat.
@@ -126,7 +128,7 @@ Next, we build the Static Maps URL (Add your API key before using the code snipp
```dart
String _buildMapAttachment(String lat, String long) {
var baseURL = 'https://maps.googleapis.com/maps/api/staticmap?';
var url = new Uri(
var url = Uri(
scheme: 'https',
host: 'maps.googleapis.com',
port: 443,