title: How to create a cupertinoactionsheet from database values
body: <p>I am trying to return a cupertinoactionsheet to use it on a future builder.  The values are stored locally </p>
  
  <p>So far I manage to retrieve only the cupertinoactionsheetactions.</p>
  
  <p>I'd tried to return the whole actionsheet but it fails</p>
  
  <p>The goal is to make the app as more native looking as possible.
  That is the reason I don't want to use any material widget</p>
  
  <p>Any answer appeciated</p>
  
  <p>Thank you very much</p>
  
  <pre><code>void _modalBottomSheetMenu() {
      showCupertinoModalPopup(
          context: context,
          builder: (builder) {
            return new Container(
              height: 450.0,
              color: Color(0xFF737373), 
  
              child: new Container(
                  decoration: new BoxDecoration(
                      color: CupertinoColors.white,
                      borderRadius: new BorderRadius.only(
                          topLeft: const Radius.circular(10.0),
                          topRight: const Radius.circular(10.0))),
                  child: 
  // some more code
  
                    new FutureBuilder(
                      future: plates,
                      builder: (BuildContext context, AsyncSnapshot snapshot) {
                        switch (snapshot.connectionState) {
                          case ConnectionState.none:
  
                          case ConnectionState.waiting:
                            return new Text('loading...');
                          default:
                            if (snapshot.hasError)
                              return new Text('Error: ${snapshot.error}');
                            else
                              return createListView(context, snapshot);
                        }
                      },
                    )
                  ])),
            );
          });
    }
  
  
  Widget createListView(BuildContext context, AsyncSnapshot snapshot) {
      List&lt;String&gt; values = snapshot.data;
      return new ListView.builder(
        scrollDirection: Axis.vertical,
        shrinkWrap: true,
        itemCount: values.length,
        itemBuilder: (BuildContext context, int index) {
          return new Column(
            children: &lt;Widget&gt;[
              new CupertinoActionSheetAction(
                  //leading: new Icon(CupertinoIcons.directions_car),
                  child: new Text(values[index]),
                  onPressed: () =&gt; {
                        setState(() {
                          _carplate = values[index];
                        }),
                        Navigator.pop(context)
                      }),
            ],
          );
        },
      );
    }
  
  
  </code></pre>