|
|
|
@ -13,70 +13,133 @@ class _ExampleButtonState extends State<ExampleButton> {
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
return ASScaffold(
|
|
|
|
|
title: 'Button',
|
|
|
|
|
title: 'ASButton',
|
|
|
|
|
body: ListView(
|
|
|
|
|
children: [
|
|
|
|
|
ASButton.danger(
|
|
|
|
|
title: '危险按钮',
|
|
|
|
|
onPressed: () {},
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
Text('danger'),
|
|
|
|
|
Spacer(),
|
|
|
|
|
ASButton.danger(
|
|
|
|
|
title: '删除订单',
|
|
|
|
|
onPressed: () {},
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
ASButton.info(
|
|
|
|
|
title: '提示按钮',
|
|
|
|
|
onPressed: () {},
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
Text('info'),
|
|
|
|
|
Spacer(),
|
|
|
|
|
ASButton.info(
|
|
|
|
|
title: '删除订单',
|
|
|
|
|
onPressed: () {},
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
Text('warn'),
|
|
|
|
|
Spacer(),
|
|
|
|
|
ASButton.warn(
|
|
|
|
|
title: '删除订单',
|
|
|
|
|
onPressed: () {},
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
ASButton.warn(
|
|
|
|
|
title: '警告按钮',
|
|
|
|
|
onPressed: () {},
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
Text('operation'),
|
|
|
|
|
Spacer(),
|
|
|
|
|
ASButton.operation(
|
|
|
|
|
title: '删除订单',
|
|
|
|
|
onPressed: () {},
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
ASButton.operation(
|
|
|
|
|
title: '操作按钮',
|
|
|
|
|
onPressed: () {},
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
Text('order'),
|
|
|
|
|
Spacer(),
|
|
|
|
|
ASButton.order(
|
|
|
|
|
title: '立即下单',
|
|
|
|
|
onPressed: () {},
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 12.w),
|
|
|
|
|
ASLongButton.solid(
|
|
|
|
|
title: '确认',
|
|
|
|
|
onPressed: () {},
|
|
|
|
|
),
|
|
|
|
|
ASLongButton.hollow(
|
|
|
|
|
title: '确认',
|
|
|
|
|
onPressed: () {},
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
Spacer(),
|
|
|
|
|
Text(
|
|
|
|
|
'ASLongButton',
|
|
|
|
|
style: TextStyle(fontSize: 20.sp, fontWeight: FontWeight.bold),
|
|
|
|
|
),
|
|
|
|
|
Spacer(),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Padding(
|
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 100.w),
|
|
|
|
|
child: ASLongButton.solid(title: 'null', onPressed: () {}),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 12.w,
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
ASGradientButton.pay(
|
|
|
|
|
title: '支付',
|
|
|
|
|
Text('solid'),
|
|
|
|
|
Spacer(),
|
|
|
|
|
ASLongButton.solid(
|
|
|
|
|
title: '确认',
|
|
|
|
|
onPressed: () {},
|
|
|
|
|
),
|
|
|
|
|
ASButton.danger(
|
|
|
|
|
title: '删除',
|
|
|
|
|
onPressed: () {},
|
|
|
|
|
),
|
|
|
|
|
ASGradientButton.operation(
|
|
|
|
|
title: 'null',
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
Text('hollow'),
|
|
|
|
|
Spacer(),
|
|
|
|
|
ASLongButton.hollow(
|
|
|
|
|
title: '确认',
|
|
|
|
|
onPressed: () {},
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
ASLongButton.hollow(
|
|
|
|
|
title: '确认',
|
|
|
|
|
onPressed: () {},
|
|
|
|
|
),
|
|
|
|
|
Padding(
|
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 100.w),
|
|
|
|
|
child: ASLongButton.solid(title: 'null', onPressed: () {}),
|
|
|
|
|
child: ASLongButton.solid(title: 'adaptable', onPressed: () {}),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 12.w,
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
ASButton.order(
|
|
|
|
|
title: '立即下单',
|
|
|
|
|
Spacer(),
|
|
|
|
|
Text(
|
|
|
|
|
'ASGradientButton',
|
|
|
|
|
style: TextStyle(fontSize: 20.sp, fontWeight: FontWeight.bold),
|
|
|
|
|
),
|
|
|
|
|
Spacer(),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 12.w,
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
Text('pay'),
|
|
|
|
|
Spacer(),
|
|
|
|
|
ASGradientButton.pay(
|
|
|
|
|
title: '支付',
|
|
|
|
|
onPressed: () {},
|
|
|
|
|
)
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
Text('opration'),
|
|
|
|
|
Spacer(),
|
|
|
|
|
ASGradientButton.operation(
|
|
|
|
|
title: '自动拆票',
|
|
|
|
|
onPressed: () {},
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|