How can i change the language of flutter app? - flutter

I want to make a dropdown item list of different languages and when user selects one of these app language should change. I don't know what logic to apply for changing language please help me.

This is the topic of internationalization: https://docs.flutter.dev/development/accessibility-and-localization/internationalization

I have found translator's:
https://pub.dev/packages/translator
https://pub.dev/packages/flutter_translate
https://pub.dev/packages/google_translator
By the plugins I writtend you have documentations but you also can go to youtube and look a tutorial about them.
Next time you can simple google what you want to have or go to pub.dev and writte in the search bar what you want.
I wish you a good day!

Related

Flutter Onboarding User Walkthrough

I've seen a lot of flutter packages for onboarding users which are basically no more than just a slide deck. For example here is one: https://pub.dev/packages/introduction_screen
However, I am looking for something a bit more interactive. I'd like for the user to follow along with the tutorial. I've seen onboarding handled this way in a lot of websites, such as seen below:
Is there a pre-built package or easy way to mimic this type of interactive, user onboarding process in flutter?
Thanks in advance.
There is a package tutorial_coach_mark: that you can use to create a beautiful and easy tutorial for your application. It'll help you in a more interactive onboarding.
Check it out here: https://pub.dev/packages/tutorial_coach_mark
There is also another package: highlighter_coachmark:
but it might not be null safe.
If you don't want to rely on external packages, I'll recommend looking up this answer

How to create a list and when you click on one of its members it moves it to the list of favorites

I want something like a list so that when I press on a button, the list item moves to another list called Favorites.
This is done in one of the Flutter getting started Codelabs. Check Link
This is a very broad question, so I'll describe some general guidelines:
First, make sure you got a basic understanding of Flutter's widgets model. For this, there are several videos on YouTube or Codelabs by Google.
The next step would be to think about state management.
At Google I/O there was an example of a Shopping Cart app that pretty much resembles your requirements.
You may also want to check out the source code of that app on Github.

Tab UI in Android

I am an Android newbie and I really require your help.
I'd like to develop an app , which its UI is persisted of three Tabs, and the first one a WebView.
since I am not familiar with all the required building blocks, can anyone give me a sample? a guide how to do so?
thanks a lot!
The Android API Demos include several (Tabs1 to Tabs2 sample files) examples. Install, try and have a look at them.
Regarding specifying the content of Tabs you have the possibilities to use Views or Activities. If you check some "Tab" related discussion here you will find that established users prefer to use Views (e.g. here). I took the 'Activity' way so far and feel quite comfortable - but did not go to deep into pros and cons. My current point of view is that you have to decide on each special case and can't give a general recommendation.
there is some tutorials on this page : http://developer.android.com/resources/tutorials/views/index.html

Is it better to use div- or button-elements [iPhone][in android]?

I'm developing a site for the iPhone. Later for android.
Now I have some links in that site.
To see that it is a link I'd like to style the div-element like a button so that one can see that it is a link and clickable.
Is it better to use div- or button-elements here?
Are there any information about which way is a better way?
In android I had the problem that clickable div-elements were not as sensitive as the button-elements.
Do you have an idea why?
Thanks for your answers.
EDIT: I decided to use div-elements though I already worked with buttons. You can find the reasonhere.
use button elements only......

How to change all the strings in an iphone application with respective selected language in settings?

I need help from you, I need to display all the text, labels , strings and what ever text is showing to user in the iphone application with respective selected language in settings of iphone.
for example user selects German or French in settings of iPhone language, then my application should provide or view the details in that language.
I need sample code for localization, Is there any simple way to follow the standard steps to translate the code to different languages in iphone sdk.
please healp me, I hope that I can get efficient solution on this from you.
Thank you,
Madan Mohan.
See here: http://www.icanlocalize.com/site/tutorials/iphone-applications-localization-guide/
I think the previous link gives a pretty good idea of how to do I18N on the iPhone, but if you feel you need more info, you can try this article http://blog.federicomestrone.com/2010/05/18/internationalise-your-iphone-apps-with-xcode/ which is just slightly more code-orientated.
The point though is always the same - you have to separate code from text resources and load all your text (strings) with the NSLocalizedString macro, or a variant thereof.