fix: font issue in md editor and preview; builtin command selector issue.
This commit is contained in:
@@ -605,13 +605,11 @@ Widget _buildCommandCellsEditing(BuildContext context) {
|
||||
('${LocaleKeys.built_in_commands}.$e').tr(),
|
||||
textScaleFactor: .8,
|
||||
),
|
||||
value: ('${LocaleKeys.built_in_commands}.$e').tr(),
|
||||
value: e,
|
||||
),
|
||||
)
|
||||
.toList(),
|
||||
value:
|
||||
('${LocaleKeys.built_in_commands}.${(builtInCommands.contains(gesture.command) ? gesture.command : builtInCommands.first)!}')
|
||||
.tr(),
|
||||
value: (builtInCommands.contains(gesture.command) ? gesture.command : builtInCommands.first)!,
|
||||
onChanged: (value) => context.read<GesturePropProvider>().setProps(
|
||||
command: value,
|
||||
editMode: true,
|
||||
|
||||
@@ -60,6 +60,8 @@ class _DMarkdownFieldState extends State<DMarkdownField> {
|
||||
? context.watch<SettingsProvider>().activeColor ?? Color(0xff565656)
|
||||
: Color(0xff565656)),
|
||||
),
|
||||
child: DefaultTextStyle(
|
||||
style: context.t.textTheme.bodyText2!,
|
||||
child: isPreview
|
||||
? GestureDetector(
|
||||
onTap: widget.readOnly
|
||||
@@ -125,6 +127,7 @@ class _DMarkdownFieldState extends State<DMarkdownField> {
|
||||
ActionType.h5: LocaleKeys.md_editor_h5.tr(),
|
||||
},
|
||||
),
|
||||
),
|
||||
);
|
||||
}),
|
||||
);
|
||||
|
||||
@@ -237,6 +237,8 @@ class _MarketWidgetState extends State<MarketWidget> {
|
||||
),
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.only(left: 8),
|
||||
child: DefaultTextStyle(
|
||||
style: context.t.textTheme.bodyText2!,
|
||||
child: MdPreview(
|
||||
text: _schemes.firstWhereOrNull((e) => e.uuid == _selected)?.description ?? '',
|
||||
widgetImage: (imageUrl) => CachedNetworkImage(
|
||||
@@ -254,6 +256,7 @@ class _MarketWidgetState extends State<MarketWidget> {
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
@@ -242,6 +242,8 @@ class _MeWidgetState extends State<MeWidget> {
|
||||
),
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.only(left: 8),
|
||||
child: DefaultTextStyle(
|
||||
style: context.t.textTheme.bodyText2!,
|
||||
child: MdPreview(
|
||||
text: _schemes.firstWhereOrNull((e) => e.uuid == _selected)?.description ?? '',
|
||||
onTapLink: H.launchURL,
|
||||
@@ -258,6 +260,7 @@ class _MeWidgetState extends State<MeWidget> {
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
],
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user