Skip to content

Commit 3ed032d

Browse files
Setting up for a v0.3.0 release (flutter#134)
1 parent 8f558fd commit 3ed032d

File tree

6 files changed

+119
-122
lines changed

6 files changed

+119
-122
lines changed

packages/flutter_markdown/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 0.3.0
2+
3+
* Supporting GitHub flavoured Markdown
4+
* Supporting strikethrough
5+
* Convert TextSpan to use new InlineSpan API
6+
17
## 0.2.0
28

39
* Updated environment sdk constraints to make the package

packages/flutter_markdown/example/lib/main.dart

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
import 'package:flutter/material.dart';
66
import 'package:flutter_markdown/flutter_markdown.dart';
77

8-
const String _markdownData = """# Markdown Example
8+
const String _markdownData = """
9+
# Markdown Example
910
Markdown allows you to easily include formatted text, images, and even formatted Dart code in your app.
1011
1112
## Titles
@@ -95,14 +96,18 @@ Enjoy!
9596
""";
9697

9798
void main() {
98-
runApp(MaterialApp(
99-
title: "Markdown Demo",
100-
home: Scaffold(
101-
appBar: AppBar(title: const Text('Markdown Demo')),
102-
body: Markdown(
103-
data: _markdownData,
104-
imageDirectory: 'https://raw.githubusercontent.com',
99+
runApp(
100+
MaterialApp(
101+
title: "Markdown Demo",
102+
home: Scaffold(
103+
appBar: AppBar(title: const Text('Markdown Demo')),
104+
body: SafeArea(
105+
child: Markdown(
106+
data: _markdownData,
107+
imageDirectory: 'https://raw.githubusercontent.com',
108+
),
109+
),
105110
),
106111
),
107-
));
112+
);
108113
}

packages/flutter_markdown/example/pubspec.lock

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -5,56 +5,56 @@ packages:
55
dependency: transitive
66
description:
77
name: archive
8-
url: "https://pub.flutter-io.cn"
8+
url: "https://pub.dartlang.org"
99
source: hosted
1010
version: "2.0.10"
1111
args:
1212
dependency: transitive
1313
description:
1414
name: args
15-
url: "https://pub.flutter-io.cn"
15+
url: "https://pub.dartlang.org"
1616
source: hosted
1717
version: "1.5.2"
1818
async:
1919
dependency: transitive
2020
description:
2121
name: async
22-
url: "https://pub.flutter-io.cn"
22+
url: "https://pub.dartlang.org"
2323
source: hosted
2424
version: "2.3.0"
2525
boolean_selector:
2626
dependency: transitive
2727
description:
2828
name: boolean_selector
29-
url: "https://pub.flutter-io.cn"
29+
url: "https://pub.dartlang.org"
3030
source: hosted
3131
version: "1.0.5"
3232
charcode:
3333
dependency: transitive
3434
description:
3535
name: charcode
36-
url: "https://pub.flutter-io.cn"
36+
url: "https://pub.dartlang.org"
3737
source: hosted
3838
version: "1.1.2"
3939
collection:
4040
dependency: transitive
4141
description:
4242
name: collection
43-
url: "https://pub.flutter-io.cn"
43+
url: "https://pub.dartlang.org"
4444
source: hosted
4545
version: "1.14.11"
4646
convert:
4747
dependency: transitive
4848
description:
4949
name: convert
50-
url: "https://pub.flutter-io.cn"
50+
url: "https://pub.dartlang.org"
5151
source: hosted
5252
version: "2.1.1"
5353
crypto:
5454
dependency: transitive
5555
description:
5656
name: crypto
57-
url: "https://pub.flutter-io.cn"
57+
url: "https://pub.dartlang.org"
5858
source: hosted
5959
version: "2.1.3"
6060
flutter:
@@ -68,7 +68,7 @@ packages:
6868
path: ".."
6969
relative: true
7070
source: path
71-
version: "0.2.0"
71+
version: "0.3.0"
7272
flutter_test:
7373
dependency: "direct dev"
7474
description: flutter
@@ -78,56 +78,56 @@ packages:
7878
dependency: transitive
7979
description:
8080
name: image
81-
url: "https://pub.flutter-io.cn"
81+
url: "https://pub.dartlang.org"
8282
source: hosted
8383
version: "2.1.4"
8484
markdown:
8585
dependency: transitive
8686
description:
8787
name: markdown
88-
url: "https://pub.flutter-io.cn"
88+
url: "https://pub.dartlang.org"
8989
source: hosted
9090
version: "2.1.1"
9191
matcher:
9292
dependency: transitive
9393
description:
9494
name: matcher
95-
url: "https://pub.flutter-io.cn"
95+
url: "https://pub.dartlang.org"
9696
source: hosted
9797
version: "0.12.5"
9898
meta:
9999
dependency: transitive
100100
description:
101101
name: meta
102-
url: "https://pub.flutter-io.cn"
102+
url: "https://pub.dartlang.org"
103103
source: hosted
104104
version: "1.1.7"
105105
path:
106106
dependency: transitive
107107
description:
108108
name: path
109-
url: "https://pub.flutter-io.cn"
109+
url: "https://pub.dartlang.org"
110110
source: hosted
111111
version: "1.6.4"
112112
pedantic:
113113
dependency: transitive
114114
description:
115115
name: pedantic
116-
url: "https://pub.flutter-io.cn"
116+
url: "https://pub.dartlang.org"
117117
source: hosted
118118
version: "1.8.0+1"
119119
petitparser:
120120
dependency: transitive
121121
description:
122122
name: petitparser
123-
url: "https://pub.flutter-io.cn"
123+
url: "https://pub.dartlang.org"
124124
source: hosted
125125
version: "2.4.0"
126126
quiver:
127127
dependency: transitive
128128
description:
129129
name: quiver
130-
url: "https://pub.flutter-io.cn"
130+
url: "https://pub.dartlang.org"
131131
source: hosted
132132
version: "2.0.5"
133133
sky_engine:
@@ -139,64 +139,64 @@ packages:
139139
dependency: transitive
140140
description:
141141
name: source_span
142-
url: "https://pub.flutter-io.cn"
142+
url: "https://pub.dartlang.org"
143143
source: hosted
144144
version: "1.5.5"
145145
stack_trace:
146146
dependency: transitive
147147
description:
148148
name: stack_trace
149-
url: "https://pub.flutter-io.cn"
149+
url: "https://pub.dartlang.org"
150150
source: hosted
151151
version: "1.9.3"
152152
stream_channel:
153153
dependency: transitive
154154
description:
155155
name: stream_channel
156-
url: "https://pub.flutter-io.cn"
156+
url: "https://pub.dartlang.org"
157157
source: hosted
158158
version: "2.0.0"
159159
string_scanner:
160160
dependency: transitive
161161
description:
162162
name: string_scanner
163-
url: "https://pub.flutter-io.cn"
163+
url: "https://pub.dartlang.org"
164164
source: hosted
165165
version: "1.0.5"
166166
term_glyph:
167167
dependency: transitive
168168
description:
169169
name: term_glyph
170-
url: "https://pub.flutter-io.cn"
170+
url: "https://pub.dartlang.org"
171171
source: hosted
172172
version: "1.1.0"
173173
test_api:
174174
dependency: transitive
175175
description:
176176
name: test_api
177-
url: "https://pub.flutter-io.cn"
177+
url: "https://pub.dartlang.org"
178178
source: hosted
179179
version: "0.2.5"
180180
typed_data:
181181
dependency: transitive
182182
description:
183183
name: typed_data
184-
url: "https://pub.flutter-io.cn"
184+
url: "https://pub.dartlang.org"
185185
source: hosted
186186
version: "1.1.6"
187187
vector_math:
188188
dependency: transitive
189189
description:
190190
name: vector_math
191-
url: "https://pub.flutter-io.cn"
191+
url: "https://pub.dartlang.org"
192192
source: hosted
193193
version: "2.0.8"
194194
xml:
195195
dependency: transitive
196196
description:
197197
name: xml
198-
url: "https://pub.flutter-io.cn"
198+
url: "https://pub.dartlang.org"
199199
source: hosted
200200
version: "3.5.0"
201201
sdks:
202-
dart: ">=2.4.0 <3.0.0"
202+
dart: ">=2.5.0 <3.0.0"

packages/flutter_markdown/example/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: Demonstrates how to use the flutter_markdown package.
33
publish_to: 'none'
44

55
environment:
6-
sdk: ">=2.1.0 <3.0.0"
6+
sdk: ">=2.5.0 <3.0.0"
77

88
dependencies:
99
flutter:

0 commit comments

Comments
 (0)