Merge branch 'feat/custom-attachment-upload' of https://github.com/GetStream/stream-chat-flutter into feat/custom-attachment-upload
This commit is contained in:
@@ -11,6 +11,7 @@ enum AttachmentSource {
|
||||
extension AttachmentSourceX on AttachmentSource {
|
||||
/// The [when] method is the equivalent to pattern matching.
|
||||
/// Its prototype depends on the AttachmentSource defined.
|
||||
// ignore: missing_return
|
||||
T when<T>({
|
||||
@required T Function() local,
|
||||
@required T Function() network,
|
||||
|
||||
@@ -142,10 +142,6 @@ class _ImageFooterState extends State<ImageFooter> {
|
||||
}
|
||||
|
||||
void _showPhotosModal(context) {
|
||||
var videoAttachments = widget.mediaAttachments
|
||||
.where((element) => element.type == 'video')
|
||||
.toList();
|
||||
|
||||
showModalBottomSheet(
|
||||
context: context,
|
||||
barrierColor: StreamChatTheme.of(context).colorTheme.overlay,
|
||||
|
||||
@@ -4,7 +4,6 @@ import 'package:url_launcher/url_launcher.dart';
|
||||
|
||||
import '../stream_chat_flutter.dart';
|
||||
import 'stream_svg_icon.dart';
|
||||
import 'dart:math';
|
||||
|
||||
Future<void> launchURL(BuildContext context, String url) async {
|
||||
if (await canLaunch(url)) {
|
||||
|
||||
Reference in New Issue
Block a user