lint
This commit is contained in:
@@ -4,7 +4,6 @@ import 'package:stream_chat_flutter_core/stream_chat_flutter_core.dart';
|
|||||||
|
|
||||||
/// Displays a list of users who reacted
|
/// Displays a list of users who reacted
|
||||||
class UserReactionDisplay extends StatelessWidget {
|
class UserReactionDisplay extends StatelessWidget {
|
||||||
|
|
||||||
/// Constructor for creating a [UserReactionDisplay]
|
/// Constructor for creating a [UserReactionDisplay]
|
||||||
const UserReactionDisplay({
|
const UserReactionDisplay({
|
||||||
Key? key,
|
Key? key,
|
||||||
|
|||||||
@@ -27,7 +27,8 @@ Future<bool?> showConfirmationDialog(
|
|||||||
Widget? icon,
|
Widget? icon,
|
||||||
String? question,
|
String? question,
|
||||||
String? cancelText,
|
String? cancelText,
|
||||||
}) => showModalBottomSheet(
|
}) =>
|
||||||
|
showModalBottomSheet(
|
||||||
backgroundColor: StreamChatTheme.of(context).colorTheme.white,
|
backgroundColor: StreamChatTheme.of(context).colorTheme.white,
|
||||||
context: context,
|
context: context,
|
||||||
shape: const RoundedRectangleBorder(
|
shape: const RoundedRectangleBorder(
|
||||||
@@ -118,9 +119,10 @@ Future<bool?> showInfoDialog(
|
|||||||
Widget? icon,
|
Widget? icon,
|
||||||
String? details,
|
String? details,
|
||||||
StreamChatThemeData? theme,
|
StreamChatThemeData? theme,
|
||||||
}) => showModalBottomSheet(
|
}) =>
|
||||||
backgroundColor:
|
showModalBottomSheet(
|
||||||
theme?.colorTheme.white ?? StreamChatTheme.of(context).colorTheme.white,
|
backgroundColor: theme?.colorTheme.white ??
|
||||||
|
StreamChatTheme.of(context).colorTheme.white,
|
||||||
context: context,
|
context: context,
|
||||||
shape: const RoundedRectangleBorder(
|
shape: const RoundedRectangleBorder(
|
||||||
borderRadius: BorderRadius.only(
|
borderRadius: BorderRadius.only(
|
||||||
@@ -338,7 +340,8 @@ Widget wrapAttachmentWidget(
|
|||||||
// ignore: avoid_positional_boolean_parameters
|
// ignore: avoid_positional_boolean_parameters
|
||||||
bool reverse,
|
bool reverse,
|
||||||
BorderRadius borderRadius,
|
BorderRadius borderRadius,
|
||||||
) => ClipRRect(
|
) =>
|
||||||
|
ClipRRect(
|
||||||
borderRadius: borderRadius,
|
borderRadius: borderRadius,
|
||||||
child: Material(
|
child: Material(
|
||||||
clipBehavior: Clip.antiAlias,
|
clipBehavior: Clip.antiAlias,
|
||||||
|
|||||||
@@ -4,10 +4,9 @@ import 'package:flutter/material.dart';
|
|||||||
import 'package:shimmer/shimmer.dart';
|
import 'package:shimmer/shimmer.dart';
|
||||||
import 'package:stream_chat_flutter/stream_chat_flutter.dart';
|
import 'package:stream_chat_flutter/stream_chat_flutter.dart';
|
||||||
import 'package:video_thumbnail/video_thumbnail.dart';
|
import 'package:video_thumbnail/video_thumbnail.dart';
|
||||||
|
import 'package:stream_chat_flutter/src/video_service.dart';
|
||||||
|
|
||||||
import 'stream_svg_icon.dart';
|
/// Widget for creating video thumbnail image
|
||||||
import 'video_service.dart';
|
|
||||||
|
|
||||||
class VideoThumbnailImage extends StatefulWidget {
|
class VideoThumbnailImage extends StatefulWidget {
|
||||||
/// Constructor for creating [VideoThumbnailImage]
|
/// Constructor for creating [VideoThumbnailImage]
|
||||||
const VideoThumbnailImage({
|
const VideoThumbnailImage({
|
||||||
@@ -38,6 +37,8 @@ class VideoThumbnailImage extends StatefulWidget {
|
|||||||
|
|
||||||
/// Builds widget on error
|
/// Builds widget on error
|
||||||
final Widget Function(BuildContext, Object?)? errorBuilder;
|
final Widget Function(BuildContext, Object?)? errorBuilder;
|
||||||
|
|
||||||
|
/// Builds placeholder
|
||||||
final WidgetBuilder? placeholderBuilder;
|
final WidgetBuilder? placeholderBuilder;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|||||||
Reference in New Issue
Block a user