feat: risk profile view
This commit is contained in:
@@ -4,7 +4,8 @@ import 'package:flutter/material.dart';
|
||||
|
||||
class ButtonBack extends StatelessWidget {
|
||||
final EdgeInsets? margin;
|
||||
const ButtonBack({super.key, this.margin});
|
||||
final void Function()? onPress;
|
||||
const ButtonBack({super.key, this.margin, this.onPress});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -18,9 +19,7 @@ class ButtonBack extends StatelessWidget {
|
||||
side: BorderSide(color: ColorPalette.slate200)
|
||||
)
|
||||
),
|
||||
onPressed: () {
|
||||
Navigator.pop(context);
|
||||
},
|
||||
onPressed: onPress ?? () => Navigator.pop(context),
|
||||
icon: const Icon(Icons.arrow_back)
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user