Intégration fonctionnalites V1
This commit is contained in:
+13
-1
@@ -1,12 +1,16 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:flutter_localizations/flutter_localizations.dart';
|
||||
import 'package:flutter_stripe/flutter_stripe.dart';
|
||||
|
||||
import 'core/config/app_config.dart';
|
||||
import 'core/platform/app_platform.dart';
|
||||
import 'core/time/server_time.dart';
|
||||
import 'core/time/server_time_sync.dart';
|
||||
import 'core/router/app_router.dart';
|
||||
import 'core/theme/app_theme.dart';
|
||||
|
||||
void main() {
|
||||
void main() async {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
|
||||
if (!isMobilePlatformSupported) {
|
||||
@@ -15,6 +19,14 @@ void main() {
|
||||
);
|
||||
}
|
||||
|
||||
await ServerTime.initialize();
|
||||
await syncServerTimezone();
|
||||
|
||||
if (kStripePublishableKey.isNotEmpty) {
|
||||
Stripe.publishableKey = kStripePublishableKey;
|
||||
await Stripe.instance.applySettings();
|
||||
}
|
||||
|
||||
runApp(const ProviderScope(child: LaverieApp()));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user