simpay 0.0.1 copy "simpay: ^0.0.1" to clipboard
simpay: ^0.0.1 copied to clipboard

outdated

pasarela de pagos chilena.

example/lib/main.dart

import 'package:flutter/material.dart';
import './pay.dart';
import './cancel.dart';
import './success.dart';
import './failed.dart';
void main() {
  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({Key? key}) : super(key: key);
  @override
  _MyApp createState() => _MyApp();
}

class _MyApp extends State<MyApp> {
  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        debugShowCheckedModeBanner: false,
        title: 'Simpay',
        initialRoute: '/',
        routes: <String, WidgetBuilder>{
          '/': (BuildContext context) => Pay(),
          '/success': (BuildContext context) => Success(),
          '/failed': (BuildContext context) => Failed(),
          '/cancel': (BuildContext context) => Cancel(),
        },
      );
  }
}