@@ -144,44 +144,45 @@ public override Widget build(BuildContext context) {
144
144
) ;
145
145
}
146
146
) ,
147
- new Padding ( padding : EdgeInsets . all ( 8.0f ) ) ,
148
- CupertinoButton . filled (
149
- child : new Text ( "Action Sheet" ) ,
150
- padding : EdgeInsets . symmetric ( vertical : 16.0f , horizontal : 36.0f ) ,
151
- onPressed : ( ) => {
152
- this . showDemoActionSheet (
153
- context : _context ,
154
- child : new CupertinoActionSheet (
155
- title : new Text ( "Favorite Dessert" ) ,
156
- message : new Text (
157
- "Please select the best dessert from the options below." ) ,
158
- actions : new List < Widget > {
159
- new CupertinoActionSheetAction (
160
- child : new Text ( "Profiteroles" ) ,
161
- onPressed : ( ) => {
162
- Navigator . pop ( _context , "Profiteroles" ) ;
163
- }
164
- ) ,
165
- new CupertinoActionSheetAction (
166
- child : new Text ( "Cannolis" ) ,
167
- onPressed : ( ) => {
168
- Navigator . pop ( _context , "Cannolis" ) ;
169
- }
170
- ) ,
171
- new CupertinoActionSheetAction (
172
- child : new Text ( "Trifle" ) ,
173
- onPressed : ( ) => { Navigator . pop ( _context , "Trifle" ) ; }
174
- )
175
- } ,
176
- cancelButton : new CupertinoActionSheetAction (
177
- child : new Text ( "Cancel" ) ,
178
- isDefaultAction : true ,
179
- onPressed : ( ) => { Navigator . pop ( _context , "Cancel" ) ; }
180
- )
181
- )
182
- ) ;
183
- }
184
- )
147
+ // TODO: FIX BUG
148
+ // new Padding(padding: EdgeInsets.all(8.0f)),
149
+ // CupertinoButton.filled(
150
+ // child: new Text("Action Sheet"),
151
+ // padding: EdgeInsets.symmetric(vertical: 16.0f, horizontal: 36.0f),
152
+ // onPressed: () => {
153
+ // this.showDemoActionSheet(
154
+ // context: _context,
155
+ // child: new CupertinoActionSheet(
156
+ // title: new Text("Favorite Dessert"),
157
+ // message: new Text(
158
+ // "Please select the best dessert from the options below."),
159
+ // actions: new List<Widget> {
160
+ // new CupertinoActionSheetAction(
161
+ // child: new Text("Profiteroles"),
162
+ // onPressed: () => {
163
+ // Navigator.pop(_context, "Profiteroles");
164
+ // }
165
+ // ),
166
+ // new CupertinoActionSheetAction(
167
+ // child: new Text("Cannolis"),
168
+ // onPressed: () => {
169
+ // Navigator.pop(_context, "Cannolis");
170
+ // }
171
+ // ),
172
+ // new CupertinoActionSheetAction(
173
+ // child: new Text("Trifle"),
174
+ // onPressed: () => { Navigator.pop(_context, "Trifle"); }
175
+ // )
176
+ // },
177
+ // cancelButton: new CupertinoActionSheetAction(
178
+ // child: new Text("Cancel"),
179
+ // isDefaultAction: true,
180
+ // onPressed: () => { Navigator.pop(_context, "Cancel"); }
181
+ // )
182
+ // )
183
+ // );
184
+ // }
185
+ // )
185
186
}
186
187
)
187
188
} ;
0 commit comments