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 53361ed

Browse files
布局
1 parent da80332 commit 53361ed

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

‎lib/flutter_custom_dialog.dart

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,16 @@ class YYDialog {
163163
Color activeColor,
164164
Function(int) onClickItemListener,
165165
}) {
166+
print("YYDialog ==> listViewOfRadioButton()");
167+
Size size = MediaQuery.of(context).size;
166168
return this.widget(
167169
Container(
168170
height: height,
171+
constraints: BoxConstraints(
172+
minHeight: size.height * .1,
173+
minWidth: size.width * .1,
174+
maxHeight: size.height * .5,
175+
),
169176
child: YYRadioListTile(
170177
items: items,
171178
activeColor: activeColor,
@@ -197,9 +204,9 @@ class YYDialog {
197204
}
198205

199206
void show() {
207+
print("YYDialog ==> show()");
200208
var mainAxisAlignment = getColumnMainAxisAlignment(gravity);
201209
var crossAxisAlignment = getColumnCrossAxisAlignment(gravity);
202-
203210
Size size = MediaQuery.of(context).size;
204211
CustomDialog(
205212
gravity: gravity,

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /