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 da80332

Browse files
布局
1 parent 342a91c commit da80332

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

‎example/lib/main.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,9 @@ showProgressDialog(BuildContext context) {
159159
Text("1、demo"),
160160
Row(
161161
children: <Widget>[
162+
makeTextButton("nobody", () {
163+
YYProgressDialogNoBody(context);
164+
}),
162165
makeTextButton("body", () {
163166
YYProgressDialogBody(context);
164167
}),

‎lib/components/progress_dialog.dart

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@ import 'package:flutter/material.dart';
22

33
import '../flutter_custom_dialog.dart';
44

5+
YYDialog YYProgressDialogNoBody(BuildContext context) {
6+
return YYDialog().build(context)
7+
..width = 200
8+
..borderRadius = 4.0
9+
..circularProgress(
10+
padding: EdgeInsets.all(24.0),
11+
valueColor: Colors.orange[500],
12+
)
13+
..show();
14+
}
15+
516
YYDialog YYProgressDialogBody(BuildContext context) {
617
return YYDialog().build(context)
718
..width = 200

0 commit comments

Comments
(0)

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