iamport_flutter 0.9.4 iamport_flutter: ^0.9.4 copied to clipboard
Plugin that allows Flutter to use Iamport payment and certification functions.
import 'package:flutter/material.dart';
import './screens/home.dart';
import './screens/payment_test.dart';
import './screens/payment.dart';
import './screens/payment_result.dart';
import './screens/certification_test.dart';
import './screens/certification.dart';
import './screens/certification_result.dart';
void main() => runApp(new MyApp());
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
static const Color primaryColor = Color(0xff344e81);
@override
Widget build(BuildContext context) {
return MaterialApp(
initialRoute: '/',
theme: ThemeData(
primaryColor: primaryColor,
buttonColor: primaryColor,
),
routes: {
'/': (context) => Home(),
'/payment-test': (context) => PaymentTest(),
'/payment': (context) => Payment(),
'/payment-result': (context) => PaymentResult(),
'/certification-test': (context) => CertificationTest(),
'/certification': (context) => Certification(),
'/certification-result': (context) => CertificationResult(),
},
);
}
}