Skip to content

Commit

Permalink
⚡️ Final classes
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 committed Dec 9, 2023
1 parent f1d5d51 commit 012c156
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion example/lib/models/picker_method.dart
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ List<PickMethod> pickMethods(BuildContext context) {
}

/// Define a regular pick method.
class PickMethod {
final class PickMethod {
const PickMethod({
required this.icon,
required this.name,
Expand Down
2 changes: 1 addition & 1 deletion lib/src/constants/config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import 'type_defs.dart';
/// Configurations for the [CameraPicker].
/// [CameraPicker] 的配置项
/// {@endtemplate}
class CameraPickerConfig {
final class CameraPickerConfig {
const CameraPickerConfig({
this.enableRecording = false,
this.onlyEnableRecording = false,
Expand Down
2 changes: 1 addition & 1 deletion lib/src/constants/constants.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import '../delegates/camera_picker_text_delegate.dart';

export 'package:photo_manager/photo_manager.dart';

class Constants {
final class Constants {
const Constants._();

static CameraPickerTextDelegate textDelegate =
Expand Down
2 changes: 1 addition & 1 deletion lib/src/widgets/builder/tween_animation_builder_2.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import 'package:flutter/material.dart';

class TweenAnimationBuilder2<A, B> extends StatelessWidget {
final class TweenAnimationBuilder2<A, B> extends StatelessWidget {
const TweenAnimationBuilder2({
super.key,
required this.firstTween,
Expand Down
4 changes: 2 additions & 2 deletions lib/src/widgets/camera_focus_point.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import 'package:flutter/material.dart';

import 'builder/tween_animation_builder_2.dart';

class CameraFocusPoint extends StatelessWidget {
final class CameraFocusPoint extends StatelessWidget {
const CameraFocusPoint({
super.key,
required this.size,
Expand Down Expand Up @@ -41,7 +41,7 @@ class CameraFocusPoint extends StatelessWidget {

/// A [CustomPaint] that draws the exposure point with four arcs and one circle.
/// 包含了四条弧及一个圆的曝光点绘制。
class CameraFocusPointPainter extends CustomPainter {
final class CameraFocusPointPainter extends CustomPainter {
const CameraFocusPointPainter({
required this.size,
required this.color,
Expand Down
2 changes: 1 addition & 1 deletion lib/src/widgets/camera_progress_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import 'package:flutter/material.dart';
import '../constants/styles.dart';
import '../internals/methods.dart';

class CameraProgressButton extends StatefulWidget {
final class CameraProgressButton extends StatefulWidget {
const CameraProgressButton({
super.key,
required this.isAnimating,
Expand Down

0 comments on commit 012c156

Please sign in to comment.