Category "flutter"

Is there a way to check the strength of internet connection in flutter?

I am trying to upload some multimedia files(Images, Audio and Videos) to my server and I only want to upload these files if there is a stable internet connectio

How to save File in Downloads folder in flutter?

In my flutter application I can create a pdf file, then I want to save it in Download folder. I'm trying to achieve this goal with path_provider package, but I

suddenly my app can't fetch data from friestore on my flutter project

suddenly i cant fetch data inside of the firestore database. tried to change google-services.json and still did't fetch data from firestore. and i tried to disc

How to design custom ListWheelScrollView like below image in flutter?

I added two ListWheelScrollView to show the value first for numbers(1-9) and second for string values like an hour, day, week, and month but focus item design d

Format & localize date labels in charts_flutter time series chart

I have following time series in charts_flutter: charts.Series<DatumPoint, DateTime>( id: 'Series', colorFn: (_, __) => charts.Material

FileOutputStream in dart flutter

what's the equivalent fileoutputstream of java in dart? Java code file = new FileOutputStream(logFile, true); byte[] input = "String".getBytes(); file.write(inp

Animated Container is not animating when list changed

import "package:flutter/material.dart"; import "dart:async"; class JoinScreen extends StatefulWidget { @override _JoinScreenState createState() { re

Cannot take picture on flutter camera because of "unconfigured surface"

I wanted to capture the image and display a preview screen showing the captured image. It worked fine before, but once I added object detection, I receive a gro

How to receive FCM push notification data in flutter web and redirect user to received link in notification?

I am trying to redirect user to specific page in flutter web on click of notification, till now I am receiving notification, the last open page is displayed in

How to change color of just the bottom side of the border of raised button in flutter?

How to change color of just one side of the border of a raised button in flutter?

The default constructor is already defined

When trying to declare CardView class in my Flutter application, I get the error The default constructor is already defined. import 'package:flutter/material.da

Finished with error: Gradle task assembleDebug failed with exit code 1

Launching lib\main.dart on HTC One M9PLUS in debug mode... Initializing gradle... Resolving dependencies... Gradle task 'assembleDebug'... registerResGenerating

How do ask a permission for open a gallery in android phones using flutter

I have using image_picker: ^0.8.4+11 for open a gallery. I need to ask a permission for open a gallery. In iOS it ask a permission to open a gallery but Android

Losing connection to device during start with Android studio

I'm having problems with setting up my Mobile phone (Samsung Galaxy J5) to work as my Test-Device for flutter in android studio. I in-between managed to start m

How do deal with nested InkWell with Flutter?

Suppose you have a few nested InkResponse, if you tap on the inner one, all of the parent will actually trigger the splash effect even though they will loose in

How to convert BASE64 string into the Image with Flutter?

I extracted a string of BASE64 images from the database, put it on the screen and kept reporting an error String _base64 = user.data.avatar; var image = utf8.e

Flutter error catch e.message not working

void createUser(String email, String password) async { try { await _auth .createUserWithEmailAndPassword(email: email, password: password)

Flutter web done button has container at top of keyboard

I had an app that use flutter for web. every i focus on textfield and pressed the button 'done' at top keyboard of phone it will be close the keyboard but when

How can you change the default ScrollPhysics in flutter?

I need to change the ScrollPhysics for almost every scrollable widget in an app to BouncingScrollPhysics(). I have tried to find a way to do this without adding

Cards as items in the DropdownMenuItem

I would like to know if it is possible to have card widgets as the items in a dropdownmenu button in flutter. I have tried, but I haven't managed to make the ca