This commit is contained in:
Rishad7594
2026-03-11 20:13:13 +05:30
parent 0e57e7a61c
commit d536d287cd
14 changed files with 2158 additions and 345 deletions

145
analyze_output.txt Normal file
View File

@@ -0,0 +1,145 @@
Analyzing figma_event_app...
warning - The include file 'package:flutter_lints/flutter.yaml' in 'D:\projects\figma_event_app\analysis_options.yaml' can't be found when analyzing 'D:\projects\figma_event_app' - analysis_options.yaml:10:10 - include_file_not_found
warning - Unused import: 'package:intl/intl.dart' - lib\features\events\services\events_service.dart:2:8 - unused_import
warning - Unused import: 'dart:math' - lib\screens\calendar_screen.dart:2:8 - unused_import
warning - The value of the field '_loadingMonth' isn't used - lib\screens\calendar_screen.dart:23:8 - unused_field
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\calendar_screen.dart:252:77 - deprecated_member_use
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\calendar_screen.dart:255:99 - deprecated_member_use
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\calendar_screen.dart:365:65 - deprecated_member_use
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\calendar_screen.dart:417:62 - deprecated_member_use
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\calendar_screen.dart:491:63 - deprecated_member_use
warning - The operand can't be 'null', so the condition is always 'true' - lib\screens\calendar_screen.dart:528:36 - unnecessary_null_comparison
warning - The operand can't be 'null', so the condition is always 'true' - lib\screens\calendar_screen.dart:528:57 - unnecessary_null_comparison
warning - The operand can't be 'null', so the condition is always 'true' - lib\screens\calendar_screen.dart:530:24 - unnecessary_null_comparison
warning - The operand can't be 'null', so the condition is always 'true' - lib\screens\calendar_screen.dart:530:45 - unnecessary_null_comparison
warning - The left operand can't be null, so the right operand is never executed - lib\screens\calendar_screen.dart:530:105 - dead_null_aware_expression
warning - The left operand can't be null, so the right operand is never executed - lib\screens\calendar_screen.dart:548:43 - dead_null_aware_expression
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\calendar_screen.dart:551:111 - deprecated_member_use
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\calendar_screen.dart:557:111 - deprecated_member_use
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\contribute_screen.dart:135:41 - deprecated_member_use
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\contribute_screen.dart:159:79 - deprecated_member_use
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\contribute_screen.dart:175:37 - deprecated_member_use
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\contribute_screen.dart:177:56 - deprecated_member_use
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\contribute_screen.dart:209:47 - deprecated_member_use
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\contribute_screen.dart:241:31 - deprecated_member_use
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\contribute_screen.dart:243:50 - deprecated_member_use
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\contribute_screen.dart:244:53 - deprecated_member_use
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\contribute_screen.dart:259:72 - deprecated_member_use
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\contribute_screen.dart:278:71 - deprecated_member_use
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\contribute_screen.dart:308:51 - deprecated_member_use
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\home_desktop_screen.dart:389:140 - deprecated_member_use
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\home_desktop_screen.dart:400:88 - deprecated_member_use
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\home_desktop_screen.dart:553:111 - deprecated_member_use
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\home_desktop_screen.dart:679:55 - deprecated_member_use
warning - The left operand can't be null, so the right operand is never executed - lib\screens\home_desktop_screen.dart:774:39 - dead_null_aware_expression
warning - The left operand can't be null, so the right operand is never executed - lib\screens\home_desktop_screen.dart:776:33 - dead_null_aware_expression
warning - The operand can't be 'null', so the condition is always 'true' - lib\screens\home_desktop_screen.dart:795:36 - unnecessary_null_comparison
warning - The operand can't be 'null', so the condition is always 'true' - lib\screens\home_desktop_screen.dart:795:57 - unnecessary_null_comparison
warning - The '!' will have no effect because the receiver can't be null - lib\screens\home_desktop_screen.dart:796:22 - unnecessary_non_null_assertion
warning - The operand can't be 'null', so the condition is always 'true' - lib\screens\home_desktop_screen.dart:797:25 - unnecessary_null_comparison
warning - The operand can't be 'null', so the condition is always 'true' - lib\screens\home_desktop_screen.dart:797:46 - unnecessary_null_comparison
warning - The left operand can't be null, so the right operand is never executed - lib\screens\home_desktop_screen.dart:797:107 - dead_null_aware_expression
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\home_desktop_screen.dart:806:43 - deprecated_member_use
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\home_desktop_screen.dart:807:43 - deprecated_member_use
warning - The left operand can't be null, so the right operand is never executed - lib\screens\home_desktop_screen.dart:829:42 - dead_null_aware_expression
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\home_desktop_screen.dart:844:84 - deprecated_member_use
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\home_desktop_screen.dart:865:84 - deprecated_member_use
warning - The operand can't be 'null', so the condition is always 'true' - lib\screens\home_desktop_screen.dart:898:36 - unnecessary_null_comparison
warning - The operand can't be 'null', so the condition is always 'true' - lib\screens\home_desktop_screen.dart:898:57 - unnecessary_null_comparison
warning - The '!' will have no effect because the receiver can't be null - lib\screens\home_desktop_screen.dart:899:22 - unnecessary_non_null_assertion
warning - The operand can't be 'null', so the condition is always 'true' - lib\screens\home_desktop_screen.dart:900:25 - unnecessary_null_comparison
warning - The operand can't be 'null', so the condition is always 'true' - lib\screens\home_desktop_screen.dart:900:46 - unnecessary_null_comparison
warning - The left operand can't be null, so the right operand is never executed - lib\screens\home_desktop_screen.dart:900:107 - dead_null_aware_expression
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\home_desktop_screen.dart:910:43 - deprecated_member_use
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\home_desktop_screen.dart:911:43 - deprecated_member_use
warning - The left operand can't be null, so the right operand is never executed - lib\screens\home_desktop_screen.dart:932:42 - dead_null_aware_expression
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\home_desktop_screen.dart:943:84 - deprecated_member_use
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\home_desktop_screen.dart:955:84 - deprecated_member_use
warning - The declaration '_bookEventAtIndex' isn't referenced - lib\screens\home_screen.dart:119:8 - unused_element
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\home_screen.dart:143:47 - deprecated_member_use
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\home_screen.dart:144:34 - deprecated_member_use
warning - The left operand can't be null, so the right operand is never executed - lib\screens\home_screen.dart:239:55 - dead_null_aware_expression
warning - The left operand can't be null, so the right operand is never executed - lib\screens\home_screen.dart:319:68 - dead_null_aware_expression
warning - The left operand can't be null, so the right operand is never executed - lib\screens\home_screen.dart:320:64 - dead_null_aware_expression
warning - The operand can't be 'null', so the condition is always 'true' - lib\screens\home_screen.dart:330:45 - unnecessary_null_comparison
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\home_screen.dart:389:56 - deprecated_member_use
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\home_screen.dart:462:47 - deprecated_member_use
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\home_screen.dart:521:35 - deprecated_member_use
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\home_screen.dart:541:41 - deprecated_member_use
warning - The value of the local variable 'theme' isn't used - lib\screens\home_screen.dart:556:11 - unused_local_variable
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\home_screen.dart:578:43 - deprecated_member_use
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\home_screen.dart:580:62 - deprecated_member_use
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\home_screen.dart:604:43 - deprecated_member_use
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\home_screen.dart:606:62 - deprecated_member_use
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\home_screen.dart:677:59 - deprecated_member_use
warning - The operand can't be 'null', so the condition is always 'true' - lib\screens\home_screen.dart:712:22 - unnecessary_null_comparison
warning - The left operand can't be null, so the right operand is never executed - lib\screens\home_screen.dart:743:44 - dead_null_aware_expression
warning - The operand can't be 'null', so the condition is always 'true' - lib\screens\home_screen.dart:1015:18 - unnecessary_null_comparison
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\home_screen.dart:1022:58 - deprecated_member_use
warning - The left operand can't be null, so the right operand is never executed - lib\screens\home_screen.dart:1037:43 - dead_null_aware_expression
warning - The operand can't be 'null', so the condition is always 'true' - lib\screens\home_screen.dart:1076:18 - unnecessary_null_comparison
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\home_screen.dart:1126:49 - deprecated_member_use
warning - The left operand can't be null, so the right operand is never executed - lib\screens\home_screen.dart:1162:36 - dead_null_aware_expression
warning - The operand can't be 'null', so the condition is always 'true' - lib\screens\home_screen.dart:1231:18 - unnecessary_null_comparison
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\home_screen.dart:1239:48 - deprecated_member_use
warning - The left operand can't be null, so the right operand is never executed - lib\screens\home_screen.dart:1313:42 - dead_null_aware_expression
warning - The declaration '_getShortEmailLabel' isn't referenced - lib\screens\home_screen.dart:1385:10 - unused_element
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\learn_more_screen.dart:265:43 - deprecated_member_use
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\learn_more_screen.dart:275:43 - deprecated_member_use
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\learn_more_screen.dart:284:43 - deprecated_member_use
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\learn_more_screen.dart:293:43 - deprecated_member_use
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\learn_more_screen.dart:302:43 - deprecated_member_use
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\learn_more_screen.dart:399:42 - deprecated_member_use
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\learn_more_screen.dart:445:35 - deprecated_member_use
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\learn_more_screen.dart:447:54 - deprecated_member_use
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\learn_more_screen.dart:524:59 - deprecated_member_use
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\learn_more_screen.dart:531:59 - deprecated_member_use
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\learn_more_screen.dart:619:51 - deprecated_member_use
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\learn_more_screen.dart:669:47 - deprecated_member_use
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\learn_more_screen.dart:741:46 - deprecated_member_use
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\learn_more_screen.dart:784:31 - deprecated_member_use
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\learn_more_screen.dart:788:35 - deprecated_member_use
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\learn_more_screen.dart:852:50 - deprecated_member_use
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\learn_more_screen.dart:855:52 - deprecated_member_use
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\learn_more_screen.dart:865:56 - deprecated_member_use
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\learn_more_screen.dart:923:48 - deprecated_member_use
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\learn_more_screen.dart:926:50 - deprecated_member_use
warning - The value of the local variable 'headingStyle' isn't used - lib\screens\privacy_policy_screen.dart:86:11 - unused_local_variable
warning - The value of the field '_upcomingEvents' isn't used - lib\screens\profile_screen.dart:30:20 - unused_field
warning - The declaration '_topIcon' isn't referenced - lib\screens\profile_screen.dart:290:10 - unused_element
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\profile_screen.dart:298:58 - deprecated_member_use
warning - The left operand can't be null, so the right operand is never executed - lib\screens\profile_screen.dart:306:42 - dead_null_aware_expression
warning - The operand can't be 'null', so the condition is always 'true' - lib\screens\profile_screen.dart:307:37 - unnecessary_null_comparison
warning - The operand can't be 'null', so the condition is always 'true' - lib\screens\profile_screen.dart:307:59 - unnecessary_null_comparison
warning - The '!' will have no effect because the receiver can't be null - lib\screens\profile_screen.dart:308:23 - unnecessary_non_null_assertion
warning - The operand can't be 'null', so the condition is always 'true' - lib\screens\profile_screen.dart:309:26 - unnecessary_null_comparison
warning - The operand can't be 'null', so the condition is always 'true' - lib\screens\profile_screen.dart:309:48 - unnecessary_null_comparison
warning - The left operand can't be null, so the right operand is never executed - lib\screens\profile_screen.dart:309:112 - dead_null_aware_expression
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\profile_screen.dart:314:108 - deprecated_member_use
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\profile_screen.dart:345:68 - deprecated_member_use
warning - The operand can't be 'null', so the condition is always 'true' - lib\screens\profile_screen.dart:349:21 - unnecessary_null_comparison
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\profile_screen.dart:368:82 - deprecated_member_use
warning - The value of the local variable 'gradient' isn't used - lib\screens\profile_screen.dart:397:11 - unused_local_variable
info - 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss - lib\screens\search_screen.dart:130:52 - deprecated_member_use
flutter : 122 issues
found. (ran in 5.2s)
At line:1 char:1
+ flutter analyze
2>&1 | Out-File
-Encoding utf8 D:\pro
jects\figma_even ...
+
~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo
: NotSpe
cified: (122 iss
ues found. (ran
in 5.2s):String)
[], RemoteExcep
tion
+ FullyQualified
ErrorId : Native
CommandError

