多语言支持
This commit is contained in:
@@ -30,6 +30,8 @@ environment:
|
||||
dependencies:
|
||||
flutter:
|
||||
sdk: flutter
|
||||
flutter_localizations:
|
||||
sdk: flutter
|
||||
|
||||
# The following adds the Cupertino Icons font to your application.
|
||||
# Use with the CupertinoIcons class for iOS style icons.
|
||||
@@ -41,7 +43,7 @@ dependencies:
|
||||
flutter_local_notifications: ^17.0.0 # Notifications
|
||||
path_provider: ^2.1.0 # File paths
|
||||
shared_preferences: ^2.2.0 # Simple key-value storage (for onboarding)
|
||||
intl: ^0.19.0 # Date formatting
|
||||
intl: ^0.20.2 # Date formatting and i18n
|
||||
google_fonts: ^6.1.0 # Google Fonts (Nunito)
|
||||
|
||||
dev_dependencies:
|
||||
@@ -63,6 +65,9 @@ dev_dependencies:
|
||||
# The following section is specific to Flutter packages.
|
||||
flutter:
|
||||
|
||||
# Enable code generation for localization
|
||||
generate: true
|
||||
|
||||
# The following line ensures that the Material Icons font is
|
||||
# included with your application, so that you can use the icons in
|
||||
# the material Icons class.
|
||||
|
||||
Reference in New Issue
Block a user