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