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';
88import 'package:flutter_custom_dialog_example/dialog/notice_dialog.dart' ;
99import 'package:flutter_custom_dialog/flutter_custom_dialog.dart' ;
1010
11+ import 'dialog/develop_dialog.dart' ;
12+
1113void main () => runApp (MyApp ());
1214
1315var titleTextStyle = TextStyle (fontSize: 22 , color: Colors .black);
@@ -258,6 +260,9 @@ showDevelopDialog(BuildContext context) {
258260 )),
259261 );
260262 }),
263+ makeTextButton ("fix textfield" , () {
264+ YYFixTextFieldDialog ();
265+ }),
261266 ],
262267 ),
263268 ],
You can’t perform that action at this time.
0 commit comments