removed builders

This commit is contained in:
Deven Joshi
2021-11-17 13:53:58 +05:30
parent ba91a0f019
commit f3d4eab1a0
4 changed files with 0 additions and 32 deletions
@@ -2,7 +2,6 @@ import 'package:cached_network_image/cached_network_image.dart';
import 'package:flutter/material.dart';
import 'package:shimmer/shimmer.dart';
import 'package:stream_chat_flutter/src/attachment/attachment_widget.dart';
import 'package:stream_chat_flutter/src/attachment_actions_modal.dart';
import 'package:stream_chat_flutter/src/extension.dart';
import 'package:stream_chat_flutter/src/visible_footnote.dart';
import 'package:stream_chat_flutter/stream_chat_flutter.dart';
@@ -19,7 +18,6 @@ class GiphyAttachment extends AttachmentWidget {
this.onShowMessage,
this.onReturnAction,
this.onAttachmentTap,
this.attachmentActionsModalBuilder,
}) : super(
key: key,
message: message,
@@ -36,11 +34,6 @@ class GiphyAttachment extends AttachmentWidget {
/// Callback when attachment is tapped
final VoidCallback? onAttachmentTap;
/// Widget builder for attachment actions modal
/// [defaultActionsModal] is the default [AttachmentActionsModal] config
/// Use [defaultActionsModal.copyWith] to easily customize it
final AttachmentActionsBuilder? attachmentActionsModalBuilder;
@override
Widget build(BuildContext context) {
final imageUrl =
@@ -257,7 +250,6 @@ class GiphyAttachment extends AttachmentWidget {
userName: message.user?.name,
message: message,
onShowMessage: onShowMessage,
attachmentActionsModalBuilder: attachmentActionsModalBuilder,
),
);
},
@@ -21,7 +21,6 @@ class ImageAttachment extends AttachmentWidget {
this.onShowMessage,
this.onReturnAction,
this.onAttachmentTap,
this.attachmentActionsModalBuilder,
}) : super(
key: key,
message: message,
@@ -44,11 +43,6 @@ class ImageAttachment extends AttachmentWidget {
/// Callback when attachment is tapped
final VoidCallback? onAttachmentTap;
/// Widget builder for attachment actions modal
/// [defaultActionsModal] is the default [AttachmentActionsModal] config
/// Use [defaultActionsModal.copyWith] to easily customize it
final AttachmentActionsBuilder? attachmentActionsModalBuilder;
@override
Widget build(BuildContext context) => source.when(
local: () {
@@ -151,8 +145,6 @@ class ImageAttachment extends AttachmentWidget {
userName: message.user?.name,
message: message,
onShowMessage: onShowMessage,
attachmentActionsModalBuilder:
attachmentActionsModalBuilder,
),
);
},
@@ -18,7 +18,6 @@ class VideoAttachment extends AttachmentWidget {
this.onShowMessage,
this.onReturnAction,
this.onAttachmentTap,
this.attachmentActionsModalBuilder,
}) : super(
key: key,
message: message,
@@ -38,11 +37,6 @@ class VideoAttachment extends AttachmentWidget {
/// Callback when attachment is tapped
final VoidCallback? onAttachmentTap;
/// Widget builder for attachment actions modal
/// [defaultActionsModal] is the default [AttachmentActionsModal] config
/// Use [defaultActionsModal.copyWith] to easily customize it
final AttachmentActionsBuilder? attachmentActionsModalBuilder;
@override
Widget build(BuildContext context) => source.when(
local: () {
@@ -97,8 +91,6 @@ class VideoAttachment extends AttachmentWidget {
userName: message.user?.name,
message: message,
onShowMessage: onShowMessage,
attachmentActionsModalBuilder:
attachmentActionsModalBuilder,
),
),
),
@@ -16,7 +16,6 @@ class ImageGroup extends StatelessWidget {
this.onReturnAction,
this.onShowMessage,
this.onAttachmentTap,
this.attachmentActionsModalBuilder,
}) : super(key: key);
/// List of attachments to show
@@ -40,11 +39,6 @@ class ImageGroup extends StatelessWidget {
/// Callback for when show message is tapped
final ShowMessageCallback? onShowMessage;
/// Widget builder for attachment actions modal
/// [defaultActionsModal] is the default [AttachmentActionsModal] config
/// Use [defaultActionsModal.copyWith] to easily customize it
final AttachmentActionsBuilder? attachmentActionsModalBuilder;
@override
Widget build(BuildContext context) => ConstrainedBox(
constraints: BoxConstraints.loose(size),
@@ -144,7 +138,6 @@ class ImageGroup extends StatelessWidget {
userName: message.user?.name,
message: message,
onShowMessage: onShowMessage,
attachmentActionsModalBuilder: attachmentActionsModalBuilder,
),
),
),
@@ -158,6 +151,5 @@ class ImageGroup extends StatelessWidget {
message: message,
messageTheme: messageTheme,
onAttachmentTap: () => _onTap(context, index),
attachmentActionsModalBuilder: attachmentActionsModalBuilder,
);
}