File tree Expand file tree Collapse file tree 3 files changed +1
-473
lines changed Expand file tree Collapse file tree 3 files changed +1
-473
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ import 'package:wechat_assets_picker/wechat_assets_picker.dart';
18
18
import '../constants/constants.dart' ;
19
19
import 'builder/fade_image_builder.dart' ;
20
20
import 'builder/slide_page_transition_builder.dart' ;
21
- import 'camera_picker.dart' ;
22
21
import 'fixed_appbar.dart' ;
23
22
24
23
class AssetPicker extends StatelessWidget {
@@ -184,27 +183,6 @@ class AssetPicker extends StatelessWidget {
184
183
}
185
184
}
186
185
187
- /// Static method to create [AssetEntity] through camera.
188
- /// 通过相机创建 [AssetEntity] 的静态方法
189
- static Future <AssetEntity > pickFromCamera (
190
- BuildContext context, {
191
- bool shouldKeptInLocal = true ,
192
- }) async {
193
- final AssetEntity result = await Navigator .of (
194
- context,
195
- rootNavigator: true ,
196
- ).push <AssetEntity >(
197
- SlidePageTransitionBuilder <AssetEntity >(
198
- builder: CameraPicker (
199
- shouldKeptInLocal: shouldKeptInLocal,
200
- ),
201
- transitionCurve: Curves .easeIn,
202
- transitionDuration: const Duration (milliseconds: 300 ),
203
- ),
204
- );
205
- return result;
206
- }
207
-
208
186
/// Register observe callback with assets changes.
209
187
/// 注册资源(图库)变化的监听回调
210
188
static void registerObserve ([ValueChanged <MethodCall > callback]) {
You can’t perform that action at this time.
0 commit comments