Files
FlutterUnit/lib/views/widgets/StatelessWidget/ActionChip/node1_base.dart
2021-04-03 19:41:09 +08:00

37 lines
1.0 KiB
Dart
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/// create by 张风捷特烈 on 2020/4/25
/// contact me by email 1981462002@qq.com
/// 说明:
///
// {
/// "widgetId": 13,
// "priority": 1,
// "name": "ActionChip的普通表现如下",
// "subtitle": "【onPressed】: 点击事件 【Function】\n"
// "【pressElevation】: 按下时影深 【double】\n"
// "其他属性同Chip组件无右侧组件。",
// }
///
import 'package:flutter/material.dart';
import '../../../components/project/dialogs/dialog_about.dart';
class CustomActionChip extends StatelessWidget {
@override
Widget build(BuildContext context) {
return ActionChip(
padding: EdgeInsets.all(5),
labelPadding: EdgeInsets.all(3),
label: Text("This is a ActionChip."),
backgroundColor: Colors.grey.withAlpha(66),
avatar: Image.asset("assets/images/icon_head.webp"),
shadowColor: Colors.orangeAccent,
elevation: 3,
pressElevation: 5,
onPressed: ()=> DialogAbout.show(context),
);
}
}