File tree Expand file tree Collapse file tree 3 files changed +12
-7
lines changed
editor/block_component/image_block_component Expand file tree Collapse file tree 3 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -209,9 +209,12 @@ class _UploadImageMenuState extends State<UploadImageMenu> {
209
209
);
210
210
}
211
211
},
212
- child: const Text (
212
+ child: Text (
213
213
'Upload' ,
214
- style: TextStyle (color: Colors .white, fontSize: 14.0 ),
214
+ style: TextStyle (
215
+ color: Theme .of (context).colorScheme.onPrimary,
216
+ fontSize: 14.0 ,
217
+ ),
215
218
),
216
219
),
217
220
);
Original file line number Diff line number Diff line change @@ -81,11 +81,10 @@ class ActionMenuItemWidget extends StatelessWidget {
81
81
82
82
@override
83
83
Widget build (BuildContext context) {
84
- final editorStyle = EditorStyle .of (context);
85
84
final isSelected = item.selected? .call () ?? false ;
86
85
final color = isSelected
87
- ? editorStyle ? .selectionMenuItemSelectedIconColor
88
- : editorStyle ? .selectionMenuItemIconColor ;
86
+ ? Theme . of (context).colorScheme.primary
87
+ : Theme . of (context).colorScheme.tertiary ;
89
88
90
89
var icon = item.iconBuilder (size: iconSize, color: color);
91
90
var itemWidget = Padding (
Original file line number Diff line number Diff line change @@ -154,9 +154,12 @@ class _ImageUploadMenuState extends State<ImageUploadMenu> {
154
154
),
155
155
),
156
156
onPressed: () => widget.onUpload (_textEditingController.text),
157
- child: const Text (
157
+ child: Text (
158
158
'Upload' ,
159
- style: TextStyle (color: Colors .white, fontSize: 14.0 ),
159
+ style: TextStyle (
160
+ color: Theme .of (context).colorScheme.onPrimary,
161
+ fontSize: 14.0 ,
162
+ ),
160
163
),
161
164
),
162
165
);
You can’t perform that action at this time.
0 commit comments