stone_smart_flutter 1.0.9+1 stone_smart_flutter: ^1.0.9+1 copied to clipboard
Plugin Flutter para integrar sua aplicação com o SDK Android da Stone para meios de pagamento.
import 'package:flutter/material.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(
home: DefaultTabController(
length: 2,
child: Scaffold(
appBar: AppBar(
title: const Text('Stone Smart Flutter'),
bottom: const TabBar(tabs: [
Tab(
child: Text("Vender"),
),
Tab(
child: Text("Transações"),
)
]),
),
body: TabBarView(
children: [
const PaymentPage(),
Container(),
],
),
),
),
);
}
}