TF-1878 Fix font family not changed correctly in composer

(cherry picked from commit a4c72a79abf429aa2938c8218308f1ac16f89d76)
This commit is contained in:
dab246
2023-06-16 12:45:26 +07:00
committed by Dat H. Pham
parent f589b11637
commit 68145165be
3 changed files with 73 additions and 14 deletions
@@ -174,7 +174,7 @@ class DropDownButtonWidget<T> extends StatelessWidget {
return item.name ?? '';
}
if (item is FontNameType) {
return item.fontFamily;
return item.title;
}
if (item is rich_text_composer.SafeFont) {
return item.name;