dart Questions

7

Solved

After upgrading flutter with flutter upgrade to 3.10 All my (previously working) Futures stopped working. Every single future is underlined with red saying "Future isn't a type". What can...
Gabrila asked 17/5, 2023 at 6:52

4

Solved

i used image_picker package in my app and it works fine for one image but now i want to use it for multiple images and store them in an array as File. any idea could be greate.
Ddt asked 3/8, 2021 at 20:28

2

Solved

Feature for deserializing Generic Classes was introduced to freeze a few months back. I am trying to follow the documentation, but I am facing a compile time error: The argument type 'NameOfClass F...
Obsequies asked 30/9, 2022 at 6:56

2

Solved

What is the difference between: class A {} class B with A{} and mixin A{} class B with A{} ?
Flyback asked 5/5, 2022 at 20:15

1

flutter run ../../../../Documents/FlutterSoftware/flutter/packages/flutter/lib/src/material/animated_icons/data/list_view.g.dart:3132:13: Error: Method not found: 'Offset'. Offset(42.17915438835...
Varletry asked 25/6, 2020 at 9:36

3

Solved

I saw this as part of the logs generated by Gradle when building an app in release mode in flutter. Does this have any side effects on the overall app?
Montelongo asked 29/7, 2022 at 6:34

5

Solved

I was working on a project and wanted to add the difference in DateTime in terms of minutes, hours, days, weeks, months and years. I was able to get in minutes up to days. e.g. DateTime.now().diff...
Dambro asked 14/10, 2019 at 11:21

5

Solved

I have a ListView with some items, but my problem is that the item inside the ListView will expand through the all-screen width, and I tried to use SizedBox and Container but it doesn't work for me...
Dichlorodifluoromethane asked 18/6, 2021 at 12:11

5

Solved

I am currently working on flutter. I am using stack for stack 2 widgets. But i have some problems. This is what I am trying to do. But my widgets look like this. That's my code: class UpcomingSes...
Irrationality asked 9/7, 2021 at 8:17

3

What's the difference between Thread, Isolate and a Process in Dart? As far as I know Dart is a single-threaded language, but it can spawn many isolates which don't share memories with each other a...
Seely asked 28/8, 2020 at 15:23

2

I have private dependency from GitLab in my Flutter mobile app project. It is specified in pubspec.yaml with git repository link and I can successfully run pub get if I use ssh for it (I have gener...

4

I'm trying to write some unit tests for ApiBaseHelper methods (responsible for all HTTP requests). class ApiBaseHelper { String _baseUrl = "${Config.get('apiUrl')}/"; Dio _dio = Dio().....
Teacart asked 14/4, 2022 at 14:19

6

Solved

I'm new to flutter. I just created a new project in flutter and have not even altered the code. And when I run the code I get the following error. Launching lib\main.dart on SM A750F in debug mode...

9

Solved

Code Text Colorless When I code in Visual Studio, it doesn't show any colours in the code text. It shows blue and green colours only for the class and comments texts. Also, VS doesn't suggest me an...
Conduce asked 21/1, 2022 at 16:43

3

Can you convert a Future<String> to a String? Every time I start my application, it should get data from the database, store it in a .csv file, read the .csv file and update some string varia...
Aeolis asked 27/2, 2020 at 17:16

2

Solved

I'm new to flutter and I'm trying to create an app with provider. I wrapped MaterialApp widget with the ChangeNotifierProvider and the app works and I can use the provider as it intended to do. I n...
Sol asked 28/8, 2019 at 11:37

3

Solved

since the last dart update (2.2) I'm getting this error, 'A value of type 'dynamic' can't be assigned to a variable of type 'String'.' which doesn't make much sense to me. the code is absolu...
Atwater asked 7/3, 2019 at 7:54

2

Solved

I want to encode the following string in Base64Url in Flutter and decode it in on a Dart server. "username:password" How do I do that? And how do I do it in Base64?
Stonefish asked 18/5, 2019 at 16:58

5

I am trying to integrate CameraX inside my flutter project. I am doing so via platform channels. I don't want to integrate any third party lib. Here is a screenshot of the camera only occupying one...
Astragal asked 31/1, 2023 at 10:5

5

I have upgraded the flutter latest with the command flutter upgrade, after upgrading now flutter doctor shows the warning (below) Warning: dart on your path resolves to E:\Program Files\Android\dar...
Kruger asked 7/2, 2023 at 12:30

4

Solved

In a TextField I have a initial text 0.00 then how can I format the typed value once the user start typing in Flutter? I'm currently usig the flutter_money_formatter package but I can't get the exp...
Jae asked 15/6, 2020 at 15:30

2

I know the flutter_local_notifications_plugin allows an app to display notifications. I want to access the data of notifications that is received, regardless of whether the app is running in the f...
Spanish asked 23/7, 2019 at 6:31

4

How do you write a Binary Literal in Dart? I can write a Hex Literal like so: Int Number = 0xc If I try the conventional way to write a Binary Literal: Int Number = 0b1100 I get an error. I've tr...
Quinine asked 29/7, 2020 at 19:4

12

Solved

I'm building a FLutter code that has the following error for both Android and IOS: ../../development/flutter/.pub-cache/hosted/pub.dartlang.org/uuid_enhanced-3.0.2/lib/uuid.dart:9:7: Error: 'Unmodi...
Gentlefolk asked 13/10, 2021 at 9:39

2

I'm trying to run an integration test which is highly dependent on the user clicking a magic link he got in his email. So far I failed to find a way of doing that. I came across Process.run but it ...
Him asked 16/3, 2022 at 9:41

© 2022 - 2024 — McMap. All rights reserved.