0
点赞
收藏
分享

微信扫一扫

el-data-pick 选出的时间为2024-10-22T16:00:00.000Z样子的与期待的不符合 使用value-format解决

全栈学习笔记 2024-11-06 阅读 3

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

  1. Generate API Key:

    • Visit Makersuite by Google to obtain your free Gemini API key.
  2. Activate Extension:

    • Press Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (Mac) to open the command window.
    • Type in FlutterAI: Generate Flutter Snippet and press Enter.
  3. Enter API Key:

    • When prompted, enter the API key you obtained in Step 1.
  4. 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.
  5. Change Api key anytime:

    • Type in the command window FlutterAI: Enter/Replace Api key and press Enter.
    • When prompted, enter the API key you want to change. That's it your Api key is changed.

Features

Generate Dart Code: Quickly generate Dart code snippets based on natural language prompts.

flutterai-richtext-tuts.gif

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自动生成,仅供参考

举报
0 条评论