Questions tagged [dart-pub]
Pub is a package manager for Dart applications and libraries.
1,056
questions
0
votes
0
answers
7
views
Is it possible to use Selenium(or equivalent libraries) in flutter code
I builed a webscraper with python and selenium and I want to code an equivalent in flutter with dart. The issue is that in my python code i had to click on buttons etc on a website, but is it possible ...
0
votes
0
answers
25
views
flutter Share_plus dosenot show .vcf file contacts option Android
I'm trying to share the .vcf file using the share_plus package in flutter but it doesn't show the option to share to contact book like in IOS shows the contact option.
0
votes
2
answers
20
views
Using Title in Flutter
import 'package:flutter/material.dart';
class CategoryMealsScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
final routeArgs =
ModalRoute.of(context)!....
0
votes
0
answers
18
views
Execute NPM package function in dart core
I have a problem about implement sdk in npm to dart core, to execute some function of it but right now i can't find any package to support it.
I have already research with 'node_interop' package but ...
0
votes
2
answers
34
views
Active Color in Pageview builder
I want to make the centre widget border colour Basic widget should be have active colour when i slide it Silver widget will be centre so Silver widget should be active then to purple.
while slider ...
-1
votes
0
answers
32
views
Flutter example project from version control [duplicate]
I am new with flutter project and am trying to link a new project from version control. But I can't able to run the project due to dart configuration issue as shown in the image. Anybody knows hoe ...
1
vote
1
answer
36
views
Does dart doc support generation of markdown instead of HTML?
I have dart doc . working and generating HTML files.
I want to generate Markdown files instead.
When googling, I found this answer https://github.com/dart-lang/dartdoc/issues/1479#issuecomment-...
0
votes
0
answers
34
views
Problem receiving data from bluetooth at very high speeds with Bluetooth Serial
I'm using the flutter_bluetooth_serial 0.4.0 package, it has a listen function that receives a function that returns the reading of the sending of a string (List Uint8), but for my case I need to ...
0
votes
0
answers
35
views
certain tab bar views reset button with the tabbar maintained
There are four tabbars, and the ui is created when you attempt to reset the page ui in the tabbarview number 2. I want to create a tabbarview again while maintaining four tabbars.
Navigator....
0
votes
1
answer
61
views
How can i encrypt a string in Dart same like in c# using RijndaelManaged
This is my c# code for string encryption using RijndaelManaged,
I'm not able to encrypt like same in flutter, i tried many packages. but no result.
i need to encrypt a string in flutter and i need to ...
0
votes
0
answers
56
views
how to achieve this UI in flutter by using NestedScrollView.?
I tried to acheive from NestedScrollView by creating a sample code. But its not exactly which I want. Please help me.
I want to achieve this ui. When scrolling appbar should dock at the top. Image top ...
0
votes
0
answers
23
views
camera_windows save picture to different directory
I am using the flutter package camera_windows using the exact sample code listed here
camera_windows
It looks like by default it saves it to the "Pictures" directory in windows but I was ...
0
votes
1
answer
50
views
How can i pass this complex Json MAP Data into flutter Listview
i am new to flutter, and i meet this API with complex "MAP" json. What i want is to display the list of countries with their details in flutter listview, How can i achieve that? Most of ...
-1
votes
0
answers
27
views
How can I discover nearby user in Flutter?
Is there any dependency or package from which nearby user can be discovered in flutter ?(like in tinder where nearby user is discovered)
I know geolocator but it just get user location !
0
votes
0
answers
45
views
Send and receive text messages while the phone is locked in Flutter
I'm trying to build an app in flutter to receive a message for a specific person then make a API call and send a text message. even if though the phone is locked.
I have tried other packages. But ...
0
votes
1
answer
39
views
GridView.builder only returns the last file
I'm, making a pdf reader with asset pdf files and my app only returns the last file. upon clicking other files it gives an error:
[ERROR:flutter/lib/ui/ui_dart_state.cc(198)\] Unhandled Exception: ...
-1
votes
1
answer
35
views
How to calculate RMS in flutter?
Is there any technique or package that calculates Root Mean Square(RMS) in Flutter?
I searched many blogs and packages but didn't find useful resource related to RMS implementation in Dart
0
votes
0
answers
22
views
Flutter Error at runningError in new project Error: Couldn't find constructor 'StandardMessageCodec'
I had these errors didn't upgrade to the new version I even created a new project but I had the same error
^^^^^^^^^^^^^^^^^^^^
: Error: Couldn't find constructor '...
0
votes
1
answer
28
views
Hive adapters and boxes with Get_it how should i regester them into getit
I have always issues with hive boxies instances and the error of not initilizing the box or adapter
so I decided to register them in one place and use it all over place .but I don't event know how to ...
1
vote
1
answer
30
views
How to solve NetworkImageLoadException in flutter
I am trying to fetch image using image.network(), not getting result, showing error, actually image address will get in api responses,
code look like this,
Container(
height: double....
-1
votes
2
answers
54
views
How to generate dynamic dart class code with proper methods
Is there any way/approach to generate any dart class with exact method by passing class name and property on the fly by running another class?
For example: the class name is "Student" and it'...
0
votes
0
answers
30
views
why ads disappears in flutter?
I had banner and native test ad inside my app and now it disappears. I am getting this error now.
E/ApsLdfGameIdentify(24814): binder error
E/Hwaps (24814): no data in database of APSAPPINFO
E/Hwaps ...
0
votes
0
answers
43
views
engine initialization failed for the first time in flutter
I am using flutter file view package to view document files but for the first it shows engine initialization failed and after restart app it work fine can someone help plzdart
FileView(...
1
vote
1
answer
44
views
Flutter CLI - Omit the spinner
I have an automated build server that logs the output of programs that are run during the build.
When I use the Flutter CLI during the build, the CLI prints a loading spinner animation that fills the ...
0
votes
0
answers
18
views
Try create Dynamic Widget, data from API but when I click on dropdown, radion selection not visible on UI
Try create Dynamic Widget, data from API and add widget in array
&showing in listbuilder but when I click on dropdown, radion selection
not redering. When I click on radio button value print in ...
-1
votes
2
answers
49
views
How to use SingleChildScrollView
this is my code... it says errorerror
SingleChildScrollView(
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: [
...
0
votes
1
answer
44
views
how to run two widget on same time in flutter
I am using the package to show the pdf but the loading part of the pdf is in Chinese and is not customizable so I want to show a widget over a widget when the loading part is in progress I want to ...
0
votes
0
answers
37
views
Accidently write flutter clean
In between project, I ran the command "flutter clean", now lots of error are showing. When I'm trying to run "flutter pub get" it's no more working, I'm getting following errors&...
1
vote
0
answers
49
views
flutter app not loading properly after releasing
VS Code Build Output.:
App Output without problem:
App after some time:
this happens when I close and open app for 2 or 3 times:
If anybody can solve this problem please help me.
0
votes
0
answers
35
views
I need to convert WSQ base64 format into normal flutter base64 image
I am integrating finger print feature, which return fingerprint WSQ base64 format, I want to return it into normal base64 flutter format.
-5
votes
1
answer
102
views
Importing Package in Flutter
I have an issue to solve an error which I am facing past 3 days, begin the journey in coding since months but I can't get Errors. Here is the Snippet of Todo List code.
import 'package:flutter/...
5
votes
2
answers
162
views
How can I achieve "child of a widget which is inside a scroll widget acting like sticky header" in Flutter?
I'm trying to find a way to implement a functionality in which, in a horizontally scrollable list, there are widgets that I will call P, (which are denoted as P1, P2 and P3 in the diagram) and their ...
0
votes
0
answers
84
views
When I run flutter gallery loaclly, I faced with exception with Syntax Error when try to pub get
Steps to Reproduce
Follow the document and switch my channel to master and upgraded.
git clone flutter/gallery project locally
follow the step run flutter pub get
pumped out:
Generating synthetic ...
0
votes
2
answers
48
views
List contains method in dart
Contain method can not detect the object inside of list
What is the reason of that?
I expected to get the result of if block
enter image description hereLook at this picture as well.In the second ...
1
vote
0
answers
54
views
I want to make three Map in using below JSON response using model classes. Please share
I am a started to learn flutter, i am a beginner, i am stucking one point,I have API response related to checkBox.I want to map the values in to different map.
Here is the API response:
{
"...
0
votes
0
answers
92
views
flutter_widget_from_html tags cannot using custom Styles Builder
I am using flutter_widget_from_html: 0.9.0+1. Faced a problem, some widgets do not use customStyleBuilder and do not use TextStyle. Who creates a solution to the problem. Thanks in advance.
Its HTML ...
0
votes
0
answers
40
views
Getting error at the time of build creation with emoji_picker_flutter
i am creating build using flutter 2.10.3 and emoji_picker_flutter: 1.2.1. But it is giving this issue
/C:/Users/M.LAPTOP/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/emoji_picker_flutter-1.3.0/lib/...
0
votes
1
answer
17
views
How to publish dart library that has flutter tests?
My dart library has flutter tests. I run the tests with flutter test test\flutter and it works perfectly.
However, when I try to publish it with either dart pub publish or flutter pub publish, I get ...
1
vote
1
answer
203
views
Flutter Dart Error: Dart_LookupLibrary: library 'package:home_widget/home_widget_callback_dispatcher.dart' not found
I am using Home Screen Widget the package is here
https://pub.dev/packages/home_widget/install
and with flutter run --release I get the following error
Dart Error: Dart_LookupLibrary: library 'package:...
0
votes
0
answers
19
views
i am buling an ai radio project and i got below run time errors
-----------
* Where:
Script 'C:\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 474
* What went wrong:
A problem occurred configuring project ':audioplayers_android'.
> Failed to ...
0
votes
2
answers
40
views
How to solve the error on outdated code when cloning
I am recently want to see and run some other developers code in github and clone it to run in my emulator but it showing some error like this
"Running "flutter pub get" in budgex...
...
0
votes
0
answers
125
views
Flutter : Getting files not working on Android 12
I'm getting files from device storage but is not working on android 12.
my code is
void getFiles() async {
await Permission.manageExternalStorage.request();
if (await Permission.storage.request()....
0
votes
0
answers
35
views
How to pass arguments when we run Build runner in dart?
I want to write a code generation tool in dart for generating keys and trnaslation values in .dart files from json files.
I tried this
in lib/sample_console.dart
library sample_console;
import '...
0
votes
0
answers
17
views
How to run an executable from flutter package without activating it globally?
I want to write a script to call flutter_gen package from CLI using fluttergen -c pubspec.yaml command. But the only way I know to do it is run dart pub global activate flutter_gen firstly.
This ...
1
vote
1
answer
32
views
Is it possible to have multiple pub cache per project?
I'm on Windows 11. I have two flutter projects: A Flutter web project using flutter 3.0.4 and a flutter ios and android project using flutter 3.3.1. I switch between them using this Powershell ...
0
votes
1
answer
69
views
i am getting below problem on installing packages
any one can help me?
mine project is about news feed i want that output
[Flutter-News-App] flutter pub upgrade
Running "flutter pub get" in Flutter-News-App... Resolving ...
1
vote
2
answers
97
views
How to validate email from dummy emails?
I am currently working on a project and need validation for validating dummy emails like
mailinator or yopmail.
These emails should not go through but I can't get any regex for this particular issue.
...
1
vote
0
answers
152
views
Flutter flow Json search using Local state
facing a issue for adding a search element in flutter flow for Json search (for a list) can anyone with the flutter flow has experienced it and what things i need to get that configuration.
tried to ...
0
votes
1
answer
95
views
Flutter @dart=2.9 import 'dart:math'; Error, dart code won't run in emulator?
Question: How can I solve the flutter error as shown below & why does this happen?
What I can't understand out of this error, is
that I can't comprehend what @dart=2.9 is. I hadn't previously run ...
-1
votes
3
answers
106
views
Print the second largest number on the list using dart
I need to print the second largest number on the list,
the output from the below code is all elements in the list except the first and the last one.
What is the mistake?
void main () {
List a = [9,6,4,...