UnicornDialer
轻松创建您自己的浮动操作按钮列表。
Flutter 浮动操作按钮带速度拨号。


安装
将 UnicornDialer 添加到您的 pubspec.yaml 文件中
unicorndial: "^1.1.4"
选项
UnicornDialer 类
int orientation - 垂直或水平浮动按钮列表
Object parentHeroTag - 主FAB的hero标签
Color backgroundColor - 模态背景颜色
Icon parentButton - 起始图标
Icon finalButtonIcon - 结束图标(动画完成后)
bool hasBackground - 是否设置了背景模态
Color parentButtonBackground - 主浮动按钮的背景颜色
List<UnicornButton> childButtons 浮动按钮列表
int animationDuration 旋转和展开动画持续时间(毫秒)
double childPadding - 按钮标签的右侧内边距
Function onMainButtonPressed - 如果设置在UnicornDialer父组件上,将被调用
bool hasNotch - 支持BottomAppBar
UnicornButton 类
FloatingActionButton currentButton - 浮动列表按钮
String labelText
double labelFontSize
Color labelColor
Color labelBackgroundColor
Color labelShadowColor - 标签容器阴影
bool labelHasShadow
bool hasLabel