Skip to content

Commit 180a672

Browse files
committed
Added RTL support
1 parent ecec3ca commit 180a672

File tree

3 files changed

+145
-104
lines changed

3 files changed

+145
-104
lines changed

example/pubspec.lock

Lines changed: 72 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -5,65 +5,65 @@ packages:
55
dependency: transitive
66
description:
77
name: async
8-
url: "https://pub.dartlang.org"
8+
sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c"
9+
url: "https://pub.dev"
910
source: hosted
10-
version: "2.8.1"
11+
version: "2.11.0"
1112
boolean_selector:
1213
dependency: transitive
1314
description:
1415
name: boolean_selector
15-
url: "https://pub.dartlang.org"
16+
sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66"
17+
url: "https://pub.dev"
1618
source: hosted
17-
version: "2.1.0"
19+
version: "2.1.1"
1820
characters:
1921
dependency: transitive
2022
description:
2123
name: characters
22-
url: "https://pub.dartlang.org"
24+
sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605"
25+
url: "https://pub.dev"
2326
source: hosted
24-
version: "1.1.0"
25-
charcode:
26-
dependency: transitive
27-
description:
28-
name: charcode
29-
url: "https://pub.dartlang.org"
30-
source: hosted
31-
version: "1.3.1"
27+
version: "1.3.0"
3228
clock:
3329
dependency: transitive
3430
description:
3531
name: clock
36-
url: "https://pub.dartlang.org"
32+
sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf
33+
url: "https://pub.dev"
3734
source: hosted
38-
version: "1.1.0"
35+
version: "1.1.1"
3936
collection:
4037
dependency: transitive
4138
description:
4239
name: collection
43-
url: "https://pub.dartlang.org"
40+
sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a
41+
url: "https://pub.dev"
4442
source: hosted
45-
version: "1.15.0"
43+
version: "1.18.0"
4644
comment_tree:
4745
dependency: "direct main"
4846
description:
4947
path: ".."
5048
relative: true
5149
source: path
52-
version: "0.2.1"
50+
version: "0.3.0"
5351
cupertino_icons:
5452
dependency: "direct main"
5553
description:
5654
name: cupertino_icons
57-
url: "https://pub.dartlang.org"
55+
sha256: ba631d1c7f7bef6b729a622b7b752645a2d076dba9976925b8f25725a30e1ee6
56+
url: "https://pub.dev"
5857
source: hosted
59-
version: "1.0.0"
58+
version: "1.0.8"
6059
fake_async:
6160
dependency: transitive
6261
description:
6362
name: fake_async
64-
url: "https://pub.dartlang.org"
63+
sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78"
64+
url: "https://pub.dev"
6565
source: hosted
66-
version: "1.2.0"
66+
version: "1.3.1"
6767
flutter:
6868
dependency: "direct main"
6969
description: flutter
@@ -78,35 +78,48 @@ packages:
7878
dependency: transitive
7979
description:
8080
name: matcher
81-
url: "https://pub.dartlang.org"
81+
sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e"
82+
url: "https://pub.dev"
83+
source: hosted
84+
version: "0.12.16"
85+
material_color_utilities:
86+
dependency: transitive
87+
description:
88+
name: material_color_utilities
89+
sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41"
90+
url: "https://pub.dev"
8291
source: hosted
83-
version: "0.12.10"
92+
version: "0.5.0"
8493
meta:
8594
dependency: transitive
8695
description:
8796
name: meta
88-
url: "https://pub.dartlang.org"
97+
sha256: a6e590c838b18133bb482a2745ad77c5bb7715fb0451209e1a7567d416678b8e
98+
url: "https://pub.dev"
8999
source: hosted
90-
version: "1.7.0"
100+
version: "1.10.0"
91101
nested:
92102
dependency: transitive
93103
description:
94104
name: nested
95-
url: "https://pub.dartlang.org"
105+
sha256: "03bac4c528c64c95c722ec99280375a6f2fc708eec17c7b3f07253b626cd2a20"
106+
url: "https://pub.dev"
96107
source: hosted
97108
version: "1.0.0"
98109
path:
99110
dependency: transitive
100111
description:
101112
name: path
102-
url: "https://pub.dartlang.org"
113+
sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917"
114+
url: "https://pub.dev"
103115
source: hosted
104-
version: "1.8.0"
116+
version: "1.8.3"
105117
provider:
106118
dependency: transitive
107119
description:
108120
name: provider
109-
url: "https://pub.dartlang.org"
121+
sha256: dc18c7bddb94a1eb3c3154587d16175a657356c80566712e6cd8ca4825eae112
122+
url: "https://pub.dev"
110123
source: hosted
111124
version: "6.0.1"
112125
sky_engine:
@@ -118,58 +131,66 @@ packages:
118131
dependency: transitive
119132
description:
120133
name: source_span
121-
url: "https://pub.dartlang.org"
134+
sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c"
135+
url: "https://pub.dev"
122136
source: hosted
123-
version: "1.8.1"
137+
version: "1.10.0"
124138
stack_trace:
125139
dependency: transitive
126140
description:
127141
name: stack_trace
128-
url: "https://pub.dartlang.org"
142+
sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b"
143+
url: "https://pub.dev"
129144
source: hosted
130-
version: "1.10.0"
145+
version: "1.11.1"
131146
stream_channel:
132147
dependency: transitive
133148
description:
134149
name: stream_channel
135-
url: "https://pub.dartlang.org"
150+
sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7
151+
url: "https://pub.dev"
136152
source: hosted
137-
version: "2.1.0"
153+
version: "2.1.2"
138154
string_scanner:
139155
dependency: transitive
140156
description:
141157
name: string_scanner
142-
url: "https://pub.dartlang.org"
158+
sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde"
159+
url: "https://pub.dev"
143160
source: hosted
144-
version: "1.1.0"
161+
version: "1.2.0"
145162
term_glyph:
146163
dependency: transitive
147164
description:
148165
name: term_glyph
149-
url: "https://pub.dartlang.org"
166+
sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84
167+
url: "https://pub.dev"
150168
source: hosted
151-
version: "1.2.0"
169+
version: "1.2.1"
152170
test_api:
153171
dependency: transitive
154172
description:
155173
name: test_api
156-
url: "https://pub.dartlang.org"
174+
sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b"
175+
url: "https://pub.dev"
157176
source: hosted
158-
version: "0.4.2"
159-
typed_data:
177+
version: "0.6.1"
178+
vector_math:
160179
dependency: transitive
161180
description:
162-
name: typed_data
163-
url: "https://pub.dartlang.org"
181+
name: vector_math
182+
sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803"
183+
url: "https://pub.dev"
164184
source: hosted
165-
version: "1.3.0"
166-
vector_math:
185+
version: "2.1.4"
186+
web:
167187
dependency: transitive
168188
description:
169-
name: vector_math
170-
url: "https://pub.dartlang.org"
189+
name: web
190+
sha256: afe077240a270dcfd2aafe77602b4113645af95d0ad31128cc02bce5ac5d5152
191+
url: "https://pub.dev"
171192
source: hosted
172-
version: "2.1.0"
193+
version: "0.3.0"
173194
sdks:
174-
dart: ">=2.12.0 <3.0.0"
195+
dart: ">=3.2.0-194.0.dev <4.0.0"
175196
flutter: ">=2.0.0"

lib/widgets/comment_child_widget.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ class CommentChildWidget extends StatelessWidget {
1717

1818
@override
1919
Widget build(BuildContext context) {
20-
bool isRTL = Directionality.of(context) == TextDirection.rtl;
2120
final EdgeInsets padding = EdgeInsets.only(
22-
left: isRTL ? 0 : avatarRoot!.width + 8.0,
23-
bottom: 8,
24-
top: 8,
25-
right: isRTL ? avatarRoot!.width + 8.0 : 0);
21+
left: avatarRoot!.width + 8.0,
22+
bottom: 8,
23+
top: 8,
24+
right: avatarRoot!.width + 8.0,
25+
);
2626

2727
return CustomPaint(
2828
painter: _Painter(

0 commit comments

Comments
 (0)