You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cloudsolutions-atoms/lib/views/widgets/buttons/app_back_button.dart

29 lines
733 B
Dart

3 years ago
import 'package:flutter/material.dart';
import 'app_icon_button.dart';
3 years ago
class ABackButton extends StatelessWidget {
final VoidCallback? onPressed;
final IconData? icon;
const ABackButton({Key? key, this.onPressed, this.icon}) : super(key: key);
3 years ago
@override
Widget build(BuildContext context) {
return Padding(
padding: const EdgeInsets.symmetric(vertical: 4, horizontal: 16),
3 years ago
child: AIconButton(
// color: AColors.white,
// backgroundColor: AColors.primaryColor,
iconData: icon ?? Icons.arrow_back_ios_new,
3 years ago
iconSize: 24,
buttonSize: 40,
onPressed: onPressed ??
() {
Navigator.of(context).pop();
},
3 years ago
),
);
}
}