Build a Flutter App with Gemini AI
Ғылым және технология
Want to add cutting-edge AI to your Flutter app? This video is your one-stop shop!
Learn how to effortlessly integrate Gemini, Google's powerful AI tool, into your Flutter project.
Don't wait, unleash the power of AI in your next project!
#Flutter #BuildWithGemini #GeminiAI #AI #AppDevelopment #TextGeneration #Tutorial #GoogleAI
Пікірлер: 20
Some people thought it was an AI generating a whole code for an app.
@user-vm8yn4hb4w
13 күн бұрын
I got scammed bro
Good
Expecting binder but got null! How to fix that error?
@TheOpenSourceChannel
Ай бұрын
Please try adding the line below in the main() function WidgetsFlutterBinding.ensureInitialized(); Your main() function should look like this. void main() { WidgetsFlutterBinding.ensureInitialized(); runApp(const MyApp()); }
@michaelandreas1857
Ай бұрын
@@TheOpenSourceChannel Can you send me a source code by Email?
@michaelandreas1857
Ай бұрын
@@TheOpenSourceChannel The send button does not appear
@TheOpenSourceChannel
Ай бұрын
Hey @michaelandreas1857 Now GeminiAI demo is available on Dartpad. Check it out - dartpad.dev/?sample=google-ai-sdk You can watch the demo here - kzread.info3qz_s5Ud42s?feature=share
I amm getting this error, and follow your code, am not able to make send msg button , errro is >>> "Method doesn't allow unregistered callers (callers without established identity). Please use API Key or other form of API consumer identity to call this API."
@TheOpenSourceChannel
6 күн бұрын
@FlutterTeam-su1em Thanks for watching the video. Have you generated the API key from Google AI Studio? You need to add it to your project in env.json file. Watch the video at 0:48 to add api key in your project.
When i run the code in my mobile there is black screen it not appear any thing how can i fix that
@TheOpenSourceChannel
Ай бұрын
There must be some mistake in your UI code. Is input field is visible?
@devilsingh6052
22 күн бұрын
@@TheOpenSourceChannel can u give us repo
The title is honestly misleading. What should've been the title is "Build a UI on top of Gemini API using Flutter"
Can I have the code for reference?
@TheOpenSourceChannel
Ай бұрын
Hey @RenderRift Now GeminiAI demo is available on Dartpad. Check it out - dartpad.dev/?sample=google-ai-sdk You can watch the demo here - kzread.info3qz_s5Ud42s?feature=share
You shouldn't publish your api key like this. you could embed your key as an environment variable using "set API_KEY=" on windows
@TheOpenSourceChannel
Ай бұрын
I agree @fatihc9230 we shouldn't publish api key like this. It is just to make the demo easier to understand. Actually we should use flutter_dotenv package to store environment variables.