我想以某种方式修改颤振的外观,使其看起来像下面的图像

问题描述 投票:0回答:1

Want fab button to look like this upon tap

我想修改拍打的方式,使拍打时看起来像这张图像。其中3个图块基本上可以包含任何东西。我能找到的最接近的是这个:-https://pub.dev/packages/flutter_boom_menu在此先感谢:)

flutter dart flutter-layout floating-action-button dart-pub
1个回答
0
投票
Widget build(BuildContext context) {
    return Scaffold(
        floatingActionButton: BoomMenu(
      animatedIcon: AnimatedIcons.menu_close,
      animatedIconTheme: IconThemeData(size: 22.0),
      //child: Icon(Icons.add),
      onOpen: () => print('OPENING DIAL'),
      onClose: () => print('DIAL CLOSED'),
      scrollVisible: scrollVisible,
      overlayColor: Colors.black,
      overlayOpacity: 0.7,
      children: [
        MenuItem(
          child: ConstrainedBox(
  constraints: new BoxConstraints(
    minHeight: 5.0,
    minWidth: 5.0,
    maxHeight: 30.0,
    maxWidth: 30.0,
  ),
  child: new DecoratedBox(
    decoration: new BoxDecoration(color: Colors.red),
  ),
),
          backgroundColor: Colors.deepOrange,
          onTap: () => print('FIRST CHILD'),
        ),


      ],
    ),
    );
}
© www.soinside.com 2019 - 2024. All rights reserved.