showGeneralDialog(
barrierDismissible: true,
barrierLabel: 'open',
barrierColor: Colors.transparent,
context: context,
transitionDuration: Duration(milliseconds: 200),
transitionBuilder: (BuildContext context,
Animation<double> animation,
Animation<double> secondaryAnimation,
Widget child) {
return FadeTransition(
opacity: animation, child: child);
},
pageBuilder: (BuildContext buildContext,
Animation<double> animation,
Animation<double> secondaryAnimation) =>
Align(
alignment: Alignment.centerRight,
child: Material(
color: appColor.main.withOpacity(0.5),
child: Container(
width: 200,
child: SingleChildScrollView(
child: Padding(
padding: const EdgeInsets.all(8),
child: Wrap(
spacing: 12,
runSpacing: 6,
alignment: WrapAlignment.start,
runAlignment: WrapAlignment.start,
crossAxisAlignment:
WrapCrossAlignment.start,
children: buttomListPlay(),
),
),
),
))));
版权属于:
narakuyang
作品采用:
《
署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)
》许可协议授权
评论