[question] Background color not changing properly #571
Unanswered
AmanRajSinghMourya
asked this question in
Q&A
Replies: 1 comment
-
|
The problem is that you're using custom For example: appBar: (editor, rebuildStream) {
return ReactiveCustomAppbar(
builder: (context) {
return ImageEditorAppBar(
// HERE: Add your color directly to your widget.
background: colorScheme.backgroundBase,
enableRedo: editor.canRedo,
enableUndo: editor.canUndo,
key: const Key('image_editor_app_bar'),
redo: () => editor.redoAction(),
undo: () => editor.undoAction(),
configs: editor.configs,
done: () async {
final Uint8List bytes =
await editorKey.currentState!.captureEditorImage();
await saveImage(bytes);
},
close: () {
_showExitConfirmationDialog(context);
},
isMainEditor: true,
);
},
stream: rebuildStream,
);
}, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
So I have passed my color scheme and as u can see the 1st image, the app is in light mode and then when I switch to dark mode the main body color changes but the bottom bar and the app bar color is consistent
I am not able to understand why this is happening I use the same color scheme throughout the app it works perfectly.
This below is the code where I provide the same color backgroundBase to each widget but its changing for some and not changing for some>
I am missing something. Please let me know. Thank you!!
Beta Was this translation helpful? Give feedback.
All reactions