Category "flutter"

Flutter hero animation between widgets not screens

Hero animation is the best for navigating between screen, but I need same animation between widgets. Like one card moving another place for example: Product Car

Is this the correct way to use Bloc in flutter?

How to use Bloc in flutter. What is the best way to use it? to wrap the whole app with blocprovider? runApp( RepositoryProvider( create: (contex

Why Flutter Container does not respects its width and height constraints when it is inside other Container

Container( width: 200.0, height: 200.0, child: Container( width: 50.0, height: 50.0, decoration: BoxDecoration( shape: BoxShape.circle,

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)