Getting access to GitHub Copilot
Sign up for a 30-day free trial with GitHub Copilot today or request Copilot access from your enterprise admin. To access GitHub Copilot, an active GitHub Copilot subscription is required. You can read more about our business and individual offerings at github.com/features/copilot.
Getting Started https://github.com/yashpalzala/flutterai
---------------------------------------
FlutterAI: Generate / Flutter Build with AI
Generate API Key:
Visit Makersuite by Google to obtain your free Gemini API key.
Flutter Build with AI https://flutter.dev/ai
Build and deploy intelligent AI-driven features across platforms with Flutter and Google's AI capabilities
FlutterAI: Generate Dart snippets
yashpalzala / flutterai https://github.com/yashpalzala/flutterai
Create an AI Image Generator In Flutter, Clean Architecture Part 1 https://yassinebenkhay.com/ai-image-generator-in-flutter-with-clean-architecture/
Using Generative AI with Flutter https://getstream.io/blog/generative-ai-flutter/
官方文档:flutterai README
FlutterAI is a VS Code extension that allows you to generate Dart code snippets based on natural language input.
Getting Started
-
Generate API Key:
- Visit Makersuite by Google to obtain your free Gemini API key.
-
Activate Extension:
- Press
Ctrl+Shift+P
(Windows/Linux) orCmd+Shift+P
(Mac) to open the command window. - Type in
FlutterAI: Generate Flutter Snippet
and pressEnter
.
- Press
-
Enter API Key:
- When prompted, enter the API key you obtained in Step 1.
-
Write Your Snippet Prompt:
- In the editor, write a natural language prompt for the Dart code you want to generate.
- Wait for the code to be generated and automatically inserted at the current cursor position.
-
Change Api key anytime:
- Type in the command window
FlutterAI: Enter/Replace Api key
and pressEnter
. - When prompted, enter the API key you want to change. That's it your Api key is changed.
- Type in the command window
Features
Generate Dart Code: Quickly generate Dart code snippets based on natural language prompts.
Requirements
- Please update your VS Code to the latest version
- Get your Api key to generate code snippets from https://makersuite.google.com/app/apikey
Note
- This dart code generator is dependent on Gemini Pro as of now.
- You can make 60 requests/min. according to Gemini documentation.
- Your Api key is stored locally in an encrypted form and is not exposed in anyway.
- The code can be buggy so make sure to check the code.
- The code is generated by AI so all the conditions of using external Code are applied here as well.
Extension Settings
No settings are required as of now just follow Getting started steps and you are good to go.
Release Notes
Initial version with minimal Code generation feature.
What's new (v0.0.3)
Added support for storing previous prompts to directly access them next time you want to generate the code using FlutterAI: Generate Flutter Snippet
command and also edit the previously used commands on the go.
Contributions
We welcome contributions! If you find a bug, have a feature request, or want to contribute in any way, please check our Gitub Repo: GitHub - yashpalzala/flutterai
For more information
For support or inquiries, please contact me at yzala999@gmail.com.
Also you can connect with me at: https://www.linkedin.com/in/yashpal-zala/
Enjoy!
百度 AI 自动生成,搜索关键字 “c++ 快速排序 源码“
快速排序是一种高效的排序算法,它使用分治策略来对一个数组进行排序。以下是一个C++快速排序的示例代码:
这段代码定义了quicksort函数,它递归地对数组进行排序,并使用partition函数来划分数组,以便对相对排序好的子数组进行递归排序。main函数中演示了对一个示例数组的排序过程。
提示:AI自动生成,仅供参考