slang
slang copied to clipboard
Could slang works with showTimePicker & showDatePicker?
The reason for this problem is: because I used only slang, but not inited Localizations in MaterialApp.
In most cases, use only slang is enough for i18n strings. But showTimePicker() and showDatePicker do not support costomized UI Strings.
Shall there a way to achive this?
Till now i Just want to define custom widgets to replace those buildin funtions.
Please check the documentation (specifically "Step 4a: Flutter locale"): https://pub.dev/packages/slang#getting-started
You need to add the flutter_localizations
dependency and add it to localizationsDelegates
in MaterialApp
.