Flutter相机带图片压缩,定位,闪光灯,切换摄像头

Flutter相机带图片压缩,定位,闪光灯,切换摄像头,第1张

一个小功能,拿去可以直接使用的;

所需插件:

#相机

camera: ^0.8.1

#图片压缩

flutter_image_compress: ^1.0.0

#文件

path_provider: ^2.0.1

http_parser: ^4.0.0

#定位

amap_flutter_location: ^3.0.0

import 'dart:io';

import 'package:bcflutter/util/dialog_utils.dart';
import 'package:bcflutter/util/http_utils.dart';
import 'package:bcflutter/util/location_utils.dart';
import 'package:bcflutter/util/toast.dart';
import 'package:camera/camera.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
import 'package:flutter_image_compress/flutter_image_compress.dart';
import 'package:http_parser/http_parser.dart';
import 'package:path_provider/path_provider.dart';
import 'package:dio/dio.dart' as dio;

import 'app_text_widget.dart';

///自

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/994468.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-21
下一篇 2022-05-21

发表评论

登录后才能评论

评论列表(0条)

保存