File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ import 'camera_picker_viewer.dart';
28
28
import 'exposure_point_widget.dart' ;
29
29
30
30
const Color _lockedColor = Colors .amber;
31
- const Duration _kRouteDuration = Duration (milliseconds: 300 );
31
+ const Duration _kDuration = Duration (milliseconds: 300 );
32
32
33
33
/// Create a camera picker integrate with [CameraDescription] .
34
34
/// 通过 [CameraDescription] 整合的拍照选择
@@ -1052,7 +1052,7 @@ class CameraPickerState extends State<CameraPicker>
1052
1052
return ValueListenableBuilder <bool >(
1053
1053
valueListenable: _isExposureModeDisplays,
1054
1054
builder: (_, bool value, Widget ? child) => AnimatedOpacity (
1055
- duration: _kRouteDuration ,
1055
+ duration: _kDuration ,
1056
1056
opacity: value ? 1 : 0 ,
1057
1057
child: child,
1058
1058
),
@@ -1131,7 +1131,7 @@ class CameraPickerState extends State<CameraPicker>
1131
1131
ValueListenableBuilder <bool >(
1132
1132
valueListenable: _isExposureModeDisplays,
1133
1133
builder: (_, bool value, Widget ? child) => AnimatedOpacity (
1134
- duration: _kRouteDuration ,
1134
+ duration: _kDuration ,
1135
1135
opacity: value ? 1 : 0 ,
1136
1136
child: child,
1137
1137
),
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ class CameraPickerPageRoute<T> extends PageRoute<T> {
16
16
CameraPickerPageRoute ({
17
17
required this .builder,
18
18
this .transitionCurve = Curves .easeIn,
19
- this .transitionDuration = const Duration (milliseconds: 500 ),
19
+ this .transitionDuration = const Duration (milliseconds: 300 ),
20
20
this .barrierColor,
21
21
this .barrierDismissible = false ,
22
22
this .barrierLabel,
You can’t perform that action at this time.
0 commit comments