title: Flutter CupertinoDateTimePicker minute interval
body: <p>I am trying to create a Cupertino date picker for the time being in 15 min intervals.  When trying to add an interval every 15 minutes, my showModalSheet now takes up the whole screen.  How can I add 15 minute intervals without the Cupertino picker taking up the whole screen?  </p>
  
  <p>My code:</p>
  
  <pre><code>Widget getStartingTimePicker() {
  
      return Container(
        height: MediaQuery.of(context).size.height * 15,
        child: Column(
          children: [
            Row(
              mainAxisAlignment: MainAxisAlignment.end,
              children: [
                CupertinoButton(
                  child: Text('Done'),
                  onPressed: () {
                    Navigator.pop(context);
                  },
                ),
              ],
            ),
            Expanded(
              child: CupertinoDatePicker(
                mode: CupertinoDatePickerMode.time,
                minuteInterval: 15,
                initialDateTime: _currentHour.add(Duration(minutes: 15 - _currentHour.minute % 15)),
                onDateTimeChanged: (startTime) {
                  setState(() {
                    // _currentHour = startTime;
                  });
                },
              ),
            ),
          ],
        ),
      );
  
    }
  
  </code></pre>
  
  <p>Result: <img src="https://i.stack.imgur.com/q3b0l.png" alt="Adding Minute Interval result"></p>