elgin_smart_flutter 1.0.1 elgin_smart_flutter: ^1.0.1 copied to clipboard
Plugin Flutter para integrar sua aplicação com o SDK Android da Elgin 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('Elgin Smart Flutter'),
bottom: const TabBar(tabs: [
Tab(
child: Text("Vender"),
),
Tab(
child: Text("Transações"),
)
]),
),
body: TabBarView(
children: [
const PaymentPage(),
Container(),
],
),
),
),
);
}
}