[Async Attachment Upload] Initial implementation

Signed-off-by: Sahil Kumar <[email protected]>
This commit is contained in:
Sahil Kumar
2021-02-16 21:21:15 +05:30
parent 628542f99b
commit 0a6948cf32
54 changed files with 2561 additions and 1328 deletions
@@ -4,6 +4,7 @@ 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)) {
@@ -215,7 +216,7 @@ String getWebsiteName(String hostName) {
}
/// A method returns a human readable string representing a file _size
String filesize(dynamic size, [int round = 2]) {
String fileSize(dynamic size, [int round = 2]) {
if (size == null) return 'Size N/A';
/**