Category "flutter"

How to use InputFormatter on Flutter TextField?

What do I need to insert into TextField(inputFormatters:? I want to disallow \ and / in one TextField and only allow a to Z in another.

Create a rounded button / button with border-radius in Flutter

I'm currently developing an Android app in Flutter. How can I add a rounded button?

Page popup from bottom flutter [closed]

I have an app and i wanted to add page thad slides from the bottom up, ultill three quarters of the screen, just as shown in the picture here

pub get failed (1; Because note requires SDK version >=1.18.0-6.0.pre <2.0.0, version solving failed.)

i am trying to use flutter SVG the latest version, but i faced a problem with my SDK version. i changed it to what the error message said,But i still faces the

Flutter: CocoaPods's specs repository is too out-of-date to satisfy dependencies

Current, I was trying to add firebase_core: ^0.5.0+1 and firebase_crashlytics: ^0.2.1+1 packages in my flutter project with the latest versions, It works withou

How to determine if flutter is running in simulator

Is there a call to determine if flutter is running within a simulator or a physical device? I am scanning QR codes, and want to bypass, since the camera is una

Ripple effect does work for long press in List tile

I wrapped List tile widget with gesture widget because I want to execute some code on onLongPressStart and onLongPressEnd Call back. But due to this the ripple

How can I have rounded corner on my Dismissible widget?

I'm currently developing a widget that needs to have rounded corners, but whenever I'm dragging my Dismissible widget from left to right, the Dismissible widget

How can I check if a Flutter application is running in debug?

I'm looking for a way to execute code in Flutter when the app is in Debug mode. Is that possible in Flutter? I can't seem to find it anywhere in the documentati

Flutter shared_preferences not persistent?

I have been using shared_preferences in flutter, was working fine until now. Suddenly it stopped working, both in iOS and Android. I debugged it step by step an

Flutter: Could not compile build file 'build.gradle', General error during semantic analysis: Unsupported class file major version 57

I try to develop an app using Flutter. Everything is OK when I initiate my app, it runs perfect for 2 days. But when I had an error writing my widgets, I restar

Flutter: How to use SharedPreferences synchronously?

I am using Shared Preferences in my Flutter app and what I would like to do is store SharedPreferences as a field on startup and then use it synchronously in th

flutter android gradle error with flutterdownloader

I have implemented flutterDownloader (its a package for downloading files in flutter ) in my project and when I add it to android manifest like the doc says and

pub get failed : A package may not list itself as a dependency

I'm having this problem in pubspec.yaml : here the pubspec.yaml : dependencies: flutter: sdk: flutter cupertino_icons: ^1.0.2 pluto_grid: ^2.9.3 and

How Firebase Cloudfunction check IAP subscribe changes outside from App?

I do the tutorial from CodeLab his project with all steps are here Github. Codelab helped me lot, Thanks! I do the steps and deleted all IAP products from tutor

Flutter: Run method on Widget build complete

I would like to be able to run functions once a Widget has finished building/loading but I am unsure how. My current use case is to check if a user is authentic

flutter: Exception DioError [DioErrorType.DEFAULT]: type 'String' is not a subtype of type 'Map<String, dynamic>'

I am new in flutter and I am not able to solve this issue can anyone help me? I am able to get data in string if I type Future<String> login() instead of

Create List View with Stream Builder

Want to create a list view from live data from server using stream, so create fake stream of data and then save its snapshot in a list to test result, when use

Flutter Socket io Error on WebSocketException: Connection to was not upgraded to websocket

I use this package and it work properly on test websites but in app I got this Error WebSocketException: Connection to 'https://socket.excopro.com:0/socket.io/?

debugPaintSizeEnabled is not working in Flutter

I just began learning flutter and built the sample app present in Building Layout tutorial. In the source code it's suggested to un-comment two lines, to se