File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change
1
+ import 'package:flutter/material.dart' ;
2
+ import 'package:flutter_custom_dialog/flutter_custom_dialog.dart' ;
3
+
4
+ YYDialog YYFixTextFieldDialog () {
5
+ return YYDialog ().build ()
6
+ ..width = 120
7
+ ..height = 110
8
+ ..backgroundColor = Colors .white
9
+ ..borderRadius = 10.0
10
+ ..gravity = Gravity .bottom
11
+ ..widget (
12
+ Padding (
13
+ padding: EdgeInsets .all (24 ),
14
+ child: TextField (),
15
+ ),
16
+ )
17
+ ..show ();
18
+ }
Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ import 'package:flutter_custom_dialog_example/dialog/progress_dialog.dart';
8
8
import 'package:flutter_custom_dialog_example/dialog/notice_dialog.dart' ;
9
9
import 'package:flutter_custom_dialog/flutter_custom_dialog.dart' ;
10
10
11
+ import 'dialog/develop_dialog.dart' ;
12
+
11
13
void main () => runApp (MyApp ());
12
14
13
15
var titleTextStyle = TextStyle (fontSize: 22 , color: Colors .black);
@@ -258,6 +260,9 @@ showDevelopDialog(BuildContext context) {
258
260
)),
259
261
);
260
262
}),
263
+ makeTextButton ("fix textfield" , () {
264
+ YYFixTextFieldDialog ();
265
+ }),
261
266
],
262
267
),
263
268
],
You can’t perform that action at this time.
0 commit comments