简体   繁体   中英

How can I change the Flutter default time selection widget text?

在此处输入图片说明
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.

Check it on github.

在此处输入图片说明

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM