flutter_powerauth_mobile_sdk_plugin 1.0.0-beta.4
flutter_powerauth_mobile_sdk_plugin: ^1.0.0-beta.4 copied to clipboard
Flutter Mobile SDK for PowerAuth Protocol (iOS, Android).
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:flutter_dotenv/flutter_dotenv.dart';
import 'src/test_screen.dart';
Future<void> main() async {
WidgetsFlutterBinding.ensureInitialized();
// Load in .env file
try {
await dotenv.load(fileName: ".env");
} catch (e) {
print("Error loading .env file: $e");
}
runApp(const PowerAuthTestingApp());
}
class PowerAuthTestingApp extends StatelessWidget {
const PowerAuthTestingApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'PowerAuth Testing App',
theme: ThemeData(
primarySwatch: Colors.blue,
elevatedButtonTheme: ElevatedButtonThemeData(
style: ElevatedButton.styleFrom(
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 12),
textStyle: const TextStyle(fontSize: 16),
),
),
textButtonTheme: TextButtonThemeData(
style: TextButton.styleFrom(
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 12),
textStyle: const TextStyle(fontSize: 16),
),
),
),
home: const PowerAuthTestingScreen(),
);
}
}