v1.2.1chiclet
Chiclet 为您提供高度可定制的岛屿风格按钮,类似于流行的语言学习应用 Duolingo 和 Figma 课程中的样式。
一个包含高度可定制的岛屿风格按钮(称为 Chiclet)的 Flutter 包。
以下为英文项目原文快照,最新内容请访问 GitHub。
Highly customizable island-style buttons known as Chiclet.
If you find this project useful and would like to support its development, you can donate using the following cryptocurrencies. We work on this project in our spare time alongside our full-time jobs, and even a small donation — as little as $1 — goes a long way in Iran and helps us dedicate more time to improving and maintaining it.
bc1qkxcvlvkrslx33g2kql45au438ua3qrvanangw20x575ef94aea4aa5bdf5c74c6b47311768118ad7c7TRXMXafCkQ1sND7f9rfUNVDWazR866GHwFTRXMXafCkQ1sND7f9rfUNVDWazR866GHwFUQBcgZhcrJ-Qd-MUol1SvCLSqZCWZ01efrJJh4SUsoBpGtJwChiclet provides you with highly customizable island-style buttons similar to those found in the popular language learning app Duolingo and Figma courses.
In the dependencies: section of your pubspec.yaml, add the following line:
dependencies:
chiclet: <latest_version>
Chiclet in your main.dart.import 'package:chiclet/chiclet.dart';
ChicletOutlinedAnimatedButton(
onPressed: () {},
child: const Icon(Icons.download_rounded),
),
ChicletButtonTypes.roundedRectangle in front of the buttonType property. In either case, the result will be the same. Example:ChicletOutlinedAnimatedButton(
onPressed: () {},
child: const Icon(Icons.download_rounded),
),
ChicletOutlinedAnimatedButton(
onPressed: () {},
buttonType: ChicletButtonTypes.roundedRectangle,
child: const Icon(Icons.download_rounded),
),
ChicletButtonTypes.circle in front of the buttonType property. Example:ChicletOutlinedAnimatedButton(
onPressed: () {},
buttonType: ChicletButtonTypes.circle,
child: const Icon(Icons.download_rounded),
),
ChicletButtonTypes.circle in front of the buttonType property. Example:ChicletOutlinedAnimatedButton(
onPressed: () {},
width: 65,
buttonType: ChicletButtonTypes.oval,
child: const Icon(Icons.download_rounded),
),
You can find more examples in the /example/lib/main.dart directory.
height),height),shade.900 of ThemeData's primarySwatch, unless you provide the backgroundColor property, then it will be shade.900 of the backgroundColor property),Colors.white),ThemeData's primarySwatch),NoSplash.splashFactory),ChicletButtonTypes.roundedRectangle),height),height),Colors.grey),Colors.grey),ThemeData's primarySwatch),Colors.white),Theme.colorScheme.onSurface(0.12)),NoSplash.splashFactory),ChicletButtonTypes.roundedRectangle),height),Colors.grey),ThemeData's primarySwatch),Colors.white),NoSplash.splashFactory),ChicletButtonTypes.roundedRectangle),Colors.grey),ThemeData's primarySwatch),Colors.white),[!NOTE] When using Material 3, providing the
primarySwatchdoesn't affect the color properties. You should consider providing eithercolorSchemeorColorSchemeSeed.
Suggestions, recommendations, bug reports, and issues: DevRedStone
依赖清单 3 项
{"sdk":"flutter"}{"sdk":"flutter"}^6.0.0先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