File tree Expand file tree Collapse file tree 5 files changed +16
-7
lines changed Expand file tree Collapse file tree 5 files changed +16
-7
lines changed Original file line number Diff line number Diff line change 1+ # [ 4.0.1] ( https://github.com/SimformSolutionsPvtLtd/flutter_credit_card/tree/4.0.1 )
2+
3+ - Fixed glare effect issue [ #154 ] ( https://github.com/SimformSolutionsPvtLtd/flutter_credit_card/pull/154 ) .
4+
15# [ 4.0.0+1] ( https://github.com/SimformSolutionsPvtLtd/flutter_credit_card/tree/4.0.0+1 )
26
37- Added web support for example app [ #148 ] ( https://github.com/SimformSolutionsPvtLtd/flutter_credit_card/pull/148 ) .
Original file line number Diff line number Diff line change @@ -458,7 +458,7 @@ class _CreditCardWidgetState extends State<CreditCardWidget>
458458 stream: frontCardFloatStream.stream,
459459 onEvent: (FloatingEvent ? event) =>
460460 floatController.transform (event, shouldAvoid: controller.isAnimating),
461- child: _frontCardBackground (
461+ child: () => _frontCardBackground (
462462 defaultTextStyle: defaultTextStyle,
463463 number: number,
464464 ),
@@ -601,7 +601,10 @@ class _CreditCardWidgetState extends State<CreditCardWidget>
601601 stream: backCardFloatStream.stream,
602602 onEvent: (FloatingEvent ? event) =>
603603 floatController.transform (event, shouldAvoid: controller.isAnimating),
604- child: _backCardBackground (defaultTextStyle: defaultTextStyle, cvv: cvv),
604+ child: () => _backCardBackground (
605+ defaultTextStyle: defaultTextStyle,
606+ cvv: cvv,
607+ ),
605608 );
606609 }
607610
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ class FloatAnimationBuilder extends StatelessWidget {
1515 final bool isEnabled;
1616 final Stream <FloatingEvent > stream;
1717 final FloatEventCallback onEvent;
18- final Widget child;
18+ final WidgetCallback child;
1919
2020 @override
2121 Widget build (BuildContext context) {
@@ -29,9 +29,9 @@ class FloatAnimationBuilder extends StatelessWidget {
2929 Transform (
3030 transform: onEvent (snapshot.data),
3131 alignment: FractionalOffset .center,
32- child: child,
32+ child: child () ,
3333 ),
3434 )
35- : child;
35+ : child () ;
3636 }
3737}
Original file line number Diff line number Diff line change 1- import 'package:flutter/rendering .dart' ;
1+ import 'package:flutter/widgets .dart' ;
22
33import '../floating_animation/floating_event.dart' ;
44import '../models/credit_card_brand.dart' ;
@@ -11,3 +11,5 @@ typedef CCBrandChangeCallback = void Function(CreditCardBrand);
1111typedef ValidationCallback = String ? Function (String ? );
1212
1313typedef FloatEventCallback = Matrix4 Function (FloatingEvent ? event);
14+
15+ typedef WidgetCallback = Widget Function ();
Original file line number Diff line number Diff line change 11name : flutter_credit_card
22description : A Credit Card widget package with support of entering card details, and animations like card flip
33 and float.
4- version : 4.0.0+ 1
4+ version : 4.0.1
55homepage : https://github.com/simformsolutions/flutter_credit_card
66issue_tracker : https://github.com/simformsolutions/flutter_credit_card/issues
77
You can’t perform that action at this time.
0 commit comments