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

@@ -53,7 +53,7 @@ class OverlayPop extends StatelessWidget {
style: ButtonStyle(
padding: WidgetStateProperty.all(EdgeInsets.zero),
),
onPressed: () => closeFn!(),
onPressed: () => closeFn?.call(),
icon: const Icon(
Icons.close,
size: 18,
@@ -93,7 +93,7 @@ class OverlayPop extends StatelessWidget {
: (videoItem.cover as String).http2https)
],
);
closeFn!();
closeFn?.call();
},
icon: const Icon(Icons.download, size: 20),
)