From c19dd2f7eb62aed7b08e1d3dfb73733f5dd85a1f Mon Sep 17 00:00:00 2001 From: checkedear <271323618+checkedear@users.noreply.github.com> Date: Sat, 25 Apr 2026 16:58:33 +0200 Subject: [PATCH] feat: add borderColor to firka card --- firka_common/lib/ui/components/firka_card.dart | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/firka_common/lib/ui/components/firka_card.dart b/firka_common/lib/ui/components/firka_card.dart index a8af0af..57e0166 100644 --- a/firka_common/lib/ui/components/firka_card.dart +++ b/firka_common/lib/ui/components/firka_card.dart @@ -6,8 +6,9 @@ import 'package:firka_common/ui/theme/style.dart'; enum Attach { none, bottom, top } class FirkaCard extends StatelessWidget { - final EdgeInsetsGeometry padding; - final EdgeInsetsGeometry margin; + final EdgeInsets padding; + final EdgeInsets margin; + final Color? borderColor; final double? height; final double? width; final bool shadow; @@ -18,8 +19,8 @@ class FirkaCard extends StatelessWidget { factory FirkaCard({ required List left, - EdgeInsetsGeometry padding = const EdgeInsets.all(12), - EdgeInsetsGeometry margin = const EdgeInsets.all(4), + EdgeInsets padding = const EdgeInsets.all(12), + EdgeInsets margin = const EdgeInsets.all(4), bool shadow = true, List center = const [], List right = const [], @@ -61,6 +62,7 @@ class FirkaCard extends StatelessWidget { this.margin = const EdgeInsets.all(4), this.shadow = true, this.attached = Attach.none, + this.borderColor, this.color, this.height, this.width, @@ -91,6 +93,9 @@ class FirkaCard extends StatelessWidget { ] : [], shape: RoundedRectangleBorder( + side: borderColor == null + ? BorderSide.none + : BorderSide(color: borderColor!), borderRadius: BorderRadius.vertical( top: Radius.circular( attached == Attach.top ? attachedRounding : defaultRounding,