File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,8 @@ class MarkdownField extends StatelessWidget {
121
121
return Padding (
122
122
padding: padding,
123
123
child: TextField (
124
- key: const ValueKey <String >("markdown_editor_plus" ),
124
+ key: key,
125
+ // const ValueKey<String>("markdown_editor_plus"),
125
126
maxLines: expands ? null : maxLines,
126
127
minLines: expands ? null : minLines,
127
128
expands: expands,
Original file line number Diff line number Diff line change @@ -105,7 +105,8 @@ class MarkdownParse extends StatelessWidget {
105
105
@override
106
106
Widget build (BuildContext context) {
107
107
return Markdown (
108
- key: const Key ("default-markdown-formatter" ),
108
+ key: key,
109
+ // const Key("default-markdown-formatter"),
109
110
data: data,
110
111
selectable: selectable,
111
112
padding: const EdgeInsets .all (8 ),
Original file line number Diff line number Diff line change @@ -95,7 +95,8 @@ class MarkdownParseBody extends StatelessWidget {
95
95
return Padding (
96
96
padding: const EdgeInsets .all (8.0 ),
97
97
child: MarkdownBody (
98
- key: const Key ("default-non-scrolling-markdown-formatter" ),
98
+ key: key,
99
+ // const Key("default-non-scrolling-markdown-formatter"),
99
100
data: data,
100
101
selectable: selectable,
101
102
shrinkWrap: shrinkWrap,
You can’t perform that action at this time.
0 commit comments