opt: code

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2024-11-28 16:16:40 +08:00
parent 1f71dc9a67
commit f4866258d2
41 changed files with 943 additions and 1223 deletions

View File

@@ -312,7 +312,8 @@ class _BangumiInfoState extends State<BangumiInfo>
),
Row(
children: [
StatView(
statView(
context: context,
theme: 'gray',
view: !widget.loadingStatus
? widget.bangumiDetail!.stat!['views']
@@ -320,7 +321,8 @@ class _BangumiInfoState extends State<BangumiInfo>
size: 'medium',
),
const SizedBox(width: 6),
StatDanMu(
statDanMu(
context: context,
theme: 'gray',
danmu: !widget.loadingStatus
? widget

View File

@@ -59,13 +59,15 @@ class IntroDetail extends StatelessWidget {
const SizedBox(height: 4),
Row(
children: [
StatView(
statView(
context: context,
theme: 'gray',
view: bangumiDetail!.stat!['views'],
size: 'medium',
),
const SizedBox(width: 6),
StatDanMu(
statDanMu(
context: context,
theme: 'gray',
danmu: bangumiDetail!.stat!['danmakus'],
size: 'medium',

View File

@@ -123,20 +123,15 @@ class BangumiCardV extends StatelessWidget {
}),
),
),
BangumiContent(bangumiItem: bangumiItem)
bagumiContent(context)
],
),
),
),
);
}
}
class BangumiContent extends StatelessWidget {
const BangumiContent({super.key, required this.bangumiItem});
final dynamic bangumiItem;
@override
Widget build(BuildContext context) {
Widget bagumiContent(context) {
return Expanded(
child: Padding(
// 多列