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.
ansu_ui/lib/dialog/as_dialog_button.dart

33 lines
902 B

4 years ago
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:ansu_ui/buttons/as_long_button.dart';
4 years ago
class ASDialogButton extends StatelessWidget {
final String? title;
final VoidCallback? onPressed;
4 years ago
final bool outline;
const ASDialogButton(
{Key? key, this.title, this.onPressed, this.outline = false})
4 years ago
: super(key: key);
const ASDialogButton.outline({Key? key, this.title, this.onPressed})
4 years ago
: 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,
),
);
}
}