koukibadr / Bottom-Picker

https://pub.dev/packages/bottom_picker
MIT License
34 stars 22 forks source link

language #74

Open alammerdeka opened 1 year ago

alammerdeka commented 1 year ago

feature for change language for month, and day in other language

koukibadr commented 1 year ago

@alammerdeka the package already support languages you need to add this code in your app in main widget

localizationsDelegates: const [
        GlobalCupertinoLocalizations.delegate,
        GlobalMaterialLocalizations.delegate,
      ],
      supportedLocales: const [
         Locale('fr'),
         Locale('it'),
         Locale('es'),
         Locale('en'),
      ],
muhammetikbalkeklik commented 4 months ago

where the relevant codes for language support were added, the solution was disabled with current incoming package updates

muhammetikbalkeklik commented 4 months ago

where the relevant codes for language support were added, the solution was disabled with current incoming package updates

I solved the problem, the error is caused by me, but the developer's explanation was not sufficient or flutter updates disabled the presented method.

bottom_picker in the "dependencies" section of the pubspec.yaml file: ^2.8.0 flutter_localizations: sdk:flutter

We add this code.

We add the following code under the Materialapp heading: localizationsDelegates: GlobalMaterialLocalizations.delegates, supportedLocales: [ Locale('en', 'US'), Locale('tr', 'TR'), //... ],