Skip to content

Commit 10345a8

Browse files
committed
deps,feat,fix: Add BLoC dependencies and its related packages; add testing; restructuring structure folder in auth; etc.
1 parent 635451f commit 10345a8

69 files changed

Lines changed: 1597 additions & 2076 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/// Provides a centralized location for defining API endpoints, making
2+
/// it easier to manage and reference them throughout the app.
3+
///
4+
/// Example usage:
5+
/// ```dart
6+
/// import 'package:monet/core/constants/api_endpoints.dart';
7+
///
8+
/// final response = await dio.get(ApiEndpoints.disasterAlerts);
9+
/// ```
10+
class ApiEndpoints {
11+
static const String baseUrlPrefix = '/api/v1';
12+
13+
// Authentication Endpoints
14+
static const String forgotPassword = '$baseUrlPrefix/auth/forgot-password';
15+
static const String login = '$baseUrlPrefix/auth/login';
16+
static const String logout = '$baseUrlPrefix/auth/logout';
17+
static const String otp = '$baseUrlPrefix/auth/otp';
18+
static const String register = '$baseUrlPrefix/auth/register';
19+
static const String resetPassword = '$baseUrlPrefix/auth/reset-password';
20+
21+
// Common Endpoints
22+
static const String profile = '$baseUrlPrefix/user/profile';
23+
}

lib/core/constants/palette.dart

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import 'package:flutter/material.dart';
2+
3+
class Palette {
4+
Palette._();
5+
6+
static const Color accentText = Color(0xFF0C447C);
7+
static const Color border = Color(0xFFE2E0D7);
8+
static const Color borderStrong = Color(0xFFC9C7BC);
9+
static const Color card = Color(0xFFFFFFFF);
10+
static const Color controlFill = Color(0xFFE6E4DA);
11+
static const Color dangerFill = Color(0xFFE24B4A);
12+
static const Color fillSuccess = Color(0xFF639922);
13+
static const Color onDanger = Color(0xFFFFFFFF);
14+
static const Color page = Color(0xFFEEECE4);
15+
static const Color successBg = Color(0xFFEAF3DE);
16+
static const Color successText = Color(0xFF2E5309);
17+
static const Color surface = Color(0xFFF5F4EF);
18+
static const Color textMuted = Color(0xFF8A897F);
19+
static const Color textPrimary = Color(0xFF232320);
20+
static const Color textSecondary = Color(0xFF5F5E5A);
21+
}

lib/core/network/api_client.dart

Lines changed: 0 additions & 1 deletion
This file was deleted.

lib/core/network/error_handlers.dart

Whitespace-only changes.

lib/core/network/ssl_pinning_config.dart

Lines changed: 0 additions & 1 deletion
This file was deleted.

lib/core/services/region.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import 'package:dio/dio.dart';
2-
import 'package:monet/utils/log.dart';
2+
import 'package:monet/core/utils/log.dart';
33

44
class Region {
55
final Dio _dio = Dio(BaseOptions(
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import 'package:logger/logger.dart';
66
///
77
/// Example usage:
88
/// ```dart
9-
/// import 'package:monet/core/utils/logger.dart';
9+
/// import 'package:monet/utils/logger.dart';
1010
///
1111
/// Log.info('This is an informational message.');
1212
/// ```

0 commit comments

Comments
 (0)