Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] 在使用目前最新的8.5.0版本中,发现运行在ios中 筛选RequestType.video不生效。 #454

Closed
chenjiangmin126 opened this issue Jul 15, 2023 · 1 comment
Labels
i: read document The author of the issue didn't read the document. s: invalid This doesn't seem right.

Comments

@chenjiangmin126
Copy link

Describe the bug
在使用目前最新的8.5.0版本中,发现运行在ios中 筛选RequestType.video不生效。

How to reproduce

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:wechat_assets_picker/wechat_assets_picker.dart';

void main() {
  runApp(const MyApp());
  SystemChrome.setSystemUIOverlayStyle(
    SystemUiOverlayStyle.dark.copyWith(statusBarColor: Colors.transparent),
  );
  AssetPicker.registerObserve();
  PhotoManager.setLog(true);
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      title: 'WeChat Asset Picker ',
      home: TestMainPage(),
    );
  }
}

class TestMainPage extends StatefulWidget {
  const TestMainPage({super.key});

  @override
  State<TestMainPage> createState() => _TestMainPageState();
}

class _TestMainPageState extends State<TestMainPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          title: const Text('WeChat Asset Picker'),
        ),
        floatingActionButton: FloatingActionButton(
          onPressed: () async {
            await AssetPicker.pickAssets(
              context,
              pickerConfig: const AssetPickerConfig(
                maxAssets: 1,
                requestType: RequestType.video,
                textDelegate: AssetPickerTextDelegate(),
              ),
            );
          },
        ));
  }
}

Steps to reproduce the behavior:
运行之后可以打开资源选择器。
当筛选RequestType.image 的时候功能正常。只显示图片。
当筛选RequestType.video的时候 没有效果,显示了图片和视频
运行的时候记是iphone12 mini 系统是 16.5.1

Expected behavior
希望能正常筛选视频

Screenshots (If contains)
IMG_FED6F40DC3E9-1

Version information

  • Device: iphone12 mini
  • OS: [e.g. iOS 16.5.1]
  • Package Version: 8.5.0
  • Flutter Version: 3.10.5
@chenjiangmin126 chenjiangmin126 added the await investigate The issue is waiting for further investigation. label Jul 15, 2023
@github-actions github-actions bot added the await triage The issue is waiting for triage. label Jul 15, 2023
@chenjiangmin126 chenjiangmin126 changed the title [BUG] Error with something [BUG] 在使用目前最新的8.5.0版本中,发现运行在ios中 筛选RequestType.video不生效。 Jul 15, 2023
@AlexV525
Copy link
Member

仔细阅读文档

@AlexV525 AlexV525 closed this as not planned Won't fix, can't repro, duplicate, stale Jul 15, 2023
@AlexV525 AlexV525 added s: invalid This doesn't seem right. i: read document The author of the issue didn't read the document. and removed await triage The issue is waiting for triage. await investigate The issue is waiting for further investigation. labels Jul 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
i: read document The author of the issue didn't read the document. s: invalid This doesn't seem right.
Projects
None yet
Development

No branches or pull requests

2 participants