FLUTTER ECOSYSTEM

matwright/flutter_3d_choice_chip

该包为 Flutter 应用提供了一个简单的 3D 选择芯片。

flutter_3d_choice_chip 项目封面
Stars
4
Forks
0
最近推送(UTC)
2021年9月20日
项目状态
未归档
Matthew Wright GitHub avatar
GITHUB User

Matthew Wright ↗

Concepteur-Développeur Web/Mobile Flutter l Firebase | Unity | Web

Campfire DigitalBourg En Bresse, France官方网站 ↗
语言Dart

此仓库发布的插件

使用的依赖

依赖清单 2 项
  • flutter{"sdk":"flutter"}
  • flutter_test开发依赖{"sdk":"flutter"}

原始 README

以下为英文项目原文快照,最新内容请访问 GitHub。

展开 / 收起项目 README

flutter_3d_choice_chip

This package provides a simple 3D choice chip.

https://raw.githubusercontent.com/matwright/flutter_3d_choice_chip/main/example/flutter_3d_choice_chip.webp

Getting Started

Import the file.

import 'package:flutter_3d_choice_chip/flutter_3d_choice_chip.dart';
Use with default style:
ChoiceChip3D(
  style: ChoiceChip3DStyle.blue, // ChoiceChip3DStyle.red, ChoiceChip3DStyle.white
  selected: true,
  onSelected: () {},
  onUnSelected: () {},
  child: Text("My Choice"),
);
Use with custom style:
ChoiceChip3D(
  style: ChoiceChip3dStyle(
      topColor: Colors.lightGreen,
      backColor: Colors.deepOrange,
      borderRadius: BorderRadius.zero
  ),
  onSelected: () {},
  onUnSelected: () {},
  child: Text("My Choice"),
);
Credit

Flutter 3D Choice Chip was inspired by button3d