How can I change the text in the cancel and ok button in the time picker?
You have to hack
the official TimePicker
widget. You will find the code in the customTimePicker.dart
file, see below. I have changed it from 'OK' to 'BINGO'. Search for bingo in that file. Feel free to edit things to get more dynamic UI.
The code is huge. I couldn't add it here.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.