Skip to content

Commit d124ec0

Browse files
committed
minor updates
1 parent 71e2fbc commit d124ec0

File tree

10 files changed

+165
-61
lines changed

10 files changed

+165
-61
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## [0.3.1] - 2020.1.5
2+
3+
- Minor changes. Was going to include mongol_code as a part of this package but released it as a separate Dart package instead.
4+
15
## [0.3.0] - 2019.11.29
26

37
* Added a default Mongolian font.

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,7 @@ Left-to-right line wrapping is supported.
1515
## TODO
1616

1717
- Add text styling and expose `MongolRichText`.
18+
19+
## Related
20+
21+
- Check out the [mongol_code](https://pub.dev/packages/mongol_code) package for Unicode conversion in Dart.

example/android/gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
org.gradle.jvmargs=-Xmx1536M
22

3+
android.enableR8=true

example/lib/main.dart

Lines changed: 26 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,39 @@
11
import 'package:flutter/material.dart';
2-
import 'package:mongol/mongol_text.dart';
2+
import 'package:mongol_demo_app/text_demo.dart';
33

44
void main() => runApp(DemoApp());
55

66
class DemoApp extends StatelessWidget {
77
@override
88
Widget build(BuildContext context) {
99
return MaterialApp(
10+
title: 'mongol',
11+
theme: ThemeData(
12+
primarySwatch: Colors.blue,
13+
),
1014
home: Scaffold(
11-
appBar: AppBar(title: Text('mongol package demo')),
12-
body: Stack(
13-
children: <Widget>[
14-
Center(
15-
child: Container(
16-
color: Colors.blue[100],
17-
child: MongolText(
18-
'ᠮᠣᠩᠭᠣᠯ\nᠪᠢᠴᠢᠭ',
19-
style: TextStyle(fontSize: 100),
20-
),
21-
),
22-
),
23-
],
24-
),
15+
appBar: AppBar(title: Text('Mongol package demo')),
16+
body: HomeScreen(),
2517
),
2618
);
2719
}
2820
}
21+
22+
class HomeScreen extends StatelessWidget {
23+
@override
24+
Widget build(BuildContext context) {
25+
return ListView(
26+
children: <Widget>[
27+
ListTile(
28+
title: Text('MongolText'),
29+
onTap: () {
30+
Navigator.push(
31+
context,
32+
MaterialPageRoute(builder: (context) => TextDemo()),
33+
);
34+
},
35+
),
36+
],
37+
);
38+
}
39+
}

example/lib/text_demo.dart

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import 'package:flutter/material.dart';
2+
import 'package:mongol/mongol.dart';
3+
4+
class TextDemo extends StatelessWidget {
5+
@override
6+
Widget build(BuildContext context) {
7+
return Scaffold(
8+
body: Center(
9+
child: Container(
10+
color: Colors.blue[100],
11+
child: MongolText(
12+
'ᠮᠣᠩᠭᠣᠯ\nᠪᠢᠴᠢᠭ',
13+
style: TextStyle(fontSize: 100),
14+
),
15+
),
16+
),
17+
);
18+
}
19+
}

example/pubspec.lock

Lines changed: 54 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,27 @@
11
# Generated by pub
22
# See https://dart.dev/tools/pub/glossary#lockfile
33
packages:
4+
archive:
5+
dependency: transitive
6+
description:
7+
name: archive
8+
url: "https://pub.dartlang.org"
9+
source: hosted
10+
version: "2.0.11"
11+
args:
12+
dependency: transitive
13+
description:
14+
name: args
15+
url: "https://pub.dartlang.org"
16+
source: hosted
17+
version: "1.5.2"
418
async:
519
dependency: transitive
620
description:
721
name: async
822
url: "https://pub.dartlang.org"
923
source: hosted
10-
version: "2.3.0"
24+
version: "2.4.0"
1125
boolean_selector:
1226
dependency: transitive
1327
description:
@@ -29,6 +43,20 @@ packages:
2943
url: "https://pub.dartlang.org"
3044
source: hosted
3145
version: "1.14.11"
46+
convert:
47+
dependency: transitive
48+
description:
49+
name: convert
50+
url: "https://pub.dartlang.org"
51+
source: hosted
52+
version: "2.1.1"
53+
crypto:
54+
dependency: transitive
55+
description:
56+
name: crypto
57+
url: "https://pub.dartlang.org"
58+
source: hosted
59+
version: "2.1.3"
3260
flutter:
3361
dependency: "direct main"
3462
description: flutter
@@ -39,20 +67,27 @@ packages:
3967
description: flutter
4068
source: sdk
4169
version: "0.0.0"
70+
image:
71+
dependency: transitive
72+
description:
73+
name: image
74+
url: "https://pub.dartlang.org"
75+
source: hosted
76+
version: "2.1.4"
4277
matcher:
4378
dependency: transitive
4479
description:
4580
name: matcher
4681
url: "https://pub.dartlang.org"
4782
source: hosted
48-
version: "0.12.5"
83+
version: "0.12.6"
4984
meta:
5085
dependency: transitive
5186
description:
5287
name: meta
5388
url: "https://pub.dartlang.org"
5489
source: hosted
55-
version: "1.1.7"
90+
version: "1.1.8"
5691
mongol:
5792
dependency: "direct main"
5893
description:
@@ -74,6 +109,13 @@ packages:
74109
url: "https://pub.dartlang.org"
75110
source: hosted
76111
version: "1.8.0+1"
112+
petitparser:
113+
dependency: transitive
114+
description:
115+
name: petitparser
116+
url: "https://pub.dartlang.org"
117+
source: hosted
118+
version: "2.4.0"
77119
quiver:
78120
dependency: transitive
79121
description:
@@ -127,7 +169,7 @@ packages:
127169
name: test_api
128170
url: "https://pub.dartlang.org"
129171
source: hosted
130-
version: "0.2.5"
172+
version: "0.2.11"
131173
typed_data:
132174
dependency: transitive
133175
description:
@@ -142,5 +184,12 @@ packages:
142184
url: "https://pub.dartlang.org"
143185
source: hosted
144186
version: "2.0.8"
187+
xml:
188+
dependency: transitive
189+
description:
190+
name: xml
191+
url: "https://pub.dartlang.org"
192+
source: hosted
193+
version: "3.5.0"
145194
sdks:
146-
dart: ">=2.2.2 <3.0.0"
195+
dart: ">=2.6.0 <3.0.0"

example/pubspec.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,4 @@ dev_dependencies:
1717
sdk: flutter
1818

1919
flutter:
20-
uses-material-design: true
21-
20+
uses-material-design: true

example/test/widget_test.dart

Lines changed: 0 additions & 32 deletions
This file was deleted.

pubspec.lock

Lines changed: 54 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,27 @@
11
# Generated by pub
22
# See https://dart.dev/tools/pub/glossary#lockfile
33
packages:
4+
archive:
5+
dependency: transitive
6+
description:
7+
name: archive
8+
url: "https://pub.dartlang.org"
9+
source: hosted
10+
version: "2.0.11"
11+
args:
12+
dependency: transitive
13+
description:
14+
name: args
15+
url: "https://pub.dartlang.org"
16+
source: hosted
17+
version: "1.5.2"
418
async:
519
dependency: transitive
620
description:
721
name: async
822
url: "https://pub.dartlang.org"
923
source: hosted
10-
version: "2.3.0"
24+
version: "2.4.0"
1125
boolean_selector:
1226
dependency: transitive
1327
description:
@@ -29,6 +43,20 @@ packages:
2943
url: "https://pub.dartlang.org"
3044
source: hosted
3145
version: "1.14.11"
46+
convert:
47+
dependency: transitive
48+
description:
49+
name: convert
50+
url: "https://pub.dartlang.org"
51+
source: hosted
52+
version: "2.1.1"
53+
crypto:
54+
dependency: transitive
55+
description:
56+
name: crypto
57+
url: "https://pub.dartlang.org"
58+
source: hosted
59+
version: "2.1.3"
3260
flutter:
3361
dependency: "direct main"
3462
description: flutter
@@ -39,20 +67,27 @@ packages:
3967
description: flutter
4068
source: sdk
4169
version: "0.0.0"
70+
image:
71+
dependency: transitive
72+
description:
73+
name: image
74+
url: "https://pub.dartlang.org"
75+
source: hosted
76+
version: "2.1.4"
4277
matcher:
4378
dependency: transitive
4479
description:
4580
name: matcher
4681
url: "https://pub.dartlang.org"
4782
source: hosted
48-
version: "0.12.5"
83+
version: "0.12.6"
4984
meta:
5085
dependency: transitive
5186
description:
5287
name: meta
5388
url: "https://pub.dartlang.org"
5489
source: hosted
55-
version: "1.1.7"
90+
version: "1.1.8"
5691
path:
5792
dependency: transitive
5893
description:
@@ -67,6 +102,13 @@ packages:
67102
url: "https://pub.dartlang.org"
68103
source: hosted
69104
version: "1.8.0+1"
105+
petitparser:
106+
dependency: transitive
107+
description:
108+
name: petitparser
109+
url: "https://pub.dartlang.org"
110+
source: hosted
111+
version: "2.4.0"
70112
quiver:
71113
dependency: transitive
72114
description:
@@ -120,7 +162,7 @@ packages:
120162
name: test_api
121163
url: "https://pub.dartlang.org"
122164
source: hosted
123-
version: "0.2.5"
165+
version: "0.2.11"
124166
typed_data:
125167
dependency: transitive
126168
description:
@@ -135,5 +177,12 @@ packages:
135177
url: "https://pub.dartlang.org"
136178
source: hosted
137179
version: "2.0.8"
180+
xml:
181+
dependency: transitive
182+
description:
183+
name: xml
184+
url: "https://pub.dartlang.org"
185+
source: hosted
186+
version: "3.5.0"
138187
sdks:
139-
dart: ">=2.2.2 <3.0.0"
188+
dart: ">=2.6.0 <3.0.0"

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
name: mongol
22
description: This package provides Flutter widgets to display vertical Mongolian.
3-
version: 0.3.0
3+
version: 0.3.1
44
author: Suragch <studymongolian@gmail.com>
55
homepage: https://github.com/suragch/mongol
66

77
environment:
8-
sdk: ">=2.1.0 <3.0.0"
8+
sdk: ">=2.6.0 <3.0.0"
99

1010
dependencies:
1111
flutter:

0 commit comments

Comments
 (0)