A flutter ui design of the Settings for iOS and Android.
To set your publishable key set:
import 'package:payment/Payment/card.dart';
import 'package:payment/Payment/payment_card_tile.dart';
import 'package:flutter/material.dart';
from somewhere in your code, e.g. your main.dart file.
To open the dialog:
@override
_PaymentCardTileState createState() => _PaymentCardTileState();
Please be aware that your main activity must extend from FlutterFragmentActivity. Otherwise the Android dialog would've looked very nasty.
- better error handling
- internationalization
- more stripe library implementations?