Commit 0fd4b04b3d9405f5dc76ec7d6c6ab92d064ba6c7
1 parent
688b7b5c
feat:跟新适配
Showing
2 changed files
with
5 additions
and
5 deletions
lib/listen/listen_page.dart
@@ -39,7 +39,7 @@ class _ListenPageView extends StatelessWidget { | @@ -39,7 +39,7 @@ class _ListenPageView extends StatelessWidget { | ||
39 | return ListView.builder( | 39 | return ListView.builder( |
40 | itemCount: 10, | 40 | itemCount: 10, |
41 | scrollDirection: Axis.horizontal, | 41 | scrollDirection: Axis.horizontal, |
42 | - padding: EdgeInsets.symmetric(horizontal: 30.w,vertical: 30.h), | 42 | + padding: EdgeInsets.symmetric(horizontal: 30.w,vertical: 36.h), |
43 | itemBuilder: (BuildContext context,int index){ | 43 | itemBuilder: (BuildContext context,int index){ |
44 | return ListenItemWidget( | 44 | return ListenItemWidget( |
45 | isLock: (index < 5), | 45 | isLock: (index < 5), |
lib/listen/widgets/listen_item_widget.dart
@@ -28,15 +28,15 @@ class ListenItemWidget extends StatelessWidget { | @@ -28,15 +28,15 @@ class ListenItemWidget extends StatelessWidget { | ||
28 | children: [ | 28 | children: [ |
29 | Image.network( | 29 | Image.network( |
30 | 'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fsafe-img.xhscdn.com%2Fbw1%2Faa1c2213-820a-4223-8757-5f8cee318a28%3FimageView2%2F2%2Fw%2F1080%2Fformat%2Fjpg&refer=http%3A%2F%2Fsafe-img.xhscdn.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1688713226&t=192b18a613683bcdc5bd76f65c9ff032', | 30 | 'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fsafe-img.xhscdn.com%2Fbw1%2Faa1c2213-820a-4223-8757-5f8cee318a28%3FimageView2%2F2%2Fw%2F1080%2Fformat%2Fjpg&refer=http%3A%2F%2Fsafe-img.xhscdn.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1688713226&t=192b18a613683bcdc5bd76f65c9ff032', |
31 | - height: 180.w, | ||
32 | - width: 180.w, | 31 | + height: 180.h, |
32 | + width: 180.h, | ||
33 | fit: BoxFit.fill, | 33 | fit: BoxFit.fill, |
34 | ), | 34 | ), |
35 | Offstage( | 35 | Offstage( |
36 | offstage: isLock??false, | 36 | offstage: isLock??false, |
37 | child: Container( | 37 | child: Container( |
38 | - height: 180.w, | ||
39 | - width: 180.w, | 38 | + height: 180.h, |
39 | + width: 180.h, | ||
40 | color: const Color.fromRGBO(1, 1, 0, 0.5), | 40 | color: const Color.fromRGBO(1, 1, 0, 0.5), |
41 | ), | 41 | ), |
42 | ), | 42 | ), |