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