How to make the textformfield with drop down list in flutter? - flutter

I am making an application where I have to write my location in text form field and from server it fetches the data and show us the similar words related to the words in drop down list and I can choose from that list or can write a complete new location in text form field, if it is not present in that drop down list. How can I achieve that in flutter?
Note: I don't want to use google places API right now in my project but will do that definitely in future. Right now I can store my locations in my server.

Related

Populate Word Document From Powerapps App Input via Sharepoint and Power Automate

I'm working on an app for my company and I'm a bit stuck.
What I'm working on uses app input to build a quote form using various inputs throughout the app. Everything is working fine, the app is working and it generates the quote using the fields in my Word template.
What I'm stuck with is trying to get a signature onto the end of the quote, I have a list in Sharepoint with Name (Text), Position (Text) and Signature (Image) columns. I've got this working from a dropdown in the app currently that filters a dropdown based on position (Only includes one position in the dropdown).
I can insert an image into the app and get the image to show using a lookup but ultimately I want to be able to load the signature image into the Word document based on user - This is currently on dropdown for testing purposes but in the future I will link it to who is actually using the app.
I have a flow in power automate which populates the word doc using the Powerapps details and that all works great apart from when I try to add an image and the error appears that it's looking for a jpg or png. The image files are stored on the sharepoint list as jpg so I'm not sure where I'm going wrong.
Tried copying the lookup value that loads the correct image in powerapps to the relevant power automate call-out (Works with all text)
Also tried inserting an image into the powerapp using the lookup (This works and displays the correct image) and referencing the .Image contained here

How to Translate text coming from server in Flutter?

I am facing translation problems in Flutter. I am using internationalization features in my app to give additional language options to users. I managed to translate app texts but failed with the texts coming from the server. When users choose the language they can add their profession (the List of the professions) for ex. in Italian which is saved in the server and when another user chooses the English language they shouldn't be able to search in English to find this user. How I can achieve to translate texts coming from the server or is there any option to choose a different path? Thanks in advance
Flutter internationalization can not translate dynamic words which are coming from anywhere else, except the words you translated yourself manually. Google Translate uses machine learning to translate one word to another. You can the Google Translate API to translate the word before adding it to the server database and save both words on your server database. Then display the word based on whichever Locale is selected by the user.

How to store custom emojis inside text in mongodb

In a web application, a first idea of storing a text message that contains a custom emoji is to save the link of the emoji within the text.
For example if the Messages collection has a content field, that field would contain the following when an emoji is saved within the text:
I am an example content with an emoji icon <img src='assets/emojis/custom-emoji.png'/>
I am not sure if this is the best way, and I would like to know what are the recommendations for this kind of situation.
I would recommend storing them in some symbolic way e.g. {emoji:smileyface}. This will allow you to update image paths without doing any data migration in the future. It will also allow you to do things like theming.
You can do the mapping in a variable on the client or server and at the point of retrieving data map symbol -> path.

Drag and Drop in Office JS page to Word Document

I am creating an online office add-in for the Word application. I have created an HTML page with some fields like, Name, Address, Mobile etc.
On drag and drop of such a field I want to create a MergeField in Word Document.
I have done R&D regarding drag and drop but I am not able to find how to control a drop event outside of the container.
Is there any way to fulfill my requirement?
Due to browser limitations we don’t currently support drag and drop from the taskpane to the word surface.
But what many developers have implemented is a ‘+’ button to add items into the document, or other sorts of events like dbl click.

Change fields depending on drop down selection in Microsoft Word design mode

Can anyone point me to info about how to create a Microsoft Word document that changes text input fields depending on what the user selects in a drop-down menu?
I'm using Word, Developer toolbar, Design mode, and have gotten as far as how to create the drop down selection box, and add text input fields below that on the page, but I need to know how to change what fields appear depending on what the selection is. I'm sure it's possible, I just don't know how to go about it.
I'm pretty good with this sort of thing in HTML with javascript and jQuery, but Word is its own little world.
I tried the "structured" tab but it suggests selecting XML add ins, and none appear in the list to select.
One option is using a template approach in combination with 3rd party toolkit and external application. External application takes care for user interface where user selects template and sets filter for data retrieval. The application then reads the data, generates new document based on template and populates it with data.
You don’t have to mess with MS Word macros and this solution can survive Office upgrades very smoothly.
Template design in done in MS Word. We are using third party toolkit (i.e. Docentric Toolkit) for populating Word documents with data.