chore(repo): remove deprecated code.

Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
Sahil Kumar
2023-07-18 16:35:35 +05:30
parent 406ed66d1b
commit 972a0f5993
44 changed files with 38 additions and 1300 deletions
@@ -59,29 +59,6 @@ bool getEffectiveCenterTitle(
}
}
/// Shows confirmation dialog
@Deprecated(
'''
showConfirmationDialog is deprecated.
Use showConfirmationBottomSheet instead.''',
)
Future<bool?> showConfirmationDialog(
BuildContext context, {
required String title,
required String okText,
Widget? icon,
String? question,
String? cancelText,
}) =>
showConfirmationBottomSheet(
context,
title: title,
okText: okText,
icon: icon,
question: question,
cancelText: cancelText,
);
/// Shows confirmation bottom sheet
Future<bool?> showConfirmationBottomSheet(
BuildContext context, {
@@ -169,29 +146,6 @@ Future<bool?> showConfirmationBottomSheet(
);
}
/// Shows info dialog
@Deprecated(
'''
showInfoDialog is deprecated.
Use showInfoBottomSheet instead.''',
)
Future<bool?> showInfoDialog(
BuildContext context, {
required String title,
required String okText,
Widget? icon,
String? details,
StreamChatThemeData? theme,
}) =>
showInfoBottomSheet(
context,
title: title,
okText: okText,
icon: icon,
details: details,
theme: theme,
);
/// Shows info bottom sheet
Future<bool?> showInfoBottomSheet(
BuildContext context, {
@@ -418,25 +372,6 @@ StreamSvgIcon getFileTypeImage(String? mimeType) {
}
}
/// Wraps attachment widget with custom shape
@Deprecated(
'''
wrapAttachmentWidget is deprecated.
Use WrapAttachmentWidget instead
''',
)
Widget wrapAttachmentWidget(
BuildContext context,
Widget attachmentWidget,
ShapeBorder attachmentShape,
// ignore: avoid_positional_boolean_parameters
bool reverse,
) =>
WrapAttachmentWidget(
attachmentWidget: attachmentWidget,
attachmentShape: attachmentShape,
);
/// Wraps attachment widget with custom shape
class WrapAttachmentWidget extends StatelessWidget {
/// Builds a [WrapAttachmentWidget].