Reputation: 1175
Is there any plugin or possibility to add google search in flutter app? There will be a button with text. If user clicks that button it will take that text and go to browser and search in google. In html it's like this:
<form method="get" action="http://www.google.com/search">
<div style="border:1px solid black;padding:4px;width:20em;"> <table border="0" cellpadding="0">
<tr>
<td>
<input type="text" name="q" size="25" maxlength="255" value="" />
<input type="submit" value="Google Search" />
</td>
</tr>
</table>
</div>
</form>
How to implement this in flutter?
Upvotes: 0
Views: 4144
Reputation: 30103
Use the url_launcher plugin. To search for a specific thing, append a query parameter to the google url, e.g.: https://www.google.com/search?q=query+goes+here
Upvotes: 2