跳转到主要内容
此内容尚未提供您的语言版本,正在以英文显示。

Flutter Use Http Package

技能 活跃

Use the `http` package to execute GET, POST, PUT, or DELETE requests. Use when you need to fetch from or send data to a REST API.

目的

To guide developers in effectively fetching data from and sending data to REST APIs within Flutter applications using the `http` package.

功能

  • Execute GET, POST, PUT, DELETE requests
  • Configure REST API access with headers and payloads
  • Handle HTTP status codes and error responses
  • Perform background JSON parsing using isolates
  • Integrate network operations with Flutter's UI

使用场景

  • Fetching data from a REST API to display in a Flutter app
  • Sending user input or data to a backend service
  • Implementing background data processing for network responses
  • Handling API errors gracefully in the Flutter UI

非目标

  • Providing a full-fledged API client library
  • Handling complex WebSocket or GraphQL communication
  • Managing authentication flows beyond simple token injection

Security

  • warning:Secret ManagementThe example code includes a placeholder for 'your_token_here' in the Authorization header, which could be mistaken for a real token and might be accidentally committed. The README does not explicitly mention how to handle sensitive tokens.
  • warning:Data ExfiltrationThe example code includes a placeholder for an authorization token that, if a real token were substituted and committed, could lead to data exfiltration if the project were compromised. The README does not mention security considerations for API keys.

Trust

  • info:Issues Attention17 issues opened and 27 closed in the last 90 days, indicating active maintenance but a closure rate below 50%.

Code Execution

  • warning:ValidationWhile the example code checks for status codes and throws exceptions, it relies on manual mapping to Dart objects and does not explicitly use a schema validation library for parameter or response validation.

Compliance

  • info:GDPRThe skill does not specifically operate on personal data, but the example code includes a placeholder for an authorization token, which could be personal data if mishandled.

安装

npx skills add flutter/skills

通过 npx 运行 Vercel skills CLI(skills.sh)— 需要本地安装 Node.js,以及至少一个兼容 skills 的智能体(Claude Code、Cursor、Codex 等)。前提是仓库遵循 agentskills.io 格式。

质量评分

94 /100
1 day ago 分析

信任信号

最近提交2 days ago
星标1.9k
许可证BSD-3-Clause
状态
查看源代码

类似扩展

Definition Of Done

100

Mandatory checks to run before completing any task that touches md files or dart code in this repository.

技能
flutter

High Performance Browser Networking

100

Optimize web performance through network protocols, resource loading, and browser rendering internals. Use when the user mentions "page load speed", "Core Web Vitals", "HTTP/2", "resource hints", "network latency", "render blocking", "TCP optimization", "service worker", or "critical rendering path". Also trigger when diagnosing slow page loads, optimizing time to first byte, choosing between WebSocket and SSE, or reducing bundle sizes. Covers TCP/TLS optimization, caching strategies, WebSocket/SSE, and protocol selection. For UI visual performance, see refactoring-ui. For font loading, see web-typography.

技能
wondelai

Developing Genkit Dart

99

Generates code and provides documentation for the Genkit Dart SDK. Use when the user asks to build AI agents in Dart, use Genkit flows, or integrate LLMs into Dart/Flutter applications.

技能
firebase

Sentry Flutter Sdk

98

Full Sentry SDK setup for Flutter and Dart. Use when asked to "add Sentry to Flutter", "install sentry_flutter", "setup Sentry in Dart", or configure error monitoring, tracing, profiling, session replay, or logging for Flutter applications. Supports Android, iOS, macOS, Linux, Windows, and Web.

技能
getsentry

Dart Test Fundamentals

98

Core concepts and best practices for `package:test`. Covers `test`, `group`, lifecycle methods (`setUp`, `tearDown`), and configuration (`dart_test.yaml`).

技能
flutter

Dart Modern Features

98

Guidelines for using modern Dart features (v3.0 - v3.10) such as Records, Pattern Matching, Switch Expressions, Extension Types, Class Modifiers, Wildcards, Null-Aware Elements, and Dot Shorthands.

技能
flutter