Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-02-04 19:54:44 +08:00
parent c099738802
commit 672375b925
2 changed files with 11 additions and 9 deletions

View File

@@ -708,13 +708,12 @@ class HeaderControlState extends State<HeaderControl>
onTap: () async {
Get.back();
try {
final FilePickerResult? file = await FilePicker.platform
.pickFiles();
if (file != null) {
final first = file.files.first;
final path = first.path;
final result = await FilePicker.platform.pickFiles();
if (result != null) {
final file = result.files.single;
final path = file.path;
if (path != null) {
final name = first.name;
final name = file.name;
final length = videoDetailCtr.subtitles.length;
if (name.endsWith('.json')) {
final file = File(path);