Skip to content

Commit e77064b

Browse files
author
xuyingjun
committed
v1.0.12
1 parent 067d4b8 commit e77064b

File tree

7 files changed

+227
-268
lines changed

7 files changed

+227
-268
lines changed

.idea/workspace.xml

Lines changed: 199 additions & 256 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,8 @@
4545

4646
## 1.0.11
4747

48-
* remove kotlin
48+
* remove kotlin
49+
50+
## 1.0.12
51+
52+
* modify text Semantic

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Global dialog function encapsulation, with a semantic way to fill the content in
1717

1818
```yaml
1919
dependencies:
20-
flutter_custom_dialog: ^1.0.11
20+
flutter_custom_dialog: ^1.0.12
2121
```
2222
2323
**2、import**

README_CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
```yaml
1717
dependencies:
18-
flutter_custom_dialog: ^1.0.11
18+
flutter_custom_dialog: ^1.0.12
1919
```
2020
2121
**2、import**

example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ packages:
4747
path: ".."
4848
relative: true
4949
source: path
50-
version: "1.0.8"
50+
version: "1.0.11"
5151
flutter_test:
5252
dependency: "direct dev"
5353
description: flutter

lib/flutter_custom_dialog.dart

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,28 @@ class YYDialog {
4646
}
4747

4848
YYDialog text(
49-
{padding, text, color, fontSize, alignment, fontWeight, fontFamily}) {
49+
{padding,
50+
text,
51+
color,
52+
fontSize,
53+
alignment,
54+
textAlign,
55+
maxLines,
56+
textDirection,
57+
overflow,
58+
fontWeight,
59+
fontFamily}) {
5060
return this.widget(
5161
Padding(
5262
padding: padding ?? EdgeInsets.all(0.0),
5363
child: Align(
5464
alignment: alignment ?? Alignment.centerLeft,
5565
child: Text(
5666
text ?? "",
67+
textAlign: textAlign,
68+
maxLines: maxLines,
69+
textDirection: textDirection,
70+
overflow: overflow,
5771
style: TextStyle(
5872
color: color ?? Colors.black,
5973
fontSize: fontSize ?? 14.0,
@@ -189,9 +203,7 @@ class YYDialog {
189203
Color activeColor,
190204
Function(int) onClickItemListener,
191205
}) {
192-
Size size = MediaQuery
193-
.of(context)
194-
.size;
206+
Size size = MediaQuery.of(context).size;
195207
return this.widget(
196208
Container(
197209
height: height,
@@ -407,8 +419,7 @@ class CustomDialog {
407419
bool gravityAnimationEnable,
408420
Function animatedFunc,
409421
bool barrierDismissible,
410-
})
411-
: _child = child,
422+
}) : _child = child,
412423
_context = context,
413424
_gravity = gravity,
414425
_gravityAnimationEnable = gravityAnimationEnable,
@@ -445,7 +456,8 @@ class CustomDialog {
445456
);
446457
}
447458

448-
Widget _buildMaterialDialogTransitions(BuildContext context,
459+
Widget _buildMaterialDialogTransitions(
460+
BuildContext context,
449461
Animation<double> animation,
450462
Animation<double> secondaryAnimation,
451463
Widget child) {

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_custom_dialog
22
description: Semantic dialog
3-
version: 1.0.11
3+
version: 1.0.12
44
author: AndroidHensen <[email protected]>
55
homepage: https://github.com/YYFlutter/flutter-custom-dialog.git
66

0 commit comments

Comments
 (0)