I'm new to flutter, and I want to show a paragraph(markdown text) in my app page.
But I'm confused how to use it. I didn't find a widget in dart-lang/markdown.
https://pub.dartlang.org/packages/markdown
Related
I have got my Auto complete search working and it show the results in a list tile .
But I want it to go to different pages that i have made for each search result
Eg: This is my list of string
final product=[
"shirts",
"Shoes",
"jeans",
"informals",
"Skirts",
"Dresses",
"coats"
];
I want it to open a different page for each of them
for Now i have just directed it to a single page.
#override
Widget buildResults(BuildContext context) {
// show result
return Products();
}
How should I do it, cuz I am just a noob in dart and flutter I am dong this watching a tutorial video but it is not explained it that very well about my problem.
any help would be appreciated.
Use Navigator to go to another specific page. You can use specific route names or you can use a switch for each result.
Here you have the flutter doc for Navigator
I'm looking for a way to create a textfield with autocomplete and dropdown feature so that a user can also add a new keyword.
Similar to this JS-selector:
https://select2.github.io/examples.html#tags
The only difference is that my textfield should only accept one selection and no multiselect.
I've googled for open source or a payed widget for this, but mostly I found very old and not good looking stuff with Swift 1 and things like that.
So is there no fancy autocomplete-dropdown textfield which is simple to implement in my project?
Or is there a reason why there is so less stuff on a UI-object like the one I described?
There is no auto-complete widget, that I'm aware of at least.
But you can create your own:
pull the string from the input textfield.
compare it against an array of potential keywords
pull the range of the string, highlight the letters in the keywords
where the user completes without selecting a drop down, add keyword
Check this https://github.com/mnbayan/AutocompleteTextfieldSwift.
Really easy to use and implement. You just need to create the UITextField as this type and set the content to check.
I've written a simple auto-complete pop up view named SwiftAutoSuggestion
Add pod 'SwiftAutoSuggestion' in your pod file
Then, Run pod install.
More details an be found on the link.
And, just to add another stick onto the woodpile, I just released this (RVS_AutofillTextField).
It's a UITextField that has been extended to provide a "dropdown" table, that acts as an autocomplete source.
For a tag system, when entering a new item, I'd like the user to start typing a letter or two and see possible tags...similar to how SO tags work on the website i.e. Ajax.
Is there a way to do this on IOS?
Basically the Add Item screen has some empty text fields where you put the name etc.
I'd like to have an additional empty field where as you enter letters you see possible tags appear below and can then select one to tag the item.
The tags would be served from an entity or table so there would have to be a call to core data to supply them based on the letters typed.
Do I have to implement a full blown tableview to do this? Or is there a way to make the possible tags show up below the textfield box.
Thanks for any suggestions.
You could try a third party development in order to make what you want. In a recent project I have used this one:
https://github.com/EddyBorja/MLPAutoCompleteTextField
I am currently using summernote(wysiwyg) widget. I want to update the value of the widget explicitly from some place in the code using jquery, which I couldn't do currently. We can do this by catching the events keyup, enter etc., But I want this to happen exclusively with jquery from some point that to from some place of my code.
For example: I want some kind of $("summernote selector").val("Take this new value");
Is there any way to do this. I couldn't find one.
I'm not sure I understand your question correctly, but is this what you are after?
var sHTML = 'text';
$('summernote selector').code(sHTML);
I use LibreOffice Writer and I want to insert an alternative text to a specific phrase in the document, how can I do it?
Example if we have an image in the document we can make double left click and add the alternative text like this:
Is it possible to make the same if we select a whole phrase of text? If yes how? And if No is there any other proposal?
The alternative text in 'word'/odt documents is actually intended as the 'alt' attribute in HTML (web) pages:
The alt attribute provides alternative information for an image if a
user for some reason cannot view it (because of slow connection, an
error in the src attribute, or if the user uses a screen reader).
(http://www.w3schools.com/tags/att_img_alt.asp)
It's only purpuse is thus to provide the user with information in case he/she can not view the image. Since having alternative text in case some text cannot be displayed is, well, silly, this 'alt' attribute is not defined for pieces of text. Alternatively, you could have a hyperlink pointing to nothing ("#"), which does provide a tooltip attribute.
What is it that you're intending to achieve anyway? It's not going to show up on any prints, which is the intended purpose of Writer... Footnotes (for prints) or Comments (for communication with co-editors) might suit you better.