File tree Expand file tree Collapse file tree 4 files changed +13
-3
lines changed Expand file tree Collapse file tree 4 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,12 @@ that can be found in the LICENSE file. -->
4
4
5
5
# Changelog
6
6
7
+ ## 3.6.1
8
+
9
+ ### New features
10
+
11
+ - Add torch flashlight support. (#137 )
12
+
7
13
## 3.6.0
8
14
9
15
### New features
Original file line number Diff line number Diff line change 1
1
name : wechat_camera_picker_demo
2
2
description : A new Flutter project.
3
- version : 3.6.0+16
3
+ version : 3.6.1+17
4
4
publish_to : none
5
5
6
6
environment :
Original file line number Diff line number Diff line change @@ -379,6 +379,8 @@ class CameraPickerState extends State<CameraPicker>
379
379
newFlashMode = FlashMode .always;
380
380
break ;
381
381
case FlashMode .always:
382
+ newFlashMode = FlashMode .torch;
383
+ break ;
382
384
case FlashMode .torch:
383
385
newFlashMode = FlashMode .off;
384
386
break ;
@@ -851,9 +853,11 @@ class CameraPickerState extends State<CameraPicker>
851
853
icon = Icons .flash_auto;
852
854
break ;
853
855
case FlashMode .always:
854
- case FlashMode .torch:
855
856
icon = Icons .flash_on;
856
857
break ;
858
+ case FlashMode .torch:
859
+ icon = Icons .flashlight_on;
860
+ break ;
857
861
}
858
862
return IconButton (
859
863
onPressed: switchFlashesMode,
Original file line number Diff line number Diff line change 1
1
name : wechat_camera_picker
2
2
description : A camera picker which is an extension to wechat_assets_picker, but can be run separately.
3
- version : 3.6.0
3
+ version : 3.6.1
4
4
homepage : https://github.com/fluttercandies/flutter_wechat_camera_picker
5
5
6
6
environment :
You can’t perform that action at this time.
0 commit comments