@@ -38,9 +38,9 @@ class _GooglePayButtonState extends State<GooglePayButton> {
3838 void initState () {
3939 // ignore: deprecated_member_use_from_same_package
4040 _creationParams['buttonType' ] = widget.type.name;
41- _creationParams['type' ] = widget.buttonType.id;
42- _creationParams['appearance' ] = widget.appearance.id;
43- _creationParams['borderRadius' ] = widget.borderRadius;
41+ _creationParams['type' ] = widget.buttonType.id. toDouble () ;
42+ _creationParams['appearance' ] = widget.appearance.id. toDouble () ;
43+ _creationParams['borderRadius' ] = widget.borderRadius? . toDouble () ;
4444 super .initState ();
4545 }
4646
@@ -67,12 +67,12 @@ class _GooglePayButtonState extends State<GooglePayButton> {
6767 onCreatePlatformView: (params) {
6868 onPlatformViewCreated (params.id);
6969 return PlatformViewsService .initExpensiveAndroidView (
70- id: params.id,
71- viewType: GooglePayButton ._viewType,
72- layoutDirection: TextDirection .ltr,
73- creationParams: _creationParams,
74- creationParamsCodec: const StandardMessageCodec (),
75- )
70+ id: params.id,
71+ viewType: GooglePayButton ._viewType,
72+ layoutDirection: TextDirection .ltr,
73+ creationParams: _creationParams,
74+ creationParamsCodec: const StandardMessageCodec (),
75+ )
7676 ..addOnPlatformViewCreatedListener (params.onPlatformViewCreated)
7777 ..create ();
7878 },
0 commit comments