Skip to content

Commit 132483c

Browse files
committed
Remove null safety symbol from WidgetsBinding.instance and remove property brightness
1 parent abcfa44 commit 132483c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/coderjava_image_editor_pro.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class _CoderJavaImageEditorProState extends State<CoderJavaImageEditorPro> {
103103

104104
@override
105105
void initState() {
106-
WidgetsBinding.instance!.addPostFrameCallback((_) async {
106+
WidgetsBinding.instance.addPostFrameCallback((_) async {
107107
if (widget.defaultPathImage != null && widget.defaultPathImage!.isNotEmpty) {
108108
var fileImage = File(widget.defaultPathImage!);
109109
if (fileImage.existsSync()) {
@@ -176,7 +176,6 @@ class _CoderJavaImageEditorProState extends State<CoderJavaImageEditorPro> {
176176
),
177177
),
178178
],
179-
brightness: Brightness.dark,
180179
backgroundColor: widget.appBarColor ?? Colors.black87,
181180
),
182181
bottomNavigationBar: openbottomsheet ? Container() : _buildWidgetListMenu(),

0 commit comments

Comments
 (0)