修改命名规范

null_safety
张萌 4 years ago
parent 367b9edeba
commit 66ffd72a72

@ -44,7 +44,7 @@ class _MyHomePageState extends State<MyHomePage> {
),
body: ListView(
children: [
ASButton.gray('删除订单', (){}),
ASButton.delete('删除订单', (){}),
SizedBox(height: 12.w),
TextButton(
onPressed: () {

@ -44,21 +44,21 @@ class ASButton extends StatefulWidget {
@required this.onpressed,
}) : super(key: key);
ASButton.red(this.title, this.onpressed,
ASButton.warn(this.title, this.onpressed,
{Key key, this.textStyle, this.padding, this.radius, this.color})
: outline = true,
outlineColor = Color(0xFFE50112),
textColor = Color(0xFFE50112),
super(key: key);
ASButton.gray(this.title, this.onpressed,
ASButton.info(this.title, this.onpressed,
{Key key, this.color, this.radius, this.textStyle, this.padding})
: outline = true,
outlineColor = Color(0x73000000),
textColor = Color(0xD9000000),
super(key: key);
ASButton.yellow(this.title, this.onpressed,
ASButton.delete(this.title, this.onpressed,
{Key key, this.radius, this.outlineColor, this.textStyle, this.padding})
: color = Color(0xFFFFB600),
textColor = Color(0xD9FFFFFF),

Loading…
Cancel
Save