fix analysis
This commit is contained in:
@@ -1751,14 +1751,19 @@ class MessageInputState extends State<MessageInput>
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Preview of an Open Graph attachment.
|
||||||
class OGAttachmentPreview extends StatelessWidget {
|
class OGAttachmentPreview extends StatelessWidget {
|
||||||
|
/// Returns a new instance of [OGAttachmentPreview]
|
||||||
const OGAttachmentPreview({
|
const OGAttachmentPreview({
|
||||||
Key? key,
|
Key? key,
|
||||||
required this.attachment,
|
required this.attachment,
|
||||||
this.onDismissPreviewPressed,
|
this.onDismissPreviewPressed,
|
||||||
}) : super(key: key);
|
}) : super(key: key);
|
||||||
|
|
||||||
|
/// The attachment to be rendered.
|
||||||
final Attachment attachment;
|
final Attachment attachment;
|
||||||
|
|
||||||
|
/// Called when the dismiss button is pressed.
|
||||||
final VoidCallback? onDismissPreviewPressed;
|
final VoidCallback? onDismissPreviewPressed;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@@ -1773,7 +1778,7 @@ class OGAttachmentPreview extends StatelessWidget {
|
|||||||
return Row(
|
return Row(
|
||||||
children: [
|
children: [
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.all(8.0),
|
padding: const EdgeInsets.all(8),
|
||||||
child: Icon(
|
child: Icon(
|
||||||
Icons.link,
|
Icons.link,
|
||||||
color: colorTheme.accentPrimary,
|
color: colorTheme.accentPrimary,
|
||||||
|
|||||||
@@ -1,19 +1,24 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
|
/// Controller for the [StreamTextField] widget.
|
||||||
class MessageTextFieldController extends TextEditingController {
|
class MessageTextFieldController extends TextEditingController {
|
||||||
|
/// Returns a new MessageTextFieldController
|
||||||
MessageTextFieldController({
|
MessageTextFieldController({
|
||||||
String? text,
|
String? text,
|
||||||
this.textPatternStyle,
|
this.textPatternStyle,
|
||||||
}) : super(text: text);
|
}) : super(text: text);
|
||||||
|
|
||||||
|
/// Returns a new MessageTextFieldController with the given text [value].
|
||||||
MessageTextFieldController.fromValue(
|
MessageTextFieldController.fromValue(
|
||||||
TextEditingValue? value, {
|
TextEditingValue? value, {
|
||||||
this.textPatternStyle,
|
this.textPatternStyle,
|
||||||
}) : super.fromValue(value);
|
}) : super.fromValue(value);
|
||||||
|
|
||||||
|
/// A map of style to apply to the text matching the RegExp patterns.
|
||||||
final Map<RegExp, TextStyle>? textPatternStyle;
|
final Map<RegExp, TextStyle>? textPatternStyle;
|
||||||
|
|
||||||
///
|
/// Builds a [TextSpan] from the current text,
|
||||||
|
/// highlighting the matches for [textPatternStyle].
|
||||||
@override
|
@override
|
||||||
TextSpan buildTextSpan({
|
TextSpan buildTextSpan({
|
||||||
required BuildContext context,
|
required BuildContext context,
|
||||||
|
|||||||
Reference in New Issue
Block a user