Skip to content
This repository was archived by the owner on Apr 29, 2021. It is now read-only.

Commit 919c773

Browse files
committed
[Cupertino] Annotate bug demo
1 parent 81f77e1 commit 919c773

File tree

2 files changed

+54
-53
lines changed

2 files changed

+54
-53
lines changed

Samples/UIWidgetsGallery/demo/cupertino/cupertino_alert_demo.cs

Lines changed: 39 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -144,44 +144,45 @@ public override Widget build(BuildContext context) {
144144
);
145145
}
146146
),
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+
// )
185186
}
186187
)
187188
};

Samples/UIWidgetsGallery/demo/cupertino/cupertino_slider_demo.cs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -30,21 +30,21 @@ public override Widget build(BuildContext context) {
3030
child: new Column(
3131
mainAxisAlignment: MainAxisAlignment.spaceAround,
3232
children: new List<Widget> {
33-
new Column(
34-
mainAxisSize: MainAxisSize.min,
35-
children: new List<Widget> {
36-
new CupertinoSlider(
37-
value: this._value,
38-
min: 0.0f,
39-
max: 100.0f,
40-
divisions: 100, // TODO: FIX BUG
41-
onChanged: (float value) => {
42-
this.setState(() => { this._value = value; });
43-
}
44-
),
45-
new Text($"Cupertino Continuous: {this._value.ToString("F1")}"),
46-
}
47-
),
33+
// TODO: FIX BUG
34+
// new Column(
35+
// mainAxisSize: MainAxisSize.min,
36+
// children: new List<Widget> {
37+
// new CupertinoSlider(
38+
// value: this._value,
39+
// min: 0.0f,
40+
// max: 100.0f,
41+
// onChanged: (float value) => {
42+
// this.setState(() => { this._value = value; });
43+
// }
44+
// ),
45+
// new Text($"Cupertino Continuous: {this._value.ToString("F1")}"),
46+
// }
47+
// ),
4848
new Column(
4949
mainAxisSize: MainAxisSize.min,
5050
children: new List<Widget> {

0 commit comments

Comments
 (0)