forked from lxm_flutter/FlutterUnit
34 lines
1.1 KiB
Dart
34 lines
1.1 KiB
Dart
|
|
|
|
/// create by 张风捷特烈 on 2020/4/25
|
|
/// contact me by email 1981462002@qq.com
|
|
/// 说明:
|
|
|
|
// {
|
|
// "widgetId": 11,
|
|
// "priority": 3,
|
|
// "name": "可以设置右侧点击按钮",
|
|
// "subtitle": "【deleteIcon】: 右侧组件(通常为Icon) 【Widget】\n"
|
|
// "【deleteIconColor】: 右侧组件颜色 【Color】\n"
|
|
// "【onDeleted】: 右侧组件点击事件 【Function】",
|
|
// }
|
|
import 'package:flutter/material.dart';
|
|
import '../../../components/project/dialogs/dialog_about.dart';
|
|
|
|
class DeleteOfChip extends StatelessWidget {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Chip(
|
|
avatar: Image.asset("assets/images/icon_head.webp"),
|
|
label: Text("张风捷特烈"),
|
|
padding: EdgeInsets.all(5),
|
|
labelPadding: EdgeInsets.all(3),
|
|
backgroundColor: Colors.grey.withAlpha(66),
|
|
shadowColor: Colors.orangeAccent,
|
|
// deleteIcon: Icon(Icons.close,size: 18),
|
|
deleteIconColor: Colors.red,
|
|
onDeleted: () => DialogAbout.show(context),
|
|
elevation: 3,
|
|
);
|
|
}
|
|
} |