slang-i18n / slang

Type-safe i18n for Dart and Flutter
https://pub.dev/packages/slang
MIT License
419 stars 36 forks source link

Could slang works with showTimePicker & showDatePicker? #206

Closed iwhy closed 1 month ago

iwhy commented 3 months ago

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.

Tienisto commented 3 months ago

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 commented 1 month ago

Closed due to inactivity