flutter-theming-apps

安装量: 9.5K
排名: #2196

安装

npx skills add https://github.com/flutter/agent-plugins --skill flutter-theming-apps

Implementing Flutter Theming and Adaptive Design Contents Core Theming Concepts Material 3 Guidelines Component Theme Normalization Button Styling Platform Idioms & Adaptive Design Workflows Examples Core Theming Concepts Flutter applies styling in a strict hierarchy: styles applied to the specific widget -> themes that override the immediate parent theme -> the main app theme. Define app-wide themes using the theme property of MaterialApp with a ThemeData instance. Override themes for specific widget subtrees by wrapping them in a Theme widget and using Theme.of(context).copyWith(...) . Do not use deprecated ThemeData properties: Replace accentColor with colorScheme.secondary . Replace accentTextTheme with textTheme (using colorScheme.onSecondary for contrast). Replace AppBarTheme.color with AppBarTheme.backgroundColor . Show more Installs 9.5K Repository flutter/agent-plugins GitHub Stars 3.0K First Seen Mar 13, 2026 Security Audits Gen Agent Trust Hub Pass Socket Pass Snyk Pass

← 返回排行榜