Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 129973b

Browse files
εΈƒε±€
1 parent bf1a86a commit 129973b

File tree

2 files changed

+24
-14
lines changed

2 files changed

+24
-14
lines changed

β€Žlib/components/dialog.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@ YYDialog YYListTileDialog1(BuildContext context) {
5959
..width = 280
6060
..borderRadius = 4.0
6161
..text(
62-
padding: EdgeInsets.all(18.0),
62+
padding: EdgeInsets.fromLTRB(18.0, 18.0, 18.0, 12.0),
6363
text: "Set backup account",
6464
color: Colors.black,
6565
fontSize: 18.0,
6666
)
6767
..listTile(
68-
padding: EdgeInsets.only(bottom:12.0, left:16.0, right:16.0),
68+
padding: EdgeInsets.fromLTRB(16.0, 6.0, 16.0, 6.0),
6969
leading: ClipOval(
7070
child: Image.network(
7171
"https://imgavater.ui.cn/avatar/3/3/4/9/1269433.jpg?imageMogr2/auto-orient/crop/!1219x1219a12a0/thumbnail/148x148",
@@ -79,7 +79,7 @@ YYDialog YYListTileDialog1(BuildContext context) {
7979
fontSize: 16.0,
8080
)
8181
..listTile(
82-
padding: EdgeInsets.only(bottom:12.0, left:16.0, right:16.0),
82+
padding: EdgeInsets.fromLTRB(16.0, 6.0, 16.0, 6.0),
8383
leading: ClipOval(
8484
child: Image.network(
8585
"https://imgavater.ui.cn/avatar/1/4/7/8/958741.jpg?imageMogr2/auto-orient/crop/!563x563a377a167/thumbnail/60x60",
@@ -93,7 +93,7 @@ YYDialog YYListTileDialog1(BuildContext context) {
9393
fontSize: 16.0,
9494
)
9595
..listTile(
96-
padding: EdgeInsets.only(bottom:12.0, left:16.0, right:16.0),
96+
padding: EdgeInsets.fromLTRB(16.0, 6.0, 16.0, 6.0),
9797
leading: ClipOval(
9898
child: Container(
9999
width: 50,

β€Žlib/flutter_custom_dialog.dart

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -93,19 +93,29 @@ class YYDialog {
9393
color,
9494
fontSize,
9595
fontWeight,
96+
GestureTapCallback onTap,
9697
}) {
97-
return this.widget(ListTile(
98-
contentPadding: padding,
99-
leading: leading,
100-
title: Text(
101-
text ?? "",
102-
style: TextStyle(
103-
color: color ?? null,
104-
fontSize: fontSize ?? null,
105-
fontWeight: fontWeight ?? null,
98+
return this.widget(
99+
Material(
100+
borderRadius: BorderRadius.circular(borderRadius),
101+
color: Colors.white,
102+
child: InkWell(
103+
onTap: onTap,
104+
child: ListTile(
105+
contentPadding: padding,
106+
leading: leading,
107+
title: Text(
108+
text ?? "",
109+
style: TextStyle(
110+
color: color ?? null,
111+
fontSize: fontSize ?? null,
112+
fontWeight: fontWeight ?? null,
113+
),
114+
),
115+
),
106116
),
107117
),
108-
));
118+
);
109119
}
110120

111121
void show() {

0 commit comments

Comments
(0)

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /