2
2
/// [Author] Alex (https://github.com/AlexV525)
3
3
/// [Date] 2020/7/13 11:08
4
4
///
5
+ // ignore_for_file: deprecated_member_use
5
6
import 'dart:async' ;
6
7
import 'dart:io' ;
7
8
import 'dart:math' as math;
@@ -235,7 +236,6 @@ class CameraPicker extends StatefulWidget {
235
236
static ThemeData themeData (Color themeColor) {
236
237
return ThemeData .dark ().copyWith (
237
238
primaryColor: Colors .grey[900 ],
238
- primaryColorBrightness: Brightness .dark,
239
239
primaryColorLight: Colors .grey[900 ],
240
240
primaryColorDark: Colors .grey[900 ],
241
241
canvasColor: Colors .grey[850 ],
@@ -438,7 +438,6 @@ class CameraPickerState extends State<CameraPicker>
438
438
/// Hide system status bar automatically when the platform is not Android.
439
439
/// 在非 Android 设备上自动隐藏状态栏
440
440
if (! Platform .isAndroid) {
441
- // ignore: deprecated_member_use
442
441
SystemChrome .setEnabledSystemUIOverlays (< SystemUiOverlay > []);
443
442
}
444
443
@@ -448,7 +447,6 @@ class CameraPickerState extends State<CameraPicker>
448
447
@override
449
448
void dispose () {
450
449
if (! Platform .isAndroid) {
451
- // ignore: deprecated_member_use
452
450
SystemChrome .setEnabledSystemUIOverlays (SystemUiOverlay .values);
453
451
}
454
452
WidgetsBinding .instance? .removeObserver (this );
@@ -941,12 +939,14 @@ class CameraPickerState extends State<CameraPicker>
941
939
if (enableRecording && ! enableTapRecording) {
942
940
return recordDetectionCancel;
943
941
}
942
+ return null ;
944
943
}
945
944
946
945
PointerMoveEventListener ? onPointerMove (BoxConstraints c) {
947
946
if (enablePullToZoomInRecord) {
948
947
return (PointerMoveEvent e) => onShootingButtonMove (e, c);
949
948
}
949
+ return null ;
950
950
}
951
951
952
952
GestureTapCallback ? get onTap {
@@ -964,6 +964,7 @@ class CameraPickerState extends State<CameraPicker>
964
964
if (! onlyEnableRecording) {
965
965
return takePicture;
966
966
}
967
+ return null ;
967
968
}
968
969
969
970
String ? get onTapHint {
@@ -976,18 +977,21 @@ class CameraPickerState extends State<CameraPicker>
976
977
if (! onlyEnableRecording) {
977
978
return _textDelegate.sActionShootHint;
978
979
}
980
+ return null ;
979
981
}
980
982
981
983
GestureLongPressCallback ? get onLongPress {
982
984
if (enableRecording && ! enableTapRecording) {
983
985
return recordDetection;
984
986
}
987
+ return null ;
985
988
}
986
989
987
990
String ? get onLongPressHint {
988
991
if (enableRecording && ! enableTapRecording) {
989
992
return _textDelegate.sActionRecordHint;
990
993
}
994
+ return null ;
991
995
}
992
996
993
997
////////////////////////////////////////////////////////////////////////////
0 commit comments