attachment lint
This commit is contained in:
@@ -192,8 +192,7 @@ class AttachmentActionsModal extends StatelessWidget {
|
|||||||
VoidCallback? onTap, {
|
VoidCallback? onTap, {
|
||||||
Color? color,
|
Color? color,
|
||||||
Key? key,
|
Key? key,
|
||||||
}) {
|
}) => Material(
|
||||||
return Material(
|
|
||||||
key: key,
|
key: key,
|
||||||
color: StreamChatTheme.of(context).colorTheme.white,
|
color: StreamChatTheme.of(context).colorTheme.white,
|
||||||
child: InkWell(
|
child: InkWell(
|
||||||
@@ -216,7 +215,6 @@ class AttachmentActionsModal extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
|
||||||
|
|
||||||
Widget _buildDownloadProgressDialog(
|
Widget _buildDownloadProgressDialog(
|
||||||
BuildContext context,
|
BuildContext context,
|
||||||
@@ -245,7 +243,7 @@ class AttachmentActionsModal extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
child: Center(
|
child: Center(
|
||||||
child: progress == null
|
child: progress == null
|
||||||
? Container(
|
? SizedBox(
|
||||||
height: 100,
|
height: 100,
|
||||||
width: 100,
|
width: 100,
|
||||||
child: StreamSvgIcon.error(
|
child: StreamSvgIcon.error(
|
||||||
@@ -253,7 +251,7 @@ class AttachmentActionsModal extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
)
|
)
|
||||||
: progress.toProgressIndicatorValue == 1.0
|
: progress.toProgressIndicatorValue == 1.0
|
||||||
? Container(
|
? SizedBox(
|
||||||
key: Key('completedIcon'),
|
key: Key('completedIcon'),
|
||||||
height: 160,
|
height: 160,
|
||||||
width: 160,
|
width: 160,
|
||||||
@@ -261,7 +259,7 @@ class AttachmentActionsModal extends StatelessWidget {
|
|||||||
color: theme.colorTheme.greyGainsboro,
|
color: theme.colorTheme.greyGainsboro,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
: Container(
|
: SizedBox(
|
||||||
height: 100,
|
height: 100,
|
||||||
width: 100,
|
width: 100,
|
||||||
child: Stack(
|
child: Stack(
|
||||||
|
|||||||
@@ -812,8 +812,7 @@ class MessageInputState extends State<MessageInput> {
|
|||||||
final renderBox = context.findRenderObject() as RenderBox;
|
final renderBox = context.findRenderObject() as RenderBox;
|
||||||
final size = renderBox.size;
|
final size = renderBox.size;
|
||||||
|
|
||||||
return OverlayEntry(builder: (context) {
|
return OverlayEntry(builder: (context) => Positioned(
|
||||||
return Positioned(
|
|
||||||
bottom: size.height + MediaQuery.of(context).viewInsets.bottom,
|
bottom: size.height + MediaQuery.of(context).viewInsets.bottom,
|
||||||
left: 0,
|
left: 0,
|
||||||
right: 0,
|
right: 0,
|
||||||
@@ -821,8 +820,7 @@ class MessageInputState extends State<MessageInput> {
|
|||||||
tween: Tween(begin: 0, end: 1),
|
tween: Tween(begin: 0, end: 1),
|
||||||
duration: Duration(milliseconds: 300),
|
duration: Duration(milliseconds: 300),
|
||||||
curve: Curves.easeInOutExpo,
|
curve: Curves.easeInOutExpo,
|
||||||
builder: (context, val, wid) {
|
builder: (context, val, wid) => Transform.scale(
|
||||||
return Transform.scale(
|
|
||||||
scale: val,
|
scale: val,
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.all(8),
|
padding: const EdgeInsets.all(8),
|
||||||
@@ -869,7 +867,7 @@ class MessageInputState extends State<MessageInput> {
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
SizedBox(
|
const SizedBox(
|
||||||
height: 10,
|
height: 10,
|
||||||
),
|
),
|
||||||
...commands
|
...commands
|
||||||
@@ -878,21 +876,21 @@ class MessageInputState extends State<MessageInput> {
|
|||||||
onTap: () {
|
onTap: () {
|
||||||
_setCommand(c);
|
_setCommand(c);
|
||||||
},
|
},
|
||||||
child: Container(
|
child: SizedBox(
|
||||||
height: 40,
|
height: 40,
|
||||||
child: Row(
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
SizedBox(
|
const SizedBox(
|
||||||
width: 16,
|
width: 16,
|
||||||
),
|
),
|
||||||
_buildCommandIcon(c.name),
|
_buildCommandIcon(c.name),
|
||||||
SizedBox(
|
const SizedBox(
|
||||||
width: 8,
|
width: 8,
|
||||||
),
|
),
|
||||||
Text.rich(
|
Text.rich(
|
||||||
TextSpan(
|
TextSpan(
|
||||||
text: c.name.capitalize(),
|
text: c.name.capitalize(),
|
||||||
style: TextStyle(
|
style: const TextStyle(
|
||||||
fontWeight: FontWeight.bold),
|
fontWeight: FontWeight.bold),
|
||||||
children: [
|
children: [
|
||||||
TextSpan(
|
TextSpan(
|
||||||
@@ -922,10 +920,8 @@ class MessageInputState extends State<MessageInput> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
)),
|
||||||
}),
|
));
|
||||||
);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget _buildFilePickerSection() {
|
Widget _buildFilePickerSection() {
|
||||||
@@ -1038,12 +1034,12 @@ class MessageInputState extends State<MessageInput> {
|
|||||||
child: Container(
|
child: Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: StreamChatTheme.of(context).colorTheme.white,
|
color: StreamChatTheme.of(context).colorTheme.white,
|
||||||
borderRadius: BorderRadius.only(
|
borderRadius: const BorderRadius.only(
|
||||||
topLeft: Radius.circular(16),
|
topLeft: Radius.circular(16),
|
||||||
topRight: Radius.circular(16),
|
topRight: Radius.circular(16),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
child: Container(
|
child: SizedBox(
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
child: Center(
|
child: Center(
|
||||||
child: Padding(
|
child: Padding(
|
||||||
|
|||||||
Reference in New Issue
Block a user