flutter-dependencies

flutter project isn't running - Compiler message

老子叫甜甜 提交于 2020-05-29 02:53:19
问题 Compiler message: /C:/flutter/.pub-cache/hosted/pub.dartlang.org/extended_image-0.7.2/lib/src/gesture/extended_image_slide_page_route.dart:333:9: Error: No named parameter with the name 'animation'. animation: animation, ^^^^^^^^^ /C:/flutter/packages/flutter/lib/src/cupertino/route.dart:435:3: Context: Found this candidate, but the arguments don't match. CupertinoFullscreenDialogTransition({ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.15.0

Flutter App stuck at “Running Gradle task 'assembleDebug'… ”

試著忘記壹切 提交于 2020-05-28 12:00:50
问题 When I run the app it get stuck Launching lib\main.dart on Lenovo A319 in debug mode... Running Gradle task 'assembleDebug'... (This is taking an unexpectedly long time.) It never initialize Gradle nor the dependencies 回答1: In my case, Windows Firewall was causing this problem. After I disabled it temporarily the problem was gone. Worth giving it a try. Good luck! 回答2: Here is solution in my case. Delete gradle folder in home directory ~/.gradle (optional) Open your flutter Project directory.

How to send location data to Firestore Database when app is killed in FLUTTER

丶灬走出姿态 提交于 2020-05-28 08:03:05
问题 I have been trying to create an app in flutter which sends the location data of a user to the Firestore Database EVEN WHEN THE APP IS KILLED. This plugin works well to get the location data when the app is killed: https://github.com/rekab-app/background_locator The problem is that I am unable to update the Firestore Database values in the 'callback' function of this plugin Here is my code: static void callback(LocationDto locationDto) async { print('location in dart: ${locationDto.toString()}

How to send location data to Firestore Database when app is killed in FLUTTER

倖福魔咒の 提交于 2020-05-28 08:02:25
问题 I have been trying to create an app in flutter which sends the location data of a user to the Firestore Database EVEN WHEN THE APP IS KILLED. This plugin works well to get the location data when the app is killed: https://github.com/rekab-app/background_locator The problem is that I am unable to update the Firestore Database values in the 'callback' function of this plugin Here is my code: static void callback(LocationDto locationDto) async { print('location in dart: ${locationDto.toString()}

How to allow mailto and tel URL schemes in WebView Flutter?

孤街浪徒 提交于 2020-05-28 04:24:24
问题 I am developing WebApp in Flutter but when I click on tel:987654321 or mailto: links going page Not Found, To open the default app in mobile I am using url_launcher dependency But in the background when I click WebView also run the same link and go to page not found. How to handle this task? 回答1: navigationDelegate: (NavigationRequest request) { if(request.url.contains("mailto:")) { launch(request.url); return NavigationDecision.prevent; } else if (request.url.contains("tel:")) { launch

mapEventToState triggers one time only

给你一囗甜甜゛ 提交于 2020-05-21 01:58:56
问题 What am I doing wrong here that my state in a Bloc Pattern changes only one time then mapEventToState doesn't react to BlocProvider.of<CounterBloc>(context).add(ActiveEvent()); request? I am trying to get into the way of things with the Bloc Pattern but when I switch state in the switcher on a counter page the state changes and after that, it doesn't update at all. It's like don't go any further from onChanged switch function. I guess the issue is in my stream subscription which is

mapEventToState triggers one time only

此生再无相见时 提交于 2020-05-21 01:58:11
问题 What am I doing wrong here that my state in a Bloc Pattern changes only one time then mapEventToState doesn't react to BlocProvider.of<CounterBloc>(context).add(ActiveEvent()); request? I am trying to get into the way of things with the Bloc Pattern but when I switch state in the switcher on a counter page the state changes and after that, it doesn't update at all. It's like don't go any further from onChanged switch function. I guess the issue is in my stream subscription which is

Flutter: how to adjust/override properties of the Flutter core code without copying entire files?

爷,独闯天下 提交于 2020-05-15 03:38:49
问题 This question is related to the following StackOverflow issue: bottom sheet with initial height half of screen and if it scroll then height is increase to full screen It is about a constraint that is set within the Flutter code about bottom sheets, that I do not want to have. I understand the solution mentioned in the link above, but I don't know how to implement it in a nice way. Right now my 'solution' is to completely copy the bottom_sheet.dart file from the official Flutter codebase and

how to download/create pdf through webview in flutter

我的未来我决定 提交于 2020-05-14 18:10:09
问题 I have created a webviewscaffold but can't download anything from it while browsing from the webview, I made but when I click the button it does nothing. I don't know where to start, like in other browsers that can download and preview, I'm trying to achieve the same thing in here. class AppState extends State<App> { @override Widget build(BuildContext context) { return Scaffold( body: Stack( children: <Widget>[ Align( alignment: Alignment(1, 1), child: Container( child: Web(), // it is a

how to download/create pdf through webview in flutter

丶灬走出姿态 提交于 2020-05-14 18:07:11
问题 I have created a webviewscaffold but can't download anything from it while browsing from the webview, I made but when I click the button it does nothing. I don't know where to start, like in other browsers that can download and preview, I'm trying to achieve the same thing in here. class AppState extends State<App> { @override Widget build(BuildContext context) { return Scaffold( body: Stack( children: <Widget>[ Align( alignment: Alignment(1, 1), child: Container( child: Web(), // it is a