|
|
@ -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,
|
|
|
|