chore(ui): fix analysis issues

Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
Sahil Kumar
2022-08-19 13:01:25 +05:30
committed by xsahil03x
parent ae199c636a
commit 6c78ad49c8
3 changed files with 4 additions and 3 deletions
@@ -100,7 +100,8 @@ class StreamFileAttachment extends StreamAttachmentWidget {
borderRadius: BorderRadius.circular(8),
);
// TODO: Improve image memory. This is using the full image instead of a smaller version (thumbnail)
// TODO: Improve image memory. This is using the full image instead of a
// smaller version (thumbnail)
Widget _getFileTypeImage(BuildContext context) {
if (isImageAttachment) {
return Material(
@@ -434,7 +434,8 @@ class StreamMessageWidget extends StatefulWidget {
/// Crop type of the image attachment thumbnail.
///
/// Defaults to [center]
final String /*center|top|bottom|left|right*/ imageAttachmentThumbnailCropType;
final String /*center|top|bottom|left|right*/
imageAttachmentThumbnailCropType;
/// Creates a copy of [StreamMessageWidget] with
/// specified attributes overridden.
@@ -10,7 +10,6 @@ import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
import 'package:image_picker/image_picker.dart';
import 'package:photo_manager/photo_manager.dart';
import 'package:shimmer/shimmer.dart';
import 'package:stream_chat_flutter/src/commands_overlay.dart';
import 'package:stream_chat_flutter/src/emoji/emoji.dart';