File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -414,7 +414,7 @@ class CameraPickerState extends State<CameraPicker>
414
414
late final ThemeData _theme =
415
415
widget.theme ?? CameraPicker .themeData (C .themeColor);
416
416
417
- /// Get [ThemeData] of the [AssetPicker ] through [Constants.pickerKey] .
417
+ /// Get [ThemeData] of the [CameraPicker ] through [Constants.pickerKey] .
418
418
/// 通过常量全局 Key 获取当前选择器的主题
419
419
ThemeData get theme => _theme;
420
420
@@ -1120,9 +1120,10 @@ class CameraPickerState extends State<CameraPicker>
1120
1120
_initializeWrapper (
1121
1121
isInitialized: () =>
1122
1122
controller.value.isRecordingVideo && isRecordingRestricted,
1123
- builder: (_, __) => CircleProgressBar (
1123
+ builder: (_, __) => CircularProgressBar (
1124
1124
duration: maximumRecordingDuration! ,
1125
1125
outerRadius: outerSize.width,
1126
+ ringsColor: theme.indicatorColor,
1126
1127
ringsWidth: 2.0 ,
1127
1128
),
1128
1129
),
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ import 'package:flutter/scheduler.dart';
9
9
10
10
import '../constants/styles.dart' ;
11
11
12
- class CircleProgressBar extends StatefulWidget {
13
- const CircleProgressBar ({
12
+ class CircularProgressBar extends StatefulWidget {
13
+ const CircularProgressBar ({
14
14
Key ? key,
15
15
required this .outerRadius,
16
16
required this .ringsWidth,
@@ -26,10 +26,10 @@ class CircleProgressBar extends StatefulWidget {
26
26
final Duration duration;
27
27
28
28
@override
29
- State < StatefulWidget > createState () => CircleProgressState ();
29
+ _CircleProgressState createState () => _CircleProgressState ();
30
30
}
31
31
32
- class CircleProgressState extends State <CircleProgressBar >
32
+ class _CircleProgressState extends State <CircularProgressBar >
33
33
with SingleTickerProviderStateMixin {
34
34
final GlobalKey paintKey = GlobalKey ();
35
35
You can’t perform that action at this time.
0 commit comments