feat: risk profile view

This commit is contained in:
2024-02-10 16:29:00 +07:00
parent 7a1cddee03
commit 6977c8166d
21 changed files with 615 additions and 5 deletions

View File

@@ -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)
),
);