edfapay_softpos_sdk 1.0.5
edfapay_softpos_sdk: ^1.0.5 copied to clipboard
Helps developers to easly integrate EdfaPay SoftPos to flutter mobile application with few simple steps.
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:hexcolor/hexcolor.dart';
import 'state/app_state.dart';
import 'screens/home_screen.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatefulWidget {
const MyApp({super.key});
@override
State<MyApp> createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
final AppState _appState = AppState();
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'EdfaPay SDK Demo',
debugShowCheckedModeBanner: false,
theme: ThemeData(
primaryColor: HexColor('06E59F'),
colorScheme: ColorScheme.fromSeed(
seedColor: HexColor('06E59F'),
primary: HexColor('06E59F'),
),
appBarTheme: AppBarTheme(
backgroundColor: Colors.white,
foregroundColor: Colors.black87,
elevation: 1,
titleTextStyle: TextStyle(
color: HexColor('06E59F'),
fontSize: 20,
fontWeight: FontWeight.bold,
),
),
useMaterial3: true,
),
home: HomeScreen(appState: _appState),
);
}
@override
void dispose() {
_appState.dispose();
super.dispose();
}
}