mirror of
https://github.com/nostrlabs-io/zap-stream-flutter.git
synced 2025-06-14 11:27:43 +00:00
24 lines
710 B
Dart
24 lines
710 B
Dart
import 'dart:developer' as developer;
|
|
|
|
import 'package:flutter/foundation.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter_dotenv/flutter_dotenv.dart';
|
|
import 'package:zap_stream_flutter/app.dart';
|
|
import 'package:zap_stream_flutter/const.dart';
|
|
import 'package:zap_stream_flutter/i18n/strings.g.dart';
|
|
import 'package:zap_stream_flutter/notifications.dart';
|
|
|
|
Future<void> main() async {
|
|
WidgetsFlutterBinding.ensureInitialized();
|
|
LocaleSettings.useDeviceLocale();
|
|
await dotenv.load(fileName: kDebugMode ? ".env.development" : ".env");
|
|
|
|
await initLogin();
|
|
|
|
setupNotifications().catchError((e) {
|
|
developer.log("Failed to setup notifications: $e");
|
|
});
|
|
|
|
runZapStream();
|
|
}
|