morni_rsa 0.0.2
morni_rsa: ^0.0.2 copied to clipboard
Mroni RSA sdk
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:morni_rsa/model/language.dart';
import 'package:morni_rsa/service/initialization.dart';
import 'home_screen.dart';
void main() {
// Initialize the service with example values
// Replace these with actual values in production
MorniService.init(
"", // Replace with actual API base URL
"", // Replace with actual token
Language.en,
);
runApp(const RsaApp());
}
class RsaApp extends StatelessWidget {
const RsaApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'RSA Services',
theme: ThemeData(
primarySwatch: Colors.blue,
useMaterial3: true,
),
home: const HomeScreen(),
);
}
}