You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
85 lines
2.2 KiB
85 lines
2.2 KiB
import 'package:ansu_ui/ansu_ui.dart';
|
|
import 'package:ansu_ui/buttons/as_gradientbutton.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
class ExampleButton extends StatefulWidget {
|
|
ExampleButton({Key key}) : super(key: key);
|
|
|
|
@override
|
|
_ExampleButtonState createState() => _ExampleButtonState();
|
|
}
|
|
|
|
class _ExampleButtonState extends State<ExampleButton> {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return ASScaffold(
|
|
title: 'Button',
|
|
body: ListView(
|
|
children: [
|
|
ASButton.danger(
|
|
title: '危险按钮',
|
|
onPressed: () {},
|
|
),
|
|
ASButton.info(
|
|
title: '提示按钮',
|
|
onPressed: () {},
|
|
),
|
|
ASButton.warn(
|
|
title: '警告按钮',
|
|
onPressed: () {},
|
|
),
|
|
ASButton.operation(
|
|
title: '操作按钮',
|
|
onPressed: () {},
|
|
),
|
|
SizedBox(height: 12.w),
|
|
ASLongButton.solid(
|
|
title: '确认',
|
|
onPressed: () {},
|
|
),
|
|
ASLongButton.hollow(
|
|
title: '确认',
|
|
onPressed: () {},
|
|
),
|
|
Padding(
|
|
padding: EdgeInsets.symmetric(horizontal: 100.w),
|
|
child: ASLongButton.solid(title: 'null', onPressed: () {}),
|
|
),
|
|
Row(
|
|
children: [
|
|
ASGradientButton.pay(
|
|
title: '支付',
|
|
onPressed: () {},
|
|
),
|
|
ASButton.danger(
|
|
title: '删除',
|
|
onPressed: () {},
|
|
),
|
|
ASGradientButton.operation(
|
|
title: 'null',
|
|
onPressed: () {},
|
|
),
|
|
],
|
|
),
|
|
ASLongButton.hollow(
|
|
title: '确认',
|
|
onPressed: () {},
|
|
),
|
|
Padding(
|
|
padding: EdgeInsets.symmetric(horizontal: 100.w),
|
|
child: ASLongButton.solid(title: 'null', onPressed: () {}),
|
|
),
|
|
Row(
|
|
children: [
|
|
ASButton.order(
|
|
title: '立即下单',
|
|
onPressed: () {},
|
|
)
|
|
],
|
|
)
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|