use StreamSvgIcon widget

This commit is contained in:
Salvatore Giordano
2020-11-24 12:52:54 +01:00
parent b20caeee8f
commit f1b7c6f39f
110 changed files with 673 additions and 1392 deletions
+21 -15
View File
@@ -1,6 +1,7 @@
import 'package:cached_network_image/cached_network_image.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:stream_chat_flutter/src/stream_svg_icon.dart';
import '../stream_chat_flutter.dart';
import 'attachment_error.dart';
@@ -111,10 +112,11 @@ class GiphyAttachment extends StatelessWidget {
),
child: Row(
children: [
Icon(
StreamIcons.lightning,
StreamSvgIcon(
assetName: 'Icon_lightning-command runner.svg',
color: StreamChatTheme.of(context).accentColor,
size: 16.0,
height: 16.0,
width: 16.0,
),
Text(
'GIPHY',
@@ -144,9 +146,10 @@ class GiphyAttachment extends StatelessWidget {
child: IconButton(
padding: const EdgeInsets.all(0),
constraints: BoxConstraints.tight(Size(32, 32)),
icon: Icon(
StreamIcons.left,
size: 24.0,
icon: StreamSvgIcon(
assetName: 'Icon_left.svg',
height: 24.0,
width: 24.0,
),
splashRadius: 16,
onPressed: () {
@@ -172,9 +175,10 @@ class GiphyAttachment extends StatelessWidget {
child: IconButton(
padding: const EdgeInsets.all(0),
constraints: BoxConstraints.tight(Size(32, 32)),
icon: Icon(
StreamIcons.right,
size: 24.0,
icon: StreamSvgIcon(
assetName: 'Icon_right.svg',
height: 24.0,
width: 24.0,
),
splashRadius: 16,
onPressed: () {
@@ -253,10 +257,11 @@ class GiphyAttachment extends StatelessWidget {
child: Row(
mainAxisSize: MainAxisSize.min,
children: [
Icon(
StreamIcons.eye,
StreamSvgIcon(
assetName: 'Icon_eye-off.svg',
color: Colors.black.withOpacity(0.5),
size: 16.0,
height: 16.0,
width: 16.0,
),
SizedBox(
width: 8.0,
@@ -326,10 +331,11 @@ class GiphyAttachment extends StatelessWidget {
),
child: Row(
children: [
Icon(
StreamIcons.lightning,
StreamSvgIcon(
assetName: 'Icon_lightning-command runner.svg',
color: Colors.white,
size: 16,
height: 16,
width: 16,
),
Text(
'GIPHY',