anchor.diff:                      children: <Widget>[
                         CupertinoButton.filled(
                           child: const Text('Alert'),
  -                        onPressed: () {
  -                          showDemoDialog(
  -                            context: context,
  -                            child: CupertinoAlertDialog(
  -                              title: const Text('Discard draft?'),
  -                              actions: <Widget>[
  -                                CupertinoDialogAction(
  -                                  child: const Text('Discard'),
  -                                  isDestructiveAction: true,
  -                                  onPressed: () {
  -                                    Navigator.pop(context, 'Discard');
  -                                  },
  -                                ),
  -                                CupertinoDialogAction(
  -                                  child: const Text('Cancel'),
  -                                  isDefaultAction: true,
  -                                  onPressed: () {
  -                                    Navigator.pop(context, 'Cancel');
  -                                  },
  -                                ),
  -                              ],
  -                            ),
  -                          );
  -                        },
  +                        onPressed: () => _onAlertPress(context),
                         ),
                         const Padding(padding: EdgeInsets.all(8.0)),
                         CupertinoButton.filled(
                           child: const Text('Alert with Title'),
                           padding: const EdgeInsets.symmetric(vertical: 16.0, horizontal: 36.0),
  -                        onPressed: () {
  -                          showDemoDialog(
  -                            context: context,
  -                            child: CupertinoAlertDialog(
  -                              title: const Text('Allow "Maps" to access your location while you are using the app?'),
  -                              content: const Text('Your current location will be displayed on the map and used '
  -                                'for directions, nearby search results, and estimated travel times.'),
  -                              actions: <Widget>[
  -                                CupertinoDialogAction(
  -                                  child: const Text('Don\'t Allow'),
  -                                  onPressed: () {
  -                                    Navigator.pop(context, 'Disallow');
  -                                  },
  -                                ),
  -                                CupertinoDialogAction(
  -                                  child: const Text('Allow'),
  -                                  onPressed: () {
  -                                    Navigator.pop(context, 'Allow');
  -                                  },
  -                                ),
  -                              ],
  -                            ),
  -                          );
  -                        },
  +                        onPressed: () => _onAlertWithTitlePress(context),
                         ),
                         const Padding(padding: EdgeInsets.all(8.0)),
                         CupertinoButton.filled(
                           child: const Text('Alert with Buttons'),
                           padding: const EdgeInsets.symmetric(vertical: 16.0, horizontal: 36.0),
  -                        onPressed: () {
  -                          showDemoDialog(
  -                            context: context,
  -                            child: const CupertinoDessertDialog(
  -                              title: Text('Select Favorite Dessert'),
  -                              content: Text('Please select your favorite type of dessert from the '
  -                                'list below. Your selection will be used to customize the suggested '
  -                                'list of eateries in your area.'),
  -                            ),
  -                          );
  -                        },
  +                        onPressed: () => _onAlertWithButtonsPress(context),
                         ),
                         const Padding(padding: EdgeInsets.all(8.0)),
                         CupertinoButton.filled(
  
positive.code:       ),
      );
    }
  }
  
  class CupertinoDessertDialog extends StatelessWidget {
  
negative.code:                       CupertinoButton.filled(
                          child: const Text('Action Sheet'),
                          padding: const EdgeInsets.symmetric(vertical: 16.0, horizontal: 36.0),
                          onPressed: () => _onActionSheetPress(context),
                        ),
                      ],
                    ),
  