Skip to content

Commit ab24ef4

Browse files
committed
📝 Fix docs references exception
1 parent e802cd8 commit ab24ef4

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

lib/src/constants/type_defs.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,17 @@ typedef CameraErrorHandler = void Function(
4141
);
4242

4343
/// {@template wechat_camera_picker.ForegroundBuilder}
44-
/// Build the foreground/overlay widget with the given [cameraValue].
45-
/// 根据给定的 [cameraValue] 构建自定义的前景 widget
44+
/// Build the foreground/overlay widget with the given [CameraValue].
45+
/// 根据给定的 [CameraValue] 构建自定义的前景 widget
4646
/// {@endtemplate}
4747
typedef ForegroundBuilder = Widget Function(
4848
BuildContext context,
4949
CameraValue cameraValue,
5050
);
5151

5252
/// {@template wechat_camera_picker.PreviewTransformBuilder}
53-
/// Build the transformed widget with the given [controller].
54-
/// 根据给定的 [controller] 构建自定义的变换 widget
53+
/// Build the transformed widget with the given [CameraController].
54+
/// 根据给定的 [CameraController] 构建自定义的变换 widget
5555
/// {@endtemplate}
5656
typedef PreviewTransformBuilder = Widget? Function(
5757
BuildContext context,

lib/src/widgets/camera_picker.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ class CameraPickerState extends State<CameraPicker>
270270
late final ThemeData _theme =
271271
config.theme ?? CameraPicker.themeData(C.themeColor);
272272

273-
/// Get [ThemeData] of the [CameraPicker] through [Constants.pickerKey].
273+
/// Get [ThemeData] of the [CameraPicker] through the key.
274274
/// 通过常量全局 Key 获取当前选择器的主题
275275
ThemeData get theme => _theme;
276276

lib/src/widgets/camera_picker_page_route.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
import 'package:flutter/material.dart';
66

7-
/// Build [AssetPickerPageRoute] with the given generic type.
8-
/// 构建匹配泛型的 [AssetPickerPageRoute]
7+
/// Build [CameraPickerPageRoute] with the given generic type.
8+
/// 构建匹配泛型的 [CameraPickerPageRoute]
99
typedef CameraPickerPageRouteBuilder<T> = CameraPickerPageRoute<T> Function(
1010
Widget picker,
1111
);

0 commit comments

Comments
 (0)