use StreamSvgIcon widget
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user