morni_rsa 0.0.1
morni_rsa: ^0.0.1 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(
"https://2de2-2a01-9700-3c94-9b00-79b8-fff5-43b5-972a.ngrok-free.app", // Replace with actual API base URL
"6|fBj8HD9mtozGOqP9WdNnvznbAZ26I7xkYk1jRK4R46c28cd4", // 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(),
);
}
}