From a5596b0934cf3f05bf7bd21428dc8f8d3a195a04 Mon Sep 17 00:00:00 2001 From: Crondung <1922635@stud.hs-mannheim.de> Date: Sun, 5 Mar 2023 20:42:39 +0100 Subject: [PATCH] add intl package --- lib/main.dart | 2 ++ pubspec.yaml | 1 + 2 files changed, 3 insertions(+) diff --git a/lib/main.dart b/lib/main.dart index 4a49cd4..33f19bc 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -1,4 +1,5 @@ import 'package:flutter/material.dart'; +import 'package:intl/date_symbol_data_local.dart'; import 'package:provider/provider.dart'; import 'package:smoke_cess_app/pages/main_page.dart'; import 'package:smoke_cess_app/providers/tasks_provider.dart'; @@ -14,6 +15,7 @@ void main() { //init database globals.databaseService; tz.initializeTimeZones(); + initializeDateFormatting('de'); NotificationService().initNotification(); runApp(const MyApp()); } diff --git a/pubspec.yaml b/pubspec.yaml index 690527f..ac1fafe 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -24,6 +24,7 @@ dependencies: http: ^0.13.5 syncfusion_flutter_charts: ^20.4.52 cupertino_icons: ^1.0.2 + intl: ^0.18.0 dev_dependencies: flutter_test: