selectDate method
Implementation
Widget selectDate(BuildContext context) {
return StatefulBuilder(builder: (context, setState) {
return GestureDetector(
onTap: () {
dateTimePickerWidget(context);
waitCode().then((value) {
setState(() {});
dateUpdate = false;
});
},
child: Container(
width: defaultWidth * 0.4,
height: 50,
decoration: BoxDecoration(
color: Colors.white,
border: Border.all(
color: Theme.of(context).colorScheme.primary,
width: 1.25,
),
borderRadius: const BorderRadius.all(Radius.circular(8)),
),
child: Center(
child: Text(
visualDate,
style: TextStyle(
fontSize: 19,
color: Theme.of(context).colorScheme.primary,
),
),
),
),
);
});
}