Questions tagged [dart-pub]

Pub is a package manager for Dart applications and libraries.

Pub is a package manager for Dart applications and libraries. You can find packages to use in a project or publish packages to the package repository. Pub automatically keeps track of dependencies to other packages and makes sure that the dependencies use the right version of a package.

Basics:

  • Use pub get to get dependencies
  • Use pub upgrade to upgrade a dependency
  • Use pub publish to make your library available for others

Resources:

1128 questions
-2
votes
1 answer

I want to show this Image on my widget level and onclick should play in full screen?

I want to show something like on my flutter widget if the url is video and onClick he show start playing the video in full screen
-2
votes
1 answer

Dart packages, i dont know what to do

How do i do with this command: Add this to your package's pubspec.yaml file: dependencies: node_preamble: ^2.0.0 I don't understand, can you help me?
Isih0510
  • 7
  • 1
-2
votes
1 answer

How to Add progress bar in each list section in flutter

hey guys I get very upset from this and now I need your help please I want to add progress bar in list view using flutter I have tried many things but I really don't get it. so please help me with this. and the other thing I want to know that how I…
-2
votes
1 answer

What should i do to restart my flutter/dart sdk for it to function well

This shows up aand goes off immediately when i run flutter doctor or any flutter command I set up the flutter enviroment early this year, and it has been dormant till now. Me trying to use it currently, its not functioning well.
Ser Emmie
  • 1
  • 2
-2
votes
1 answer

how to create card like this on flutter?

Guys pls help me I'm trying to make this card but I cant create this. I'm sharing my code and output. I'm new in flutter and dart language. class Review extends StatefulWidget { Review({ Key key, }) : super(key: key); …
rvndsngwn
  • 417
  • 2
  • 5
  • 11
-2
votes
2 answers

does anyone know anything about this error? I can't solve

E/flutter (17200): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: NoSuchMethodError: The method 'findRootAncestorStateOfType' was called on null.
-2
votes
1 answer

Dart : How to fetch data with no number id (string)?

So I was able to fetch data for 'locations' in this json using the number (0,1,2,3,4). But I was not able to fetch data from 'prayer_times' string directly. Is there any way to solve this? I have tried Text(data["date"] because it cannot start with…
vicevirus
  • 437
  • 2
  • 4
  • 11
-3
votes
0 answers

i want a solution for installing flutterblue package

when I have tried to install flutter-blue package on android studio, the pub failed and causing the following error if anyone can help me to solve that problem, I will be very thankful
-3
votes
1 answer

How to find all documents in objectdb flutter?

There is no documentation how to find all documents in objectdb flutter ?
dkp1997
  • 175
  • 1
  • 2
  • 7
-4
votes
3 answers

i am trying to make my first app in fluttet "Error on line 46, column 15: Mapping values are not allowed here. Did you miss a colon earlier?"

enter image description here cupertino_icons: ^1.0.2 STATE MANAGEMENT mobx: ^2.0.3 flutter_mobx: ^2.0.1 dev_dependencies: flutter_test: sdk: flutter mobx_codegen: ^2.0.2 build_runner: ^2.2.0
dgenx
  • 9
  • 3
-4
votes
2 answers

Flutter how to create package with function

I'm trying to make a package. I need to use async function, but I can't use it while building package. Package Code: class Sozluk { wiki(ceviri) async { var res = await http.Client() …
CidQu
  • 412
  • 6
  • 13
-4
votes
2 answers

dart code runs in DEBUG CONSOLE not in TERMINAL?

**I started using dart to gain knowledge of it. It was going nice but when i reached "getting on users input" it seemed to be frustrating. ** because my code was running in DEBUG CONSOLE, where I was not able to enter data. I used code Runner, but…
-5
votes
1 answer

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/material.dart'; void main() { …
-5
votes
1 answer

Please guide me, how to fix this issue?

Warning: Your Flutter application is created using an older version of the Android embedding. It is being deprecated in favor of Android embedding v2. Follow the steps at https://flutter.dev/go/android-project-migration to migrate your project. You…
1 2 3
74
75