Refactoring stable
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
class Urls {
|
||||
static const String baseUrl = 'http://192.168.0.145:8085';
|
||||
static const String baseUrl = 'http://192.168.1.145:8085';
|
||||
// static const String login = baseUrl + 'auth/login';
|
||||
static const String eventsUrl = '$baseUrl/events';
|
||||
// Ajoute d'autres URLs ici
|
||||
|
||||
7
lib/core/utils/date_formatter.dart
Normal file
7
lib/core/utils/date_formatter.dart
Normal file
@@ -0,0 +1,7 @@
|
||||
import 'package:intl/intl.dart';
|
||||
|
||||
class DateFormatter {
|
||||
static String formatDate(DateTime date) {
|
||||
return DateFormat('EEEE dd MMMM yyyy', 'fr_FR').format(date);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user