payengine 2.0.5 copy "payengine: ^2.0.5" to clipboard
payengine: ^2.0.5 copied to clipboard

The PayEngine Flutter SDK allows you to build delightful payment experiences in your native Android and iOS apps using Flutter

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:payengine/payengine_provider.dart';
import 'package:payengine_example/config.dart';
import 'package:payengine_example/screens/credit_card_screen.dart';
import 'package:payengine_example/themes.dart';

void main() {
  runApp(
    PayEngineProvider(
      config: Config.config, 
      child: const MyApp()
    )
  );
}

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> with TickerProviderStateMixin {
  Map<dynamic, dynamic> result = {};

  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: MyAppThemes.lightTheme,
      darkTheme: MyAppThemes.darkTheme,
      themeMode: ThemeMode.light,
      home: const CreditCardScreen(),
    );
  }
}
2
likes
0
pub points
42%
popularity

Publisher

unverified uploader

The PayEngine Flutter SDK allows you to build delightful payment experiences in your native Android and iOS apps using Flutter

Homepage

License

unknown (license)

Dependencies

flutter, flutter_web_plugins, http, path_provider, plugin_platform_interface, provider, webview_flutter, webview_flutter_android, webview_flutter_wkwebview

More

Packages that depend on payengine