@@ -23,6 +23,7 @@ class CreditCardWidget extends StatefulWidget {
2323 required this .cardHolderName,
2424 required this .cvvCode,
2525 required this .showBackView,
26+ this .bankName,
2627 this .animationDuration = const Duration (milliseconds: 500 ),
2728 this .height,
2829 this .width,
@@ -35,6 +36,7 @@ class CreditCardWidget extends StatefulWidget {
3536 this .cardType,
3637 this .isHolderNameVisible = false ,
3738 this .backgroundImage,
39+ this .backgroundNetworkImage,
3840 this .glassmorphismConfig,
3941 this .isChipVisible = true ,
4042 this .isSwipeGestureEnabled = true ,
@@ -49,6 +51,7 @@ class CreditCardWidget extends StatefulWidget {
4951 final TextStyle ? textStyle;
5052 final Color cardBgColor;
5153 final bool showBackView;
54+ final String ? bankName;
5255 final Duration animationDuration;
5356 final double ? height;
5457 final double ? width;
@@ -57,6 +60,7 @@ class CreditCardWidget extends StatefulWidget {
5760 final void Function (CreditCardBrand ) onCreditCardWidgetChange;
5861 final bool isHolderNameVisible;
5962 final String ? backgroundImage;
63+ final String ? backgroundNetworkImage;
6064 final bool isChipVisible;
6165 final Glassmorphism ? glassmorphismConfig;
6266 final bool isSwipeGestureEnabled;
@@ -251,15 +255,26 @@ class _CreditCardWidgetState extends State<CreditCardWidget>
251255 }
252256 return CardBackground (
253257 backgroundImage: widget.backgroundImage,
258+ backgroundNetworkImage: widget.backgroundNetworkImage,
254259 backgroundGradientColor: backgroundGradientColor,
255260 glassmorphismConfig: widget.glassmorphismConfig,
256261 height: widget.height,
257262 width: widget.width,
258263 child: Column (
259264 crossAxisAlignment: CrossAxisAlignment .start,
260265 children: < Widget > [
266+ if (widget.bankName != null && widget.bankName! .isNotEmpty)
267+ Padding (
268+ padding: const EdgeInsets .only (left: 16 , top: 16 ),
269+ child: Text (
270+ widget.bankName! ,
271+ maxLines: 1 ,
272+ overflow: TextOverflow .ellipsis,
273+ style: defaultTextStyle,
274+ ),
275+ ),
261276 Expanded (
262- flex: widget.isChipVisible ? 2 : 0 ,
277+ flex: widget.isChipVisible ? 1 : 0 ,
263278 child: Row (
264279 crossAxisAlignment: CrossAxisAlignment .end,
265280 children: < Widget > [
@@ -363,6 +378,7 @@ class _CreditCardWidgetState extends State<CreditCardWidget>
363378
364379 return CardBackground (
365380 backgroundImage: widget.backgroundImage,
381+ backgroundNetworkImage: widget.backgroundNetworkImage,
366382 backgroundGradientColor: backgroundGradientColor,
367383 glassmorphismConfig: widget.glassmorphismConfig,
368384 height: widget.height,
0 commit comments