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

@@ -444,7 +444,8 @@ class _VideoInfoState extends State<VideoInfo> with TickerProviderStateMixin {
onTap: showIntroDetail,
child: Row(
children: <Widget>[
StatView(
statView(
context: context,
theme: 'gray',
view: !loadingStatus
? widget.videoDetail?.stat?.view ?? '-'
@@ -452,7 +453,8 @@ class _VideoInfoState extends State<VideoInfo> with TickerProviderStateMixin {
size: 'medium',
),
const SizedBox(width: 10),
StatDanMu(
statDanMu(
context: context,
theme: 'gray',
danmu: !loadingStatus
? widget.videoDetail?.stat?.danmu ?? '-'

View File

@@ -32,13 +32,11 @@ class ActionRowItem extends StatelessWidget {
child: InkWell(
onTap: () => {
feedBack(),
onTap!(),
onTap?.call(),
},
onLongPress: () {
feedBack();
if (onLongPress != null) {
onLongPress!();
}
onLongPress?.call();
},
child: Padding(
padding: const EdgeInsets.fromLTRB(15, 7, 15, 7),

View File

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

View File

@@ -61,7 +61,7 @@ class MenuRow extends StatelessWidget {
child: InkWell(
onTap: () => {
feedBack(),
onTap!(),
onTap?.call(),
},
child: Container(
padding: const EdgeInsets.fromLTRB(13, 5.5, 13, 4.5),
@@ -120,7 +120,7 @@ class ActionRowLineItem extends StatelessWidget {
child: InkWell(
onTap: () => {
feedBack(),
onTap!(),
onTap?.call(),
},
child: Container(
padding: const EdgeInsets.fromLTRB(13, 5.5, 13, 4.5),