Token导航 LogoToken导航TokenDH.com
前端设计只读github未标认证来源可访问许可证需确认审计通过

shadcn-ui-fluttershadcn/ui UI Flutter 浏览器

Agent Skill

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。它适合让 Agent 根据产品场景整理页面结构、生成 UI 方案、检查视觉一致性或改进组件层级。使用时需要结合现有品牌、设计系统和用户任务,不应只堆装饰元素;涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出、对齐和响应式表现。

总安装

1,557

周安装

63

GitHub Stars

2,607

下载量

489
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:shadcn-ui-flutter(shadcn/ui UI Flutter 浏览器)
来源仓库:https://github.com/nank1ro/flutter-shadcn-ui
仓库路径:skills/shadcn-ui-flutter
安装命令:
npx skills add https://github.com/nank1ro/flutter-shadcn-ui --skill shadcn-ui-flutter
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/nank1ro/flutter-shadcn-ui --skill shadcn-ui-flutter

简介

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。

  • 它适合让 Agent 根据产品场景整理页面结构、生成 UI 方案、检查视觉一致性。
  • 使用时需要结合现有品牌、设计系统和用户任务,不应只堆装饰元素。
  • 涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出、对齐和响应式表现。
  • 支持通过 npx 命令从指定 GitHub 仓库安装使用。

SKILL.md

Shadcn UI for Flutter

This skill provides documentation and examples for using the shadcn_ui package in Flutter.

Theming and Customization

Shadcn UI for Flutter provides a powerful theming system. You can use built-in color schemes (blue, gray, green, neutral, orange, red, rose, slate, stone, violet, yellow, zinc) or create your own.

Applying a Theme

Use ShadThemeData within ShadApp to define your light and dark themes.

Detailed Guides

Components

NameDescriptionReference
AccordionA vertically stacked set of interactive headings that each reveal a section of content.accordion.md
AlertDisplays a callout for user attention.alert.md
AvatarAn image element with a placeholder for representing the user.avatar.md
BadgeDisplays a badge or a component that looks like a badge.badge.md
BreadcrumbDisplays the path to the current resource using a hierarchy of links.breadcrumb.md
ButtonDisplays a button or a component that looks like a button.button.md
CalendarA date field component that allows users to enter and edit date.calendar.md
CardDisplays a card with header, content, and footer.card.md
CheckboxA control that allows the user to toggle between checked and not checked.checkbox.md
Context MenuDisplays a menu to the user — such as a set of actions or functions — triggered by a mouse right-click.context-menu.md
Date PickerA date picker component with range and presets.date-picker.md
DialogA modal dialog that interrupts the user.dialog.md
FormBuilds a form with validation and easy access to form fields values.form.md
IconButtonDisplays an icon button or a component that looks like a button with an icon.icon-button.md
InputDisplays a form input field or a component that looks like an input field.input.md
InputOTPAccessible one-time password component with copy paste functionality.input-otp.md
MenubarA visually persistent menu common in desktop applications that provides quick access to a consistent set of commands.menubar.md
PopoverDisplays rich content in a portal, triggered by a button.popover.md
ProgressDisplays an indicator showing the completion progress of a task, typically displayed as a progress bar.progress.md
RadioGroupA set of checkable buttons—known as radio buttons—where no more than one of the buttons can be checked at a time.radio-group.md
ResizableResizable panel groups and layouts.resizable.md
SelectDisplays a list of options for the user to pick from—triggered by a button.select.md
SeparatorVisually or semantically separates content.separator.md
SheetExtends the Dialog component to display content that complements the main content of the screen.sheet.md
SliderAn input where the user selects a value from within a given range.slider.md
SonnerAn opinionated toast component.sonner.md
SwitchA control that allows the user to toggle between checked and not checked.switch.md
TableA responsive table component.table.md
TabsA set of layered sections of content—known as tab panels—that are displayed one at a time.tabs.md
TextareaDisplays a form textarea or a component that looks like a textarea.textarea.md
Time PickerA time picker component.time-picker.md
ToastA succinct message that is displayed temporarily.toast.md
TooltipA popup that displays information related to an element when the element receives keyboard focus or the mouse hovers over it.tooltip.md

Usage Examples

Examples are available at the bottom of each component page.

Basic Setup

Here is a complete example of a Counter App using shadcn_ui, including light and dark theme support.

import 'package:shadcn_ui/shadcn_ui.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return ShadApp(
      debugShowCheckedModeBanner: false,
      theme: ShadThemeData(
        brightness: Brightness.light,
        colorScheme: const ShadZincColorScheme.light(),
      ),
      darkTheme: ShadThemeData(
        brightness: Brightness.dark,
        colorScheme: const ShadZincColorScheme.dark(),
      ),
      themeMode: ThemeMode.system,
      home: const CounterPage(),
    );
  }
}

class CounterPage extends StatefulWidget {
  const CounterPage({super.key});

  @override
  State<CounterPage> createState() => _CounterPageState();
}

class _CounterPageState extends State<CounterPage> {
  int _counter = 0;

  void _incrementCounter() {
    setState(() {
      _counter++;
    });
  }

  @override
  Widget build(BuildContext context) {
    final theme = ShadTheme.of(context);
    return Scaffold(
      appBar: AppBar(title: const Text('Shadcn Counter')),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            Text(
              'You have pushed the button this many times:',
              style: theme.textTheme.muted,
            ),
            Text(
              '$_counter',
              style: theme.textTheme.h1,
            ),
          ],
        ),
      ),
      floatingActionButton: ShadButton(
        onPressed: _incrementCounter,
        child: const Icon(LucideIcons.plus),
      ),
    );
  }
}

Packages included in the library

Flutter Shadcn UI consists of fantastic open-source libraries that are exported and you can use them without importing them into your project.

flutter_animate

The flutter animate library is a very cool animations library extensively used in Shadcn UI Components.

With flutter_animate animations can be easily customized from the user, because components will take a List<Effect>.

lucide_icons_flutter

A nice icon library that is used in Shadcn UI Components. You can use Lucide icons with the LucideIcons class, for example LucideIcons.activity.

You can browse all the icons here.

two_dimensional_scrollables

A nice raw table (very performant) implementation used by the ShadTable component.

intl

The intl package provides internationalization and localization facilities, including message translation.

universal_image

Support multiple image formats. Used by the ShadAvatar component.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.84%
按下载量换算170

Claude

29.01%
按下载量换算142

Cursor

20.03%
按下载量换算98

Gemini CLI

10.92%
按下载量换算53

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills