Skip to content

Commit

Permalink
$[***.colorから呼び出されるカラーピッカーの修正
Browse files Browse the repository at this point in the history
  • Loading branch information
Npepperlinux committed Oct 23, 2024
1 parent 99963e1 commit eb74e82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/view/common/note_create/mfm_fn_keyboard.dart
Original file line number Diff line number Diff line change
Expand Up @@ -214,13 +214,13 @@ class MfmFnKeyboard extends ConsumerWidget {
}
if ((mfmFnName == "fg" || mfmFnName == "bg" || mfmFnName == "border") &&
arg.name == "color") {
final result = await showDialog<Color?>(
final result = await showDialog<ValueNotifier<Color>>(
context: parentContext,
builder: (context) => const ColorPickerDialog(),
);
if (result != null) {
controller.insert(
"=${result.red.toRadixString(16).padLeft(2, "0")}${result.green.toRadixString(16).padLeft(2, "0")}${result.blue.toRadixString(16).padLeft(2, "0")} ",
"=${result.value.red.toRadixString(16).padLeft(2, "0")}${result.value.green.toRadixString(16).padLeft(2, "0")}${result.value.blue.toRadixString(16).padLeft(2, "0")} ",
);
} else {
controller.insert("=f00 ");
Expand Down

0 comments on commit eb74e82

Please sign in to comment.