【发布时间】:2020-08-13 12:48:09
【问题描述】:
如此多行并带有编辑器。
编辑:
我的临时解决方案:
final _commentMarkdownTextContributorCreateMissionView = Padding(
padding: EdgeInsets.only(top: 24.0),
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Text("Tout comprendre sur le "),
InkWell(
child: Text(
"Markdown",
style: TextStyle(color: IneatColors.pink),
),
onTap: () async {
if (await canLaunch("https://fr.wikipedia.org/wiki/Markdown")) {
await launch("https://fr.wikipedia.org/wiki/Markdown");
}
},
),
],
),
);
final _contextMissionMarkdownTextInputContributorCreateMissionView =
Padding(
padding: EdgeInsets.only(top: 24.0, bottom: 12.0),
child: MarkdownTextInput(
(String value) => model.setOnTextChangedContext(value),
model.contextMarkdownTextInput,
label: 'Contexte',
),
);
final _contextMissionMarkdownBodyContributorCreateMissionView = Padding(
padding: EdgeInsets.only(top: 24.0, left: 12.0),
child: MarkdownBody(
data: model.contextMarkdownTextInput,
),
);
flutter_markdown: # #Markdown : https://pub:dev/packages/flutter_markdown:
markdown_editable_textinput: # 文字输入:https://pub:dev/packages/markdown_editable_textinput#-example-tab-:
文本字段中的 Markdown 语言有效,但目前还不是工具,所以如果您有解决方案。
你能治愈我吗?兼容flutter web
【问题讨论】:
-
请帮忙!这对我很重要!
-
你试过这个叫做zefyr的包吗..! pub.dev/packages/zefyr。它仍处于早期预览阶段,但可能会有所帮助,您可以根据需要分叉和添加所需的功能。也关注这个issue
-
@MayuriXx 嘿,您是否找到了解决方案。我也需要 Flutter-web 中类似的文本编辑器。我找不到任何解决方案。
-
@SivaPerumal 我编辑了我的帖子并给出了解决方案
-
非常好用的编辑器。令人耳目一新。
标签: flutter web flutter-web