main
王亚玲 11 months ago
parent 5f5579dc5a
commit 1568844f3a

@ -1276,7 +1276,7 @@ class _ChatKFPageState extends State<ChatKFPage>
// //
Future<void> _pickImage() async { Future<void> _pickImage() async {
bool permission = await Permission.camera.isGranted; bool permission = await Permission.storage.isGranted;
if (!permission) { if (!permission) {
Alert.show( Alert.show(
@ -1541,7 +1541,7 @@ class _ChatKFPageState extends State<ChatKFPage>
Future<void> _pickVideo() async { Future<void> _pickVideo() async {
try { try {
bool permission = await Permission.camera.isGranted; bool permission = await Permission.storage.isGranted;
if (!permission) { if (!permission) {
Alert.show( Alert.show(
context, context,

Loading…
Cancel
Save