一个小功能,拿去可以直接使用的;
所需插件:
#相机
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'; ///自
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)