You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Performing hot restart...
Syncing files to device iPhone SE (3rd generation)...
Restarted application in 704ms.
[ERROR:flutter/runtime/dart_vm_initializer.cc(40)] UnhandledException:Unable to load asset:"packages/timezone/data/latest_all.tzf".
The asset does not exist or has empty data.
#0PlatformAssetBundle.load.<anonymous closure> (package:flutter/src/services/asset_bundle.dart:333:13)
<asynchronous suspension>
#1_SfCalendarState._loadDataBase (package:syncfusion_flutter_calendar/src/calendar/sfcalendar.dart:4228:31)
<asynchronous suspension>
#2_SfCalendarState.initState.<anonymous closure> (package:syncfusion_flutter_calendar/src/calendar/sfcalendar.dart:2880:26)
<asynchronous suspension>
On which target platforms have you observed this bug?
iOS
Flutter Doctor output
Doctor output
emilioboves@Emilios-Mac-Studio data % flutter doctorDoctor summary (to see all details, run flutter doctor -v):[✓] Flutter (Channel stable, 3.29.2, on macOS 15.3 24D60 darwin-arm64, locale en-CA)[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.1)[✓] Xcode - develop for iOS and macOS (Xcode 16.2)[✓] Chrome - develop for the web[✓] Android Studio (version 2024.2)[✓] VS Code (version 1.98.2)[✓] Connected device (4 available) ! Error: Browsing on the local area network for Emilio’s iphone . Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac. The device must be opted into Developer Mode to connect wirelessly. (code -27) ! Error: Browsing on the local area network for Emilio’s iphone . Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac. The device must be opted into Developer Mode to connect wirelessly. (code -27)[✓] Network resources• No issues found!emilioboves@Emilios-Mac-Studio data %
The text was updated successfully, but these errors were encountered:
We have checked the shared code snippet with SfCalendar using version 29.1.41. However, we were unable to reproduce the issue on our end. Please check the attached sample, and if you are still experiencing the issue, we request that you replicate it in the attached sample and provide us with more details regarding the specific scenario in which you are encountering this issue. This will help us to assist you more effectively.
Bug description
I copied the exact same code from the example
but I get this error
[ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: Unable to load asset: "packages/timezone/data/latest_all.tzf". The asset does not exist or has empty data. #0 PlatformAssetBundle.load.<anonymous closure> (package:flutter/src/services/asset_bundle.dart:333:13) <asynchronous suspension> #1 _SfCalendarState._loadDataBase (package:syncfusion_flutter_calendar/src/calendar/sfcalendar.dart:4228:31) <asynchronous suspension> #2 _SfCalendarState.initState.<anonymous closure> (package:syncfusion_flutter_calendar/src/calendar/sfcalendar.dart:2880:26) <asynchronous suspension>
so I added this to the main
https://github.com/syncfusion/flutter-widgets/blob/master/packages/syncfusion_flutter_calendar/example/lib/main.dart
Steps to reproduce
import 'package:flutter/material.dart';
import 'package:flutter_dotenv/flutter_dotenv.dart';
import 'package:hive_flutter/hive_flutter.dart';
import 'package:shadcn_flutter/shadcn_flutter.dart';
import 'package:timezone/data/latest_all.dart' as tz;
import 'package:timezone/timezone.dart' as tz;
import 'app.dart';
import 'core/injection_container.dart';
import 'features/weather/domain/entities/weather_model.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
// Load environment variables
await dotenv.load(fileName: "api_keys.env");
// Initialize Hive
await Hive.initFlutter();
Hive.registerAdapter(WeatherModelAdapter());
await Hive.openBox('weatherBox');
// Initialize dependencies
await initializeDependencies();
// Initialize timezone data
tz.initializeTimeZones();
tz.setLocalLocation(tz.getLocation('America/Detroit'));
runApp(const MyApp());
}
Code sample
Code sample
pubspec.yaml
[Add your code here]
[Add your code here]
[Add your code here]
Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
Stack Traces
Stack Traces
On which target platforms have you observed this bug?
iOS
Flutter Doctor output
Doctor output
The text was updated successfully, but these errors were encountered: