feat: 播放处理,个人中心,
This commit is contained in:
1 parent
e59ac2177b
commit
4ccea08472
37 files changed
+1425
-115
No files matched your search
@@ -52,7 +52,13 @@ class DailyQuestWidget extends StatelessWidget {
|
||||
child: Row(
|
||||
spacing: 5.w,
|
||||
children: List.generate(dramaList.length-1, (index) {
|
||||
return HelpImg.network(dramaList[index+1].imageUrl, width: 95.w, height: 50.h, fit: BoxFit.cover);
|
||||
final drama = dramaList[index+1];
|
||||
return InkWell(
|
||||
onTap: () {
|
||||
HelpNav.to(DramaDetailPage(dramaBean: drama));
|
||||
},
|
||||
child: HelpImg.network(drama.imageUrl, width: 95.w, height: 50.h, fit: BoxFit.cover),
|
||||
);
|
||||
})
|
||||
),
|
||||
);
|
||||
|
||||
@@ -3,6 +3,8 @@ import 'package:skywood/main/lib_file.dart';
|
||||
import 'package:skywood/utils/models/drama/skywood_category.dart';
|
||||
import 'package:skywood/utils/tools/widgets/sky_common_widget.dart';
|
||||
|
||||
import '../players/page/drama_detail_page.dart';
|
||||
|
||||
class HomeCateWidget extends StatelessWidget {
|
||||
|
||||
const HomeCateWidget({super.key,
|
||||
@@ -25,7 +27,8 @@ class HomeCateWidget extends StatelessWidget {
|
||||
),
|
||||
itemCount: categories.length,
|
||||
itemBuilder: (context, index) {
|
||||
return _buildCateItem(categories[index], index);}
|
||||
return _buildCateItem(categories[index], index);
|
||||
}
|
||||
),
|
||||
);
|
||||
}
|
||||
@@ -40,7 +43,9 @@ class HomeCateWidget extends StatelessWidget {
|
||||
child: _customText(category.name,),
|
||||
)
|
||||
],
|
||||
);
|
||||
).addInkWell(onTap: () {
|
||||
// HelpNav.to(DramaDetailPage(dramaBean: drama));
|
||||
});
|
||||
}
|
||||
|
||||
_customText(String text) {
|
||||
|
||||
@@ -3,6 +3,7 @@ import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import 'package:skywood/main/lib_file.dart';
|
||||
|
||||
import '../../../utils/models/drama/skywood_drama.dart';
|
||||
import '../players/page/drama_detail_page.dart';
|
||||
|
||||
class HotCartridgeWidget extends StatelessWidget {
|
||||
|
||||
@@ -38,6 +39,8 @@ class HotCartridgeWidget extends StatelessWidget {
|
||||
),
|
||||
HelpImg.asset(index<3?ConstImg.hotBg1:ConstImg.hotBg2, width: 110.w, height: 174.h)
|
||||
],
|
||||
);
|
||||
).addInkWell(onTap: () {
|
||||
HelpNav.to(DramaDetailPage(dramaBean: drama));
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -67,7 +67,7 @@ class RankListWidget extends StatelessWidget {
|
||||
Widget _rankIndex(int index) {
|
||||
return SizedBox(
|
||||
width: 40.w,
|
||||
child: SkyText(text: formatNumber(index + 1),
|
||||
child: index < 3 ? _rank123(index) : SkyText(text: formatNumber(index + 1),
|
||||
fontSize: 15,
|
||||
color: CommonColor.black,
|
||||
fontFamily: 'Anton',
|
||||
@@ -77,6 +77,16 @@ class RankListWidget extends StatelessWidget {
|
||||
);
|
||||
}
|
||||
|
||||
Widget _rank123(int index) {
|
||||
String img = '';
|
||||
if (index == 0) img = ConstImg.rank1;
|
||||
if (index == 1) img = ConstImg.rank2;
|
||||
if (index == 2) img = ConstImg.rank3;
|
||||
return Padding(padding: EdgeInsets.only(right: 16.w),
|
||||
child: HelpImg.asset(img, width: 24.w),
|
||||
);
|
||||
}
|
||||
|
||||
String formatNumber(int number) {
|
||||
return number.toString().padLeft(2, '0');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user