parent
3564cb0472
commit
ee90d3356b
@ -0,0 +1,32 @@
|
||||
import 'package:ansu_ui/buttons/as_longbutton.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
|
||||
class ASDialogButton extends StatelessWidget {
|
||||
final String title;
|
||||
final VoidCallback onPressed;
|
||||
final bool outline;
|
||||
const ASDialogButton(
|
||||
{Key key, this.title, this.onPressed, this.outline = false})
|
||||
: super(key: key);
|
||||
|
||||
const ASDialogButton.outline({Key key, this.title, this.onPressed})
|
||||
: outline = true,
|
||||
super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Padding(
|
||||
padding: EdgeInsets.symmetric(horizontal: 36.w),
|
||||
child: outline
|
||||
? ASLongButton.hollow(
|
||||
title: title,
|
||||
onPressed: onPressed,
|
||||
)
|
||||
: ASLongButton.solid(
|
||||
title: title,
|
||||
onPressed: onPressed,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
Loading…
Reference in new issue