Comments (6)
https://zapp.run/edit/flutter-z7ec06l27ed0?entry=lib/main.dart&file=assets/i18n/en.json:59-105
@erperejildo - can you reproduce this issue in a sample project? I will take a look.
https://zapp.run/edit/flutter-z7ec06l27ed0?entry=lib/main.dart&file=lib/options.dart
Here is a working example and you can find the fixes below:
https://zapp.run/edit/flutter-zwek06ldwel0?entry=lib/main.dart&file=lib/main.dart
- You need to wrap the MaterialApp into a LocalizationProvider:
return LocalizationProvider( state: LocalizationProvider.of(context).state, child: MaterialApp( title: 'Flutter App!!', locale: localizationDelegate.currentLocale,
- MyHomePage should not be a constant
home: MyHomePage(title: 'Flutter Example App'),
instead of
home: const MyHomePage(title: 'Flutter Example App'),
Forgot to wrap it in the example but what I had in my code was the const since it was suggesting me to add it. Thanks, working now
from flutter_translate.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
from flutter_translate.
still having the same problem
from flutter_translate.
@erperejildo - can you reproduce this issue in a sample project? I will take a look.
from flutter_translate.
@erperejildo - can you reproduce this issue in a sample project? I will take a look.
https://zapp.run/edit/flutter-z7ec06l27ed0?entry=lib/main.dart&file=lib/options.dart
from flutter_translate.
@erperejildo - can you reproduce this issue in a sample project? I will take a look.
https://zapp.run/edit/flutter-z7ec06l27ed0?entry=lib/main.dart&file=lib/options.dart
Here is a working example and you can find the fixes below:
https://zapp.run/edit/flutter-zwek06ldwel0?entry=lib/main.dart&file=lib/main.dart
- You need to wrap the MaterialApp into a LocalizationProvider:
return LocalizationProvider(
state: LocalizationProvider.of(context).state,
child: MaterialApp(
title: 'Flutter App!!',
locale: localizationDelegate.currentLocale,
- MyHomePage should not be a constant
home: MyHomePage(title: 'Flutter Example App'),
instead of
home: const MyHomePage(title: 'Flutter Example App'),
from flutter_translate.
Related Issues (20)
- Update packages HOT 4
- Parent Widget not updated HOT 2
- Add information for the deprecated flutter_translate_gen HOT 4
- No MaterialLocalizations found , If change language to Soomaali (so) HOT 2
- reverse back when change language HOT 1
- Language changes, then falls back to default language
- Possible to translate a specific widget? HOT 1
- Simplify configuration & initialization
- Implement a missing key strategy HOT 1
- Implement remote (http) localization loader HOT 1
- universal_io, Question about? HOT 1
- Why flutter_translate_gen has been archived? HOT 1
- Bump version to handle Flutter 3.0
- Load translations from web HOT 2
- Wrap LocalizationProvider for Cubit / BLoC package HOT 1
- Pluralization feature not working for static keys HOT 5
- Localization Issue with OS language changes HOT 1
- Test for web platform is not working HOT 1
- Not fiend flutter_localizations GlobalMaterialLocalizations error HOT 1
- en.json missing from assets HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_translate.