title: IOS Date picker in Flutter
body: <p>I want to make only a date picker using Cupertino. something like below</p>
  <p><a href="https://i.stack.imgur.com/tbZfQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tbZfQ.png" alt="enter image description here" /></a></p>
  <p>but all I am able to do is this... can anyone help?</p>
  <pre><code>Container(
              height: MediaQuery.of(context).copyWith().size.height / 3,
              child: CupertinoDatePicker(
                initialDateTime: DateTime.now(),
                onDateTimeChanged: (DateTime newdate) {
                  print(newdate);
                  setState(() {
                    _currentdate = newdate;
                  });
                },
                use24hFormat: true,
                maximumDate: new DateTime(2050, 12, 30),
                minimumYear: 2010,
                maximumYear: 2018,
                minuteInterval: 1,
                mode: CupertinoDatePickerMode.dateAndTime,
              ),
            ),
  
  </code></pre>