slang icon indicating copy to clipboard operation
slang copied to clipboard

Could slang works with showTimePicker & showDatePicker?

Open iwhy opened this issue 11 months ago • 1 comments

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.

iwhy avatar Mar 22 '24 18:03 iwhy

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.

Tienisto avatar Mar 22 '24 19:03 Tienisto