View File

@@ -5,15 +5,19 @@
<!-- Storage / media read permissions -->
<!-- Legacy permission for Android <= 12 -->
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<application
android:label="Eventify"
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher">
<!-- Google Maps API Key (replace placeholder with your real key) -->
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="YOUR_GOOGLE_MAPS_API_KEY"/>
<activity
android:name=".MainActivity"
android:exported="true"
@@ -45,5 +49,9 @@
<action android:name="android.intent.action.PROCESS_TEXT" />
<data android:mimeType="text/plain" />
</intent>
<intent>
<action android:name="android.intent.action.VIEW" />
<data android:scheme="https" />
</intent>
</queries>
</manifest>

View File

@@ -0,0 +1 @@
<svg width="80" height="80" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" transform="rotate(0 0 0)"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.59859 3.49501C9.90762 2.65448 10.6463 2 11.616 2C12.5858 2 13.3245 2.65449 13.6335 3.49502C13.8851 3.38177 14.1652 3.31802 14.4678 3.31802C15.7613 3.31802 16.6437 4.48247 16.6437 5.69968V6.13703C16.8528 6.06365 17.0791 6.02338 17.3196 6.02338C18.6131 6.02338 19.4956 7.18783 19.4956 8.40504V14.1096C19.5135 14.8186 19.5172 16.7392 18.6678 18.5107C18.2348 19.4137 17.573 20.2935 16.5699 20.9459C15.565 21.5996 14.2658 21.9935 12.6103 22L12.6074 22C10.7934 22 9.18343 21.1137 8.00738 20.2156C6.81983 19.3087 5.98549 18.3213 5.70771 17.9747C5.64971 17.9023 5.59912 17.8417 5.54755 17.7856L3.20116 15.2304L3.18883 15.2167C2.38497 14.2968 2.38497 12.842 3.18883 11.9221C4.03934 10.9489 5.46177 10.943 6.31921 11.9044L6.58834 12.1788V5.69968C6.58834 4.48247 7.47077 3.31802 8.76424 3.31802C9.06687 3.31802 9.347 3.38177 9.59859 3.49501ZM9.44013 5.69273V11.0417C9.44013 11.4559 9.77592 11.7917 10.1901 11.7917C10.6043 11.7917 10.9401 11.4559 10.9401 11.0417L10.9402 5.69968C10.9402 5.69646 10.9401 5.69323 10.9401 5.69V4.38166C10.9401 3.79659 11.3345 3.5 11.616 3.5C11.8976 3.5 12.2919 3.79659 12.2919 4.38166V11.2299C12.2919 11.6441 12.6277 11.9799 13.0419 11.9799C13.4562 11.9799 13.7919 11.6441 13.7919 11.2299V5.69968C13.7919 5.11461 14.1863 4.81802 14.4678 4.81802C14.7494 4.81802 15.1437 5.11461 15.1437 5.69968V11.2299C15.1437 11.6441 15.4795 11.9799 15.8937 11.9799C16.308 11.9799 16.6437 11.6441 16.6437 11.2299V8.40504C16.6437 7.81997 17.0381 7.52338 17.3196 7.52338C17.6012 7.52338 17.9956 7.81997 17.9956 8.40504L17.9956 14.1192L17.9958 14.1386C18.013 14.7999 18.0053 16.4231 17.3152 17.8622C16.9765 18.5686 16.4808 19.2145 15.7521 19.6885C15.0254 20.1612 14.0188 20.4942 12.6059 20.5C11.2702 20.4995 9.98186 19.8361 8.91777 19.0235C7.86479 18.2194 7.11701 17.3346 6.87825 17.0367C6.81079 16.9525 6.73649 16.8626 6.65237 16.771L4.31323 14.2238C4.00849 13.8684 4.01018 13.2618 4.31832 12.9092C4.57632 12.6139 4.94736 12.6139 5.20537 12.9092C5.21482 12.92 5.22459 12.9305 5.23465 12.9408L6.80288 14.5398C7.01621 14.7573 7.33994 14.8242 7.62198 14.7089C7.90403 14.5937 8.08834 14.3193 8.08834 14.0146V5.69968C8.08834 5.11461 8.48271 4.81802 8.76424 4.81802C9.04466 4.81802 9.43702 5.11226 9.44013 5.69273Z" fill="#343C54"/></svg>

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

@@ -1,5 +1,6 @@
import Flutter
import UIKit
import GoogleMaps
@main
@objc class AppDelegate: FlutterAppDelegate {
@@ -7,6 +8,7 @@ import UIKit
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
GMSServices.provideAPIKey("YOUR_GOOGLE_MAPS_API_KEY")
GeneratedPluginRegistrant.register(with: self)
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
}

View File

@@ -51,6 +51,14 @@ class EventModel {
final String? eventStatus;
final String? cancelledReason;
// Geo / location fields
final double? latitude;
final double? longitude;
final String? locationName;
// Structured important info list [{title, value}, ...]
final List<Map<String, String>> importantInfo;
EventModel({
required this.id,
required this.name,
@@ -70,8 +78,36 @@ class EventModel {
this.venueName,
this.eventStatus,
this.cancelledReason,
this.latitude,
this.longitude,
this.locationName,
this.importantInfo = const [],
});
/// Safely parse a double from backend (may arrive as String or num)
static double? _parseDouble(dynamic raw) {
if (raw == null) return null;
if (raw is num) return raw.toDouble();
if (raw is String) return double.tryParse(raw);
return null;
}
/// Safely parse important_info from backend (list of {title, value} maps)
static List<Map<String, String>> _parseImportantInfo(dynamic raw) {
if (raw is List) {
return raw.map<Map<String, String>>((e) {
if (e is Map) {
return {
'title': (e['title'] ?? '').toString(),
'value': (e['value'] ?? '').toString(),
};
}
return {'title': '', 'value': e.toString()};
}).toList();
}
return [];
}
factory EventModel.fromJson(Map<String, dynamic> j) {
final imgs = <EventImageModel>[];
if (j['images'] is List) {
@@ -99,6 +135,10 @@ class EventModel {
venueName: j['venue_name'] as String?,
eventStatus: j['event_status'] as String?,
cancelledReason: j['cancelled_reason'] as String?,
latitude: _parseDouble(j['latitude']),
longitude: _parseDouble(j['longitude']),
locationName: j['location_name'] as String?,
importantInfo: _parseImportantInfo(j['important_info']),
);
}
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -7,9 +7,13 @@
#include "generated_plugin_registrant.h"
#include <file_selector_linux/file_selector_plugin.h>
#include <url_launcher_linux/url_launcher_plugin.h>
void fl_register_plugins(FlPluginRegistry* registry) {
g_autoptr(FlPluginRegistrar) file_selector_linux_registrar =
fl_plugin_registry_get_registrar_for_plugin(registry, "FileSelectorPlugin");
file_selector_plugin_register_with_registrar(file_selector_linux_registrar);
g_autoptr(FlPluginRegistrar) url_launcher_linux_registrar =
fl_plugin_registry_get_registrar_for_plugin(registry, "UrlLauncherPlugin");
url_launcher_plugin_register_with_registrar(url_launcher_linux_registrar);
}

View File

@@ -4,6 +4,7 @@
list(APPEND FLUTTER_PLUGIN_LIST
file_selector_linux
url_launcher_linux
)
list(APPEND FLUTTER_FFI_PLUGIN_LIST

View File

@@ -7,10 +7,16 @@ import Foundation
import file_selector_macos
import geolocator_apple
import path_provider_foundation
import share_plus
import shared_preferences_foundation
import url_launcher_macos
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
FileSelectorPlugin.register(with: registry.registrar(forPlugin: "FileSelectorPlugin"))
GeolocatorPlugin.register(with: registry.registrar(forPlugin: "GeolocatorPlugin"))
PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
SharePlusMacosPlugin.register(with: registry.registrar(forPlugin: "SharePlusMacosPlugin"))
SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin"))
UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin"))
}

View File

@@ -206,6 +206,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.0.30"
flutter_svg:
dependency: "direct main"
description:
name: flutter_svg
sha256: "87fbd7c534435b6c5d9d98b01e1fd527812b82e68ddd8bd35fc45ed0fa8f0a95"
url: "https://pub.dev"
source: hosted
version: "2.2.3"
flutter_test:
dependency: "direct dev"
description: flutter
@@ -296,6 +304,54 @@ packages:
url: "https://pub.dev"
source: hosted
version: "0.1.3"
google_maps:
dependency: transitive
description:
name: google_maps
sha256: "5d410c32112d7c6eb7858d359275b2aa04778eed3e36c745aeae905fb2fa6468"
url: "https://pub.dev"
source: hosted
version: "8.2.0"
google_maps_flutter:
dependency: "direct main"
description:
name: google_maps_flutter
sha256: "9b0d6dab3de6955837575dc371dd772fcb5d0a90f6a4954e8c066472f9938550"
url: "https://pub.dev"
source: hosted
version: "2.14.2"
google_maps_flutter_android:
dependency: transitive
description:
name: google_maps_flutter_android
sha256: "98d7f5354f770f3e993db09fc798d40aeb6a254f04c1c468a94818ec2086e83e"
url: "https://pub.dev"
source: hosted
version: "2.18.12"
google_maps_flutter_ios:
dependency: transitive
description:
name: google_maps_flutter_ios
sha256: "38f0a9ee858b0de3a5105e7efe200f154eea8397eb0c36bea6b3810429fbc0e4"
url: "https://pub.dev"
source: hosted
version: "2.17.3"
google_maps_flutter_platform_interface:
dependency: transitive
description:
name: google_maps_flutter_platform_interface
sha256: e8b1232419fcdd35c1fdafff96843f5a40238480365599d8ca661dde96d283dd
url: "https://pub.dev"
source: hosted
version: "2.14.1"
google_maps_flutter_web:
dependency: transitive
description:
name: google_maps_flutter_web
sha256: d416602944e1859f3cbbaa53e34785c223fa0a11eddb34a913c964c5cbb5d8cf
url: "https://pub.dev"
source: hosted
version: "0.5.14+3"
html:
dependency: transitive
description:
@@ -472,6 +528,38 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.9.1"
path_parsing:
dependency: transitive
description:
name: path_parsing
sha256: "883402936929eac138ee0a45da5b0f2c80f89913e6dc3bf77eb65b84b409c6ca"
url: "https://pub.dev"
source: hosted
version: "1.1.0"
path_provider:
dependency: transitive
description:
name: path_provider
sha256: "50c5dd5b6e1aaf6fb3a78b33f6aa3afca52bf903a8a5298f53101fdaee55bbcd"
url: "https://pub.dev"
source: hosted
version: "2.1.5"
path_provider_android:
dependency: transitive
description:
name: path_provider_android
sha256: f2c65e21139ce2c3dad46922be8272bb5963516045659e71bb16e151c93b580e
url: "https://pub.dev"
source: hosted
version: "2.2.22"
path_provider_foundation:
dependency: transitive
description:
name: path_provider_foundation
sha256: "6d13aece7b3f5c5a9731eaf553ff9dcbc2eff41087fd2df587fd0fed9a3eb0c4"
url: "https://pub.dev"
source: hosted
version: "2.5.1"
path_provider_linux:
dependency: transitive
description:
@@ -528,6 +616,30 @@ packages:
url: "https://pub.dev"
source: hosted
version: "6.0.3"
sanitize_html:
dependency: transitive
description:
name: sanitize_html
sha256: "12669c4a913688a26555323fb9cec373d8f9fbe091f2d01c40c723b33caa8989"
url: "https://pub.dev"
source: hosted
version: "2.1.0"
share_plus:
dependency: "direct main"
description:
name: share_plus
sha256: "3ef39599b00059db0990ca2e30fca0a29d8b37aae924d60063f8e0184cf20900"
url: "https://pub.dev"
source: hosted
version: "7.2.2"
share_plus_platform_interface:
dependency: transitive
description:
name: share_plus_platform_interface
sha256: "251eb156a8b5fa9ce033747d73535bf53911071f8d3b6f4f0b578505ce0d4496"
url: "https://pub.dev"
source: hosted
version: "3.4.0"
shared_preferences:
dependency: "direct main"
description:
@@ -621,6 +733,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.1.4"
stream_transform:
dependency: transitive
description:
name: stream_transform
sha256: ad47125e588cfd37a9a7f86c7d6356dde8dfe89d071d293f80ca9e9273a33871
url: "https://pub.dev"
source: hosted
version: "2.1.1"
string_scanner:
dependency: transitive
description:
@@ -669,6 +789,70 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.3.1"
url_launcher:
dependency: "direct main"
description:
name: url_launcher
sha256: f6a7e5c4835bb4e3026a04793a4199ca2d14c739ec378fdfe23fc8075d0439f8
url: "https://pub.dev"
source: hosted
version: "6.3.2"
url_launcher_android:
dependency: transitive
description:
name: url_launcher_android
sha256: "767344bf3063897b5cf0db830e94f904528e6dd50a6dfaf839f0abf509009611"
url: "https://pub.dev"
source: hosted
version: "6.3.28"
url_launcher_ios:
dependency: transitive
description:
name: url_launcher_ios
sha256: cfde38aa257dae62ffe79c87fab20165dfdf6988c1d31b58ebf59b9106062aad
url: "https://pub.dev"
source: hosted
version: "6.3.6"
url_launcher_linux:
dependency: transitive
description:
name: url_launcher_linux
sha256: d5e14138b3bc193a0f63c10a53c94b91d399df0512b1f29b94a043db7482384a
url: "https://pub.dev"
source: hosted
version: "3.2.2"
url_launcher_macos:
dependency: transitive
description:
name: url_launcher_macos
sha256: "368adf46f71ad3c21b8f06614adb38346f193f3a59ba8fe9a2fd74133070ba18"
url: "https://pub.dev"
source: hosted
version: "3.2.5"
url_launcher_platform_interface:
dependency: transitive
description:
name: url_launcher_platform_interface
sha256: "552f8a1e663569be95a8190206a38187b531910283c3e982193e4f2733f01029"
url: "https://pub.dev"
source: hosted
version: "2.3.2"
url_launcher_web:
dependency: transitive
description:
name: url_launcher_web
sha256: "4bd2b7b4dc4d4d0b94e5babfffbca8eac1a126c7f3d6ecbc1a11013faa3abba2"
url: "https://pub.dev"
source: hosted
version: "2.4.1"
url_launcher_windows:
dependency: transitive
description:
name: url_launcher_windows
sha256: "712c70ab1b99744ff066053cbe3e80c73332b38d46e5e945c98689b2e66fc15f"
url: "https://pub.dev"
source: hosted
version: "3.1.5"
uuid:
dependency: transitive
description:
@@ -677,6 +861,30 @@ packages:
url: "https://pub.dev"
source: hosted
version: "4.5.2"
vector_graphics:
dependency: transitive
description:
name: vector_graphics
sha256: a4f059dc26fc8295b5921376600a194c4ec7d55e72f2fe4c7d2831e103d461e6
url: "https://pub.dev"
source: hosted
version: "1.1.19"
vector_graphics_codec:
dependency: transitive
description:
name: vector_graphics_codec
sha256: "99fd9fbd34d9f9a32efd7b6a6aae14125d8237b10403b422a6a6dfeac2806146"
url: "https://pub.dev"
source: hosted
version: "1.1.13"
vector_graphics_compiler:
dependency: transitive
description:
name: vector_graphics_compiler
sha256: "201e876b5d52753626af64b6359cd13ac6011b80728731428fd34bc840f71c9b"
url: "https://pub.dev"
source: hosted
version: "1.1.20"
vector_math:
dependency: transitive
description:
@@ -701,6 +909,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.1.1"
win32:
dependency: transitive
description:
name: win32
sha256: d7cb55e04cd34096cd3a79b3330245f54cb96a370a1c27adb3c84b917de8b08e
url: "https://pub.dev"
source: hosted
version: "5.15.0"
xdg_directories:
dependency: transitive
description:

View File

@@ -15,6 +15,10 @@ dependencies:
table_calendar: ^3.2.0
geolocator: ^9.0.2
geocoding: ^2.0.5
flutter_svg: ^2.0.9
google_maps_flutter: ^2.5.0
url_launcher: ^6.2.1
share_plus: ^7.2.1
dev_dependencies:
flutter_test:
@@ -26,6 +30,7 @@ flutter:
uses-material-design: true
assets:
- assets/images/
- assets/icon/hand_stop.svg

View File

@@ -8,10 +8,16 @@
#include <file_selector_windows/file_selector_windows.h>
#include <geolocator_windows/geolocator_windows.h>
#include <share_plus/share_plus_windows_plugin_c_api.h>
#include <url_launcher_windows/url_launcher_windows.h>
void RegisterPlugins(flutter::PluginRegistry* registry) {
FileSelectorWindowsRegisterWithRegistrar(
registry->GetRegistrarForPlugin("FileSelectorWindows"));
GeolocatorWindowsRegisterWithRegistrar(
registry->GetRegistrarForPlugin("GeolocatorWindows"));
SharePlusWindowsPluginCApiRegisterWithRegistrar(
registry->GetRegistrarForPlugin("SharePlusWindowsPluginCApi"));
UrlLauncherWindowsRegisterWithRegistrar(
registry->GetRegistrarForPlugin("UrlLauncherWindows"));
}

View File

@@ -5,6 +5,8 @@
list(APPEND FLUTTER_PLUGIN_LIST
file_selector_windows
geolocator_windows
share_plus
url_launcher_windows
)
list(APPEND FLUTTER_FFI_PLUGIN_LIST