Skip to content

Commit 1a87747

Browse files
committed
support for flutter 3.22
1 parent 451fa5d commit 1a87747

16 files changed

+249
-142
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelogs
22

3+
## 0.2.14 - 1-June-2024
4+
5+
* Adds support for Flutter 3.22
6+
37
## 0.2.13 - 10-July-2022
48

59
* Added shortcut Ctrl+B: Bold text

example/lib/main.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ class _HomeScreenState extends State<HomeScreen> {
3131
appBar: AppBar(
3232
title: const Text("Home Screen"),
3333
),
34-
body: Column(
34+
body: const Column(
3535
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
36-
children: const [
36+
children: [
3737
MarkdownAutoPreview(
3838
decoration: InputDecoration(
3939
hintText: 'Markdown Auto Preview',

example/pubspec.lock

Lines changed: 105 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -5,65 +5,66 @@ packages:
55
dependency: transitive
66
description:
77
name: args
8-
url: "https://pub.dartlang.org"
8+
sha256: eef6c46b622e0494a36c5a12d10d77fb4e855501a91c1b9ef9339326e58f0596
9+
url: "https://pub.dev"
910
source: hosted
10-
version: "2.3.1"
11+
version: "2.4.2"
1112
async:
1213
dependency: transitive
1314
description:
1415
name: async
15-
url: "https://pub.dartlang.org"
16+
sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c"
17+
url: "https://pub.dev"
1618
source: hosted
17-
version: "2.8.2"
19+
version: "2.11.0"
1820
boolean_selector:
1921
dependency: transitive
2022
description:
2123
name: boolean_selector
22-
url: "https://pub.dartlang.org"
24+
sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66"
25+
url: "https://pub.dev"
2326
source: hosted
24-
version: "2.1.0"
27+
version: "2.1.1"
2528
characters:
2629
dependency: transitive
2730
description:
2831
name: characters
29-
url: "https://pub.dartlang.org"
32+
sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605"
33+
url: "https://pub.dev"
3034
source: hosted
31-
version: "1.2.0"
32-
charcode:
33-
dependency: transitive
34-
description:
35-
name: charcode
36-
url: "https://pub.dartlang.org"
37-
source: hosted
38-
version: "1.3.1"
35+
version: "1.3.0"
3936
clock:
4037
dependency: transitive
4138
description:
4239
name: clock
43-
url: "https://pub.dartlang.org"
40+
sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf
41+
url: "https://pub.dev"
4442
source: hosted
45-
version: "1.1.0"
43+
version: "1.1.1"
4644
collection:
4745
dependency: transitive
4846
description:
4947
name: collection
50-
url: "https://pub.dartlang.org"
48+
sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a
49+
url: "https://pub.dev"
5150
source: hosted
52-
version: "1.16.0"
51+
version: "1.18.0"
5352
expandable:
5453
dependency: transitive
5554
description:
5655
name: expandable
57-
url: "https://pub.dartlang.org"
56+
sha256: "9604d612d4d1146dafa96c6d8eec9c2ff0994658d6d09fed720ab788c7f5afc2"
57+
url: "https://pub.dev"
5858
source: hosted
5959
version: "5.0.1"
6060
fake_async:
6161
dependency: transitive
6262
description:
6363
name: fake_async
64-
url: "https://pub.dartlang.org"
64+
sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78"
65+
url: "https://pub.dev"
6566
source: hosted
66-
version: "1.3.0"
67+
version: "1.3.1"
6768
flutter:
6869
dependency: "direct main"
6970
description: flutter
@@ -73,16 +74,18 @@ packages:
7374
dependency: "direct dev"
7475
description:
7576
name: flutter_lints
76-
url: "https://pub.dartlang.org"
77+
sha256: "2118df84ef0c3ca93f96123a616ae8540879991b8b57af2f81b76a7ada49b2a4"
78+
url: "https://pub.dev"
7779
source: hosted
78-
version: "2.0.1"
80+
version: "2.0.2"
7981
flutter_markdown:
8082
dependency: transitive
8183
description:
8284
name: flutter_markdown
83-
url: "https://pub.dartlang.org"
85+
sha256: "04c4722cc36ec5af38acc38ece70d22d3c2123c61305d555750a091517bbe504"
86+
url: "https://pub.dev"
8487
source: hosted
85-
version: "0.6.12"
88+
version: "0.6.23"
8689
flutter_test:
8790
dependency: "direct dev"
8891
description: flutter
@@ -92,23 +95,50 @@ packages:
9295
dependency: transitive
9396
description:
9497
name: font_awesome_flutter
95-
url: "https://pub.dartlang.org"
98+
sha256: "5fb789145cae1f4c3245c58b3f8fb287d055c26323879eab57a7bf0cfd1e45f3"
99+
url: "https://pub.dev"
100+
source: hosted
101+
version: "10.5.0"
102+
leak_tracker:
103+
dependency: transitive
104+
description:
105+
name: leak_tracker
106+
sha256: "7f0df31977cb2c0b88585095d168e689669a2cc9b97c309665e3386f3e9d341a"
107+
url: "https://pub.dev"
108+
source: hosted
109+
version: "10.0.4"
110+
leak_tracker_flutter_testing:
111+
dependency: transitive
112+
description:
113+
name: leak_tracker_flutter_testing
114+
sha256: "06e98f569d004c1315b991ded39924b21af84cf14cc94791b8aea337d25b57f8"
115+
url: "https://pub.dev"
116+
source: hosted
117+
version: "3.0.3"
118+
leak_tracker_testing:
119+
dependency: transitive
120+
description:
121+
name: leak_tracker_testing
122+
sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3"
123+
url: "https://pub.dev"
96124
source: hosted
97-
version: "10.2.1"
125+
version: "3.0.1"
98126
lints:
99127
dependency: transitive
100128
description:
101129
name: lints
102-
url: "https://pub.dartlang.org"
130+
sha256: "0a217c6c989d21039f1498c3ed9f3ed71b354e69873f13a8dfc3c9fe76f1b452"
131+
url: "https://pub.dev"
103132
source: hosted
104-
version: "2.0.0"
133+
version: "2.1.1"
105134
markdown:
106135
dependency: transitive
107136
description:
108137
name: markdown
109-
url: "https://pub.dartlang.org"
138+
sha256: acf35edccc0463a9d7384e437c015a3535772e09714cf60e07eeef3a15870dcd
139+
url: "https://pub.dev"
110140
source: hosted
111-
version: "6.0.0"
141+
version: "7.1.1"
112142
markdown_editor_plus:
113143
dependency: "direct main"
114144
description:
@@ -120,30 +150,34 @@ packages:
120150
dependency: transitive
121151
description:
122152
name: matcher
123-
url: "https://pub.dartlang.org"
153+
sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb
154+
url: "https://pub.dev"
124155
source: hosted
125-
version: "0.12.11"
156+
version: "0.12.16+1"
126157
material_color_utilities:
127158
dependency: transitive
128159
description:
129160
name: material_color_utilities
130-
url: "https://pub.dartlang.org"
161+
sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a"
162+
url: "https://pub.dev"
131163
source: hosted
132-
version: "0.1.4"
164+
version: "0.8.0"
133165
meta:
134166
dependency: transitive
135167
description:
136168
name: meta
137-
url: "https://pub.dartlang.org"
169+
sha256: "7687075e408b093f36e6bbf6c91878cc0d4cd10f409506f7bc996f68220b9136"
170+
url: "https://pub.dev"
138171
source: hosted
139-
version: "1.7.0"
172+
version: "1.12.0"
140173
path:
141174
dependency: transitive
142175
description:
143176
name: path
144-
url: "https://pub.dartlang.org"
177+
sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af"
178+
url: "https://pub.dev"
145179
source: hosted
146-
version: "1.8.1"
180+
version: "1.9.0"
147181
sky_engine:
148182
dependency: transitive
149183
description: flutter
@@ -153,51 +187,66 @@ packages:
153187
dependency: transitive
154188
description:
155189
name: source_span
156-
url: "https://pub.dartlang.org"
190+
sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c"
191+
url: "https://pub.dev"
157192
source: hosted
158-
version: "1.8.2"
193+
version: "1.10.0"
159194
stack_trace:
160195
dependency: transitive
161196
description:
162197
name: stack_trace
163-
url: "https://pub.dartlang.org"
198+
sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b"
199+
url: "https://pub.dev"
164200
source: hosted
165-
version: "1.10.0"
201+
version: "1.11.1"
166202
stream_channel:
167203
dependency: transitive
168204
description:
169205
name: stream_channel
170-
url: "https://pub.dartlang.org"
206+
sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7
207+
url: "https://pub.dev"
171208
source: hosted
172-
version: "2.1.0"
209+
version: "2.1.2"
173210
string_scanner:
174211
dependency: transitive
175212
description:
176213
name: string_scanner
177-
url: "https://pub.dartlang.org"
214+
sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde"
215+
url: "https://pub.dev"
178216
source: hosted
179-
version: "1.1.0"
217+
version: "1.2.0"
180218
term_glyph:
181219
dependency: transitive
182220
description:
183221
name: term_glyph
184-
url: "https://pub.dartlang.org"
222+
sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84
223+
url: "https://pub.dev"
185224
source: hosted
186-
version: "1.2.0"
225+
version: "1.2.1"
187226
test_api:
188227
dependency: transitive
189228
description:
190229
name: test_api
191-
url: "https://pub.dartlang.org"
230+
sha256: "9955ae474176f7ac8ee4e989dadfb411a58c30415bcfb648fa04b2b8a03afa7f"
231+
url: "https://pub.dev"
192232
source: hosted
193-
version: "0.4.9"
233+
version: "0.7.0"
194234
vector_math:
195235
dependency: transitive
196236
description:
197237
name: vector_math
198-
url: "https://pub.dartlang.org"
238+
sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803"
239+
url: "https://pub.dev"
199240
source: hosted
200-
version: "2.1.2"
241+
version: "2.1.4"
242+
vm_service:
243+
dependency: transitive
244+
description:
245+
name: vm_service
246+
sha256: "3923c89304b715fb1eb6423f017651664a03bf5f4b29983627c4da791f74a4ec"
247+
url: "https://pub.dev"
248+
source: hosted
249+
version: "14.2.1"
201250
sdks:
202-
dart: ">=2.17.0 <3.0.0"
203-
flutter: ">=3.0.0"
251+
dart: ">=3.3.0 <4.0.0"
252+
flutter: ">=3.19.0"

lib/src/emoji_parser.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import 'dart:convert';
22

3-
import 'package:flutter/material.dart';
4-
53
///
64
/// Constants defined for Emoji.
75
///
@@ -93,7 +91,7 @@ class Emoji {
9391
}
9492

9593
@override
96-
int get hashCode => hashValues(name.hashCode, code.hashCode);
94+
int get hashCode => Object.hash(name.hashCode, code.hashCode);
9795

9896
Emoji clone() {
9997
return Emoji(name, code);

lib/widgets/image_network.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import 'package:font_awesome_flutter/font_awesome_flutter.dart';
33

44
class ImageNetworkMarkdown extends StatelessWidget {
55
const ImageNetworkMarkdown({
6-
Key? key,
6+
super.key,
77
required this.uri,
88
this.title,
9-
}) : super(key: key);
9+
});
1010

1111
final String uri;
1212
final String? title;
@@ -31,9 +31,9 @@ class ImageNetworkMarkdown extends StatelessWidget {
3131
height: 220,
3232
color: Colors.grey[200],
3333
alignment: Alignment.center,
34-
child: Column(
34+
child: const Column(
3535
mainAxisAlignment: MainAxisAlignment.center,
36-
children: const [
36+
children: [
3737
FaIcon(FontAwesomeIcons.triangleExclamation),
3838
SizedBox(height: 20),
3939
Text(

lib/widgets/markdown_auto_preview.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import 'markdown_toolbar.dart';
88

99
class MarkdownAutoPreview extends StatefulWidget {
1010
const MarkdownAutoPreview({
11-
Key? key,
11+
super.key,
1212
this.controller,
1313
this.scrollController,
1414
this.onChanged,
@@ -28,7 +28,7 @@ class MarkdownAutoPreview extends StatefulWidget {
2828
this.readOnly = false,
2929
this.expands = false,
3030
this.decoration = const InputDecoration(isDense: true),
31-
}) : super(key: key);
31+
});
3232

3333
/// Markdown syntax to reset the field to
3434
///

lib/widgets/markdown_field.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import '../src/emoji_input_formatter.dart';
33

44
class MarkdownField extends StatelessWidget {
55
const MarkdownField({
6-
Key? key,
6+
super.key,
77
this.controller,
88
this.scrollController,
99
this.onChanged,
@@ -20,7 +20,7 @@ class MarkdownField extends StatelessWidget {
2020
this.decoration =
2121
const InputDecoration(hintText: 'Type here...', isDense: true),
2222
this.padding = const EdgeInsets.all(8),
23-
}) : super(key: key);
23+
});
2424

2525
/// Controls the text being edited.
2626
///

0 commit comments

Comments
 (0)