Commit 0fd4b04b3d9405f5dc76ec7d6c6ab92d064ba6c7

Authored by liangchengyou
1 parent 688b7b5c

feat:跟新适配

lib/listen/listen_page.dart
... ... @@ -39,7 +39,7 @@ class _ListenPageView extends StatelessWidget {
39 39 return ListView.builder(
40 40 itemCount: 10,
41 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 43 itemBuilder: (BuildContext context,int index){
44 44 return ListenItemWidget(
45 45 isLock: (index < 5),
... ...
lib/listen/widgets/listen_item_widget.dart
... ... @@ -28,15 +28,15 @@ class ListenItemWidget extends StatelessWidget {
28 28 children: [
29 29 Image.network(
30 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 33 fit: BoxFit.fill,
34 34 ),
35 35 Offstage(
36 36 offstage: isLock??false,
37 37 child: Container(
38   - height: 180.w,
39   - width: 180.w,
  38 + height: 180.h,
  39 + width: 180.h,
40 40 color: const Color.fromRGBO(1, 1, 0, 0.5),
41 41 ),
42 42 ),
... ...