图片使用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

@@ -75,7 +75,7 @@ class _SliverFixedExtentListDemoState extends State<SliverFixedExtentListDemo> {
titlePadding: EdgeInsets.only(left: 55, bottom: 15), //标题边距
collapseMode: CollapseMode.parallax, //视差效果
background: Image.asset(
"assets/images/caver.jpeg",
"assets/images/caver.webp",
fit: BoxFit.cover,
),
),
@@ -84,7 +84,7 @@ class _SliverFixedExtentListDemoState extends State<SliverFixedExtentListDemo> {
Widget _buildLeading() => Container(
margin: EdgeInsets.all(10),
child: Image.asset('assets/images/icon_head.png'));
child: Image.asset('assets/images/icon_head.webp'));
List<Widget> _buildActions() => <Widget>[
IconButton(