图片使用webp

This commit is contained in:
toly
2020-09-01 17:28:08 +08:00
parent f42b9e0e26
commit 3643ede3de
180 changed files with 145 additions and 145 deletions

View File

@@ -16,8 +16,8 @@ class CircleFlow extends StatelessWidget {
final data = List.generate(
16,
(index) => index.isEven
? "assets/images/icon_head.png"
: "assets/images/wy_300x200.jpg");
? "assets/images/icon_head.webp"
: "assets/images/wy_300x200.webp");
@override
Widget build(BuildContext context) {

View File

@@ -16,8 +16,8 @@ class BurstFlow extends StatefulWidget {
static final data = List.generate(
16,
(index) => index.isEven
? "assets/images/icon_head.png"
: "assets/images/wy_300x200.jpg");
? "assets/images/icon_head.webp"
: "assets/images/wy_300x200.webp");
static final show = Container(
width: 300,
height: 300,
@@ -27,7 +27,7 @@ class BurstFlow extends StatefulWidget {
.map((e) => CircleAvatar(backgroundImage: AssetImage(e)))
.toList(),
menu: CircleAvatar(
backgroundImage: AssetImage('assets/images/icon_head.png'),
backgroundImage: AssetImage('assets/images/icon_head.webp'),
)));
final List<Widget> children;

View File

@@ -19,7 +19,7 @@ class RichTextWithWidget extends StatelessWidget {
children: <InlineSpan>[
WidgetSpan(
child: Image.asset(
'assets/images/icon_head.png',
'assets/images/icon_head.webp',
width: 30,
),
alignment: PlaceholderAlignment.baseline,