|
@@ -1,3 +1,4 @@
|
|
|
|
+import 'package:cs_resources/theme/app_colors_theme.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:wechat_camera_picker/wechat_camera_picker.dart';
|
|
import 'package:wechat_camera_picker/wechat_camera_picker.dart';
|
|
import 'package:flutter/services.dart';
|
|
import 'package:flutter/services.dart';
|
|
@@ -14,6 +15,9 @@ class CameraEngine {
|
|
enableRecording: false,
|
|
enableRecording: false,
|
|
theme: ThemeData(
|
|
theme: ThemeData(
|
|
brightness: Brightness.dark,
|
|
brightness: Brightness.dark,
|
|
|
|
+ colorScheme: const ColorScheme.dark(
|
|
|
|
+ secondary: AppColorsTheme.colorPrimary, //内部按钮是这个颜色
|
|
|
|
+ ),
|
|
appBarTheme: AppBarTheme(
|
|
appBarTheme: AppBarTheme(
|
|
systemOverlayStyle: SystemUiOverlayStyle.dark.copyWith(
|
|
systemOverlayStyle: SystemUiOverlayStyle.dark.copyWith(
|
|
statusBarColor: Colors.transparent,
|
|
statusBarColor: Colors.transparent,
|
|
@@ -42,8 +46,11 @@ class CameraEngine {
|
|
maximumRecordingDuration: Duration(seconds: maxRecordInSeconds),
|
|
maximumRecordingDuration: Duration(seconds: maxRecordInSeconds),
|
|
theme: ThemeData(
|
|
theme: ThemeData(
|
|
brightness: Brightness.dark,
|
|
brightness: Brightness.dark,
|
|
|
|
+ colorScheme: const ColorScheme.dark(
|
|
|
|
+ secondary: AppColorsTheme.colorPrimary,
|
|
|
|
+ ),
|
|
appBarTheme: AppBarTheme(
|
|
appBarTheme: AppBarTheme(
|
|
- systemOverlayStyle: SystemUiOverlayStyle.dark.copyWith(
|
|
|
|
|
|
+ systemOverlayStyle: SystemUiOverlayStyle.light.copyWith(
|
|
statusBarColor: Colors.transparent,
|
|
statusBarColor: Colors.transparent,
|
|
statusBarBrightness: Brightness.dark,
|
|
statusBarBrightness: Brightness.dark,
|
|
statusBarIconBrightness: Brightness.light,
|
|
statusBarIconBrightness: Brightness.light,
|