pagseguro_smart_flutter 1.1.9 copy "pagseguro_smart_flutter: ^1.1.9" to clipboard
pagseguro_smart_flutter: ^1.1.9 copied to clipboard

Integre o Flutter com maquinas smarts da Pagseguro, utilizando o SDK do Pagseguro. Rápido e fácil.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'package:bot_toast/bot_toast.dart';

import 'payment/payment_page.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      navigatorObservers: [BotToastNavigatorObserver()],
      builder: BotToastInit(), //1. call BotToastInit

      home: DefaultTabController(
        length: 2,
        child: Scaffold(
          appBar: AppBar(
            title: const Text('Pagseguro Smart Flutter'),
            bottom: const TabBar(tabs: [
              Tab(
                child: Text("Vender"),
              ),
              Tab(
                child: Text("Transações"),
              )
            ]),
          ),
          body: TabBarView(
            children: [
              const PaymentPage(),
              Container(),
            ],
          ),
        ),
      ),
    );
  }
}
21
likes
0
pub points
77%
popularity

Publisher

verified publishergabul.dev

Integre o Flutter com maquinas smarts da Pagseguro, utilizando o SDK do Pagseguro. Rápido e fácil.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on pagseguro_smart_flutter