Skip to content

Commit

Permalink
add web exports (#1957)
Browse files Browse the repository at this point in the history
* add web exports

* readd missing import

---------

Co-authored-by: cedvandenbosch <[email protected]>
  • Loading branch information
cedvdb and cedvandenbosch authored Nov 9, 2024
1 parent e6fd8df commit 9876884
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 0 additions & 1 deletion packages/stripe_web/lib/flutter_stripe_web.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ export 'src/widgets/card_field.dart' hide WebStripeCardState;
export 'src/widgets/express_checkout_element.dart'
hide ExpressCheckoutElementState;
export 'src/widgets/payment_element.dart' hide PaymentElementState;
export 'src/widgets/payment_element.dart';
9 changes: 8 additions & 1 deletion packages/stripe_web/lib/src/widgets/payment_element.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,14 @@ import 'package:web/web.dart' as web;
import '../../flutter_stripe_web.dart';

export 'package:stripe_js/stripe_api.dart'
show PaymentElementLayout, ElementAppearance, ElementTheme;
show
PaymentElementLayout,
ElementAppearance,
ElementTheme,
ElementAppearanceLabels;

// TODO: should not use src of other package
export 'package:stripe_js/src/api/elements/payment_element_options.dart';

typedef PaymentElementTheme = js.ElementTheme;

Expand Down

0 comments on commit 9876884

Please sign in to comment.