Questions tagged [flutter-exception]

27 questions
0
votes
0 answers

Flutter web firebase hosting error to load main.dart.js

How to solve the flutter web firebase hosting error to load main.dart.js, please give me the solution. I created the first time to complete the work second-time updated the project to show errors like image and not run. any solution to give me This…
0
votes
1 answer

The following _TypeError was thrown building HomePage(dirty, dependencies: [MediaQuery]): type 'int' is not a subtype of type 'double'

import 'package:first/app_styles.dart'; import 'package:first/custom_tab_indicator.dart'; import 'package:first/size_config.dart'; import 'package:flutter/material.dart'; void main(){ runApp(MyApp()); } class MyApp extends StatelessWidget { …
0
votes
1 answer

listview builder moves out of the container bounds when i add content in my list

Container( height: MediaQuery.of(context).size.height * 0.35, width: MediaQuery.of(context).size.height * 0.45, decoration: const BoxDecoration( gradient: LinearGradient( …
0
votes
0 answers

Flutter - error(s) running package flutter_background_service: ^2.4.6

I wanted to write a code that runs in the background and so I copied the code ( including packages ) from the dev for Flutter_Background_Servie into my project. When trying to run the code I get the following two error messages: What went…
0
votes
1 answer

Need help to sloved "Error: A value of type 'Widget' can't be assigned to a variable of type 'InheritedWidget'" flutter

I need help to fix this issue. ---Error--- /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/syncfusion_flutter_gauges-19.4.56/lib/src/linear_gauge/gauge/linear_gauge_scope.dart:40:10: Error: A value of type 'Widget' can't be assigned to a variable…
0
votes
0 answers

Connection closed error and error handling in Flutter

I get an unhandled exception error at times, and at other times, it works just fine. Not sure what is causing this issue. What I understand from my limited understanding is that it sends a async request awaiting a response. And before the response…
Saad Bashir
  • 4,341
  • 8
  • 30
  • 60
0
votes
0 answers

i am getting an error while using the sliding up panel dependency in my flutter code

I get an exception whenever I press the payments button on my bottom nav-bar. the error goes like this: The ParentDataWidget Expanded(flex: 1) wants to apply ParentData of type FlexParentData to a RenderObject, which has been set up to accept…
0
votes
0 answers

The flutter tool cannot access the file or directory

This problem occurred in only one project, knowing that there are 3 different projects in the same folder, all of them work without a problem As for this project, I have a problem: Exception: The flutter tool cannot access the file or…
Reema
  • 11
  • 2
0
votes
0 answers

Bulk clean SVGs from API

I'm building a Flutter app and getting a bunch of svg images from an APi. Some contain the tags that cause errors to the flutter_svg package. I've searched but only found ways to fix this issue when it's an individual file like use some tools…
Edem
  • 1
0
votes
0 answers

How to actively crash Flutter app on Android

The requirement is to exit the app when the button is clicked. I created a MethodChannel to do this. Using the principle of array out of bounds, respectively on both sides of the array out of bounds, crash on iOS but on Android is only an exception.…
0
votes
1 answer

Dart Unhandled Exception: type '(dynamic) => PatientsInfo' is not a subtype of type '(String, dynamic) => MapEntry' of 'transform',

Good morning everybody, I would like to ask for help about the following error that I am getting, I have already researched about it, I have done some methods to try to fix it, but without success, so I came here to ask for your help, if you can…
0
votes
1 answer

'The Android emulator exited with code -11 during startup' error is showing on vs code, Is there any solution?

Following is the error, when i run the command 'flutter emulators --launch Pixel_3a_API_25' in VS Code: Image of the error (output of 'flutter emulators --launch Pixel_3a_API_25' command) Output of the command 'flutter emulators' Output of the…
1
2