Category "flutter"

How to add image in Flutter

I am developing Flutter app for the first time.. I have an issue in adding a image. I have a below questions : Where to create images folder? Where to add asse

Flutter: Incorrect use of ParentDataWidget

I'm trying to do a homepage where it will scrollable with 3 or 4 titles and a horizontal lists for products once i put the ListView.builder i get this error: In

Change the bottom navigation screen and its index on button press

I am working on the bottom navigation bar feature. I have 4 screens associated with a bottom navigation bar. Page1 Index0 (It has a button) Page2 Index1 Page3 I

OAuth2: No login dialog after log out, direct log in of last user

I am building a flutter app that needs the user to authenticate against an identity provider in order to user the app. I am using the package simple_auth_flutt

( Flutter Bloc ) doesn't conform to the bound 'StateStreamable<state>' of the type parameter 'B'

why am i getting the error? I couldn't find the reason. I'll be happy if you can help me. error screen You can check my issue on github

Should I have the web version of an app in the same Flutter project for android and iOS, even though the web version is 100% different?

I have a Flutter app running on both android and iOS (Flutter + Firebase) but I'm implementing an admin dashboard that will only work on the web version. I was

Flutter error: Each child must be laid out exactly once. On building layout

I'm using flutter_bloc. I've got code like this: class Settings extends StatelessWidget { final _formKey = GlobalKey<FormState>(); @override Widget

How to show waves while record an audio using flutter sound

i am using flutter_sound_lite package to record users voices and i am trying to show the waves while user is recording but couldn't do that i need something sim

Execution failed for task ':app:compileDevDebugAndroidTestJavaWithJavac'

I am trying to run a command ./gradlew app:assembleAndroidTest inside android directory of my app in order to build an app-debug-androidTest.apk under androidTe

how to implement in app time out session in flutter

I want to log a user out after a specific amount time the user has not interacted with the app. I've wrapped the whole child widget in GestureDetector(). Ple

Flutter Riverpod ref.read() vs ref.listen() vs ref.watch()

After reading the documentation, it did not explain very well what ref.read(), ref.watch(), and ref.listen() is. The questions I have are as follows: What is th

How to test navigation via Navigator in Flutter

Let's say, I have a test for a screen in Flutter using WidgetTester. There is a button, which executes a navigation via Navigator. I would like to test behavior

Flutter: How can I highlights parameter-hint in visual studio code

I am using flutter in Visual Studio Code. I want to highlight parameter hints. If you see the picture, you can see that it's not colored. It's quite hard to

Rename a file/Image in flutter

I am picking a image from gallery/taking a photo using image_picker: ^0.6.2+3 package. File picture = await ImagePicker.pickImage( maxWidth: 800, imageQual

How do I center text vertically and horizontally in Flutter?

I'd like to know how to center the contents of a Text widget vertically and horizontally in Flutter. I only know how to center the widget itself using Center(ch

Flutter 2: Button with icon and text

Since RaisedButton, FlatButton, etc. have been deprecated, are there any button widgets that provide text and icons to prevent row creation or other workarounds

How to remove hash (#) from URL in Flutter web

The default URL of a Flutter web project defines a URL containing a hashtag (#), as follows: http://localhost:41521/#/peaple/... I would like to remove this '#

IOS simulator is not open

IOS simulator is not open and shows only a black screen how can I open this simulator, I am using the latest Xcode. I try to Erase all simulator data but can't

Autocomplete not working correctly in Android Studio with Flutter - First suggestions are irrelevant

I installed Flutter and Android Studio. I ran flutter doctor - Flutter doctor I have the Dart plugin installed - v191.8593. When I press Ctrl + Space at a very

How to detect a change in zoom level when using MapBox in Flutter?

There seem to be no straightforward way of detecting a change in the zoom level when using MapBox in Flutter. Various references exist for implementations outsi