File tree Expand file tree Collapse file tree 6 files changed +7
-7
lines changed Expand file tree Collapse file tree 6 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ List<PickMethod> pickMethods(BuildContext context) {
182
182
}
183
183
184
184
/// Define a regular pick method.
185
- class PickMethod {
185
+ final class PickMethod {
186
186
const PickMethod ({
187
187
required this .icon,
188
188
required this .name,
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import 'type_defs.dart';
13
13
/// Configurations for the [CameraPicker] .
14
14
/// [CameraPicker] 的配置项
15
15
/// {@endtemplate}
16
- class CameraPickerConfig {
16
+ final class CameraPickerConfig {
17
17
const CameraPickerConfig ({
18
18
this .enableRecording = false ,
19
19
this .onlyEnableRecording = false ,
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import '../delegates/camera_picker_text_delegate.dart';
6
6
7
7
export 'package:photo_manager/photo_manager.dart' ;
8
8
9
- class Constants {
9
+ final class Constants {
10
10
const Constants ._();
11
11
12
12
static CameraPickerTextDelegate textDelegate =
Original file line number Diff line number Diff line change 4
4
5
5
import 'package:flutter/material.dart' ;
6
6
7
- class TweenAnimationBuilder2 <A , B > extends StatelessWidget {
7
+ final class TweenAnimationBuilder2 <A , B > extends StatelessWidget {
8
8
const TweenAnimationBuilder2 ({
9
9
super .key,
10
10
required this .firstTween,
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import 'package:flutter/material.dart';
6
6
7
7
import 'builder/tween_animation_builder_2.dart' ;
8
8
9
- class CameraFocusPoint extends StatelessWidget {
9
+ final class CameraFocusPoint extends StatelessWidget {
10
10
const CameraFocusPoint ({
11
11
super .key,
12
12
required this .size,
@@ -41,7 +41,7 @@ class CameraFocusPoint extends StatelessWidget {
41
41
42
42
/// A [CustomPaint] that draws the exposure point with four arcs and one circle.
43
43
/// 包含了四条弧及一个圆的曝光点绘制。
44
- class CameraFocusPointPainter extends CustomPainter {
44
+ final class CameraFocusPointPainter extends CustomPainter {
45
45
const CameraFocusPointPainter ({
46
46
required this .size,
47
47
required this .color,
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import 'package:flutter/material.dart';
7
7
import '../constants/styles.dart' ;
8
8
import '../internals/methods.dart' ;
9
9
10
- class CameraProgressButton extends StatefulWidget {
10
+ final class CameraProgressButton extends StatefulWidget {
11
11
const CameraProgressButton ({
12
12
super .key,
13
13
required this .isAnimating,
You can’t perform that action at this time.
0 commit comments