So zeigen Sie iOS wie DatePicker in Flutter wie die in Journal App von Apple gezeigtIOS

Programmierung für iOS
Anonymous
 So zeigen Sie iOS wie DatePicker in Flutter wie die in Journal App von Apple gezeigt

Post by Anonymous »

Ich möchte iOS Journal App Style Datum Picker verwenden, aber ich kann keine Funktion verwenden, um ein solches Widget anzuzeigen.void showdatePicker(BuildContext context) {
< /code>
showCupertinoSheet (
Kontext: Kontext,
PageBuilder: (ctx) => Container (
Breite: double.infinity,
Dekoration: Boxdekor (
const farbe Borderradius.Circular (20),
),
Kind: Spalte (
Kinder: [
row (
Kinder: [
cupertinobutton (
Onpressive: () {
navigator.of(context). /> Stil: themen.of (context) .textTheMe.titlesMall! .CopyWith (
Farbe: Farbe Themen.of (context) .textTheMe.titlemedium! CupertinoButton(
onPressed: () {
Navigator.of(context).pop();
},
child: Text(
'Done',
style: Theme.of(context).textTheme.titleSmall!.copyWith(
color: Color.fromARGB(255, 32, 95, 255),
),
),
),
],
),
const SizedBox(height: 20),
Text(
'SELECT CUSTOM DATE',
style: Theme.of(
context,
).textTheme.labelMedium!.copyWith(color: Colors.white),
),

//datePicker
],
),
),
< /code>
);
} < /p>

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post