forked from lxm_flutter/FlutterUnit
✨ 图片使用webp
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user