Questions tagged [flutter-dependencies]

For questions relating to the use of and issues with any use of flutter-specific dependencies in dart's pubspec.yaml

Dependencies are one of the core concepts of the pub package manager. A dependency is another package that your package needs in order to work. Dependencies are specified in your pubspec. You list only immediate dependencies — the software that your package uses directly. Pub handles transitive dependencies for you.

For each dependency, you specify the name of the package you depend on and the range of versions of that package that you allow. You can also specify the source, which tells pub how to locate the package, and any additional description that the source needs to find the package.

Here is an example of specifying a dependency:

dependencies:
  transmogrify: ^1.0.0

This YAML code creates a dependency on the transmogrify package using the default source (pub.dev) and allowing any version from 1.0.0 to 2.0.0 (but not including 2.0.0). See the version constraints section of this page for syntax details.

If you want to specify a source, the syntax looks a bit different:

dependencies:
  transmogrify:
    hosted:
      name: transmogrify
      url: http://some-package-server.com
    version: ^1.0.0

This YAML code creates a dependency on the transmogrify package using the hosted source. Everything under the source key (here, just a map with a url: key) is the description that gets passed to the source. Each source has its own description format, which is described in the dependency sources section of this page. The version constraint is optional but recommended.

Use this long form when you don’t use the default source or when you have a complex description that you need to specify. But in most cases, you’ll just use the simple packagename: version form.

Dependency sources

Pub can use the following sources to locate packages:

SDK
Hosted packages
Git packages
Path packages
6510 questions
1
vote
1 answer

Remove overlay on press on BottomNavigationBarItem

enter image description here BottomNavigationBar( elevation: 10, type: BottomNavigationBarType.fixed, backgroundColor: Color(0xFFFBFBFB), showSelectedLabels: false, showUnselectedLabels: false, items:…
1
vote
1 answer

How to make list from String in flutter

I have a string i want to create the list using the below string and also I can't convert this string into a JSON string String s = "[{emp_username: gg, emp_designation: ty, emp_contact: hh, emp_email: yy, emp_address: hu}]";
1
vote
3 answers

Flutter how to add a dialog screen over main screen like this

Hi all, I would like to add a screen that slowly appears form the bottom or the screen and partially covers the main screen below. So you can still see the top part of the main screen. Does anyone know how to do this? Thank you very much
Kitcc
  • 2,138
  • 4
  • 24
  • 42
1
vote
3 answers

Flutter: Not able to clear text field with .clear or .text =""

I have created a feedback screen but I am unable to clear the text from my rounded input field even after using controller.clear or controller.text ="" My feedback screen code(only attaching relevant code to make it easy to understand): class…
Arkham007
  • 111
  • 1
  • 1
  • 8
1
vote
1 answer

Want to display HTML data that contains both nested and non-nested tables within my Flutter application

I am currently using a plugin (flutter_html 2.2.1) to display HTML data that contains both nested and non-nested tables within my Flutter application. The code I have provided below is used to display the tables, but it only allows me to show the…
1
vote
0 answers

How to solve this sing In error while using Google Sign In PlugIn flutter?

I am trying to authenticate users with google sign in using GoogleSingIn Package. But it's throwing this error: Try correcting the name to the name of an existing method, or defining a method named 'signInWithAuthProvider'. await…
1
vote
1 answer

Flutter send voice clip

Is there any option to send voice clip from flutter app to mobile number (sim card ) ? Please help me to solve this problem? Is Is there any packages to send voice clip from app to phone number. Android, Ios ,
ranga gem
  • 21
  • 2
1
vote
1 answer

Opening a csv file in another app from flutter shows it has corrupt

I want to export a CSV file from my app. I implemented the following simplified code: import 'package:csv/csv.dart'; import 'package:open_file_plus/open_file_plus.dart'; import 'package:path_provider/path_provider.dart'; // Get directory…
nck
  • 1,673
  • 16
  • 40
1
vote
3 answers

No podspec found for `flutter_user_agentx` in `.symlinks/plugins/flutter_user_agentx/ios`, while running application on ios. Android is working

I am trying to run my flutter application in ios, and while pod installs I am getting an error ([!] No podspec found for flutter_user_agentx in .symlinks/plugins/flutter_user_agentx/ios). I am using a dependency named "flutter_user_agentx", On…
1
vote
0 answers

Flutter Full page ads in PageView like Short news Way2news

Hello Everyone I want to show Admob ads in my flutter pageview after a 5-page swipe and on the 6th page I want a full-page banner ad, if I swipe this then I can go on the 7th page of the news. I have implemented but I am unable to get full-page…
Pramod Yadav
  • 436
  • 7
  • 24
1
vote
1 answer

I want to display everything that appears in the debug console, for the user when the app is in production

I would like to show the user the messages that appear for us developers, to be more specific I would like to show the user what appears to us in the terminal in the debugConsole tab, I would like to show the user the messages that appear…
1
vote
0 answers

Attribute application@label value=(tst) from (unknown) in flutter

getting this error Attribute application@label value=(tst) from (unknown) in flutter Attribute application@label value=(tst) from (unknown) is also present at [com.wuhenzhizao:titlebar:1.2.0] AndroidManifest.xml:13:9-41 value=…
1
vote
1 answer

I wants to put the calendar half on one container and half on another container in flutter

I wants to put the calendar half on one container and half on another container. I tried it using stack but it doesn't worked well can anyone guide me regarding that? Below code is giving an error as bottom overflowed. I wants to put calendar half…
1
vote
1 answer

How do i customise a date picker interface in flutter?

I have a design i am trying o replicate in flutter which a user can be able to select date from a dropdown The design is not a problem, however what is the problem is the logic. How do i Implement this? I tried looking for flutter packages to help…
tesseract
  • 144
  • 1
  • 12
1
vote
1 answer

Supabase return invalid json in response Flutter

I m new in Supabase when I try to fetch my table data so the return in response is invalid JSON. how to convert it ? Supabase calling method code is: try { var response = await SupabaseCredentials.supabaseClient .from("emp_table") …
1 2 3
99
100