forked from lxm_flutter/FlutterUnit
39 lines
1.1 KiB
Dart
39 lines
1.1 KiB
Dart
|
||
/// 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 {
|
||
const CustomActionChip({Key? key}) : super(key: key);
|
||
|
||
@override
|
||
Widget build(BuildContext context) {
|
||
return ActionChip(
|
||
padding: const EdgeInsets.all(5),
|
||
labelPadding: const EdgeInsets.all(3),
|
||
label: const 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),
|
||
);
|
||
}
|
||
}
|