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