i am developing an ecommerce app which works very fine in debug mode,but surprisingly after generating a signed release apk it does not work well. SCENARIO. when i add items to cart for the first time after starting an app ,items are added to cart and cart length is updated on top of cart icon.but after opening cart page(view items in the cart),this starts to misbehave ,items are added into cart but cart length no longer updates unless i do refresh the page,also all buttons inside cart page (delete items from the cart button , add product quantity and reduce product quantity buttons.) does not work until i get out of cart page and come back again. also, after opening cart page ,other provider functions like filtering subcategories inside a category also does not work until some refresh . However these does not happen in debug mode ,just only in release mode. Iam using provider for State management. what's a possible cause for this problem.i would appreciate any help
Flutter Release APK misbehaving
95 Views Asked by salmoa At
1
There are 1 best solutions below
Related Questions in FLUTTER
- Flutter + Dart: Editing name of a tab shows up a black screen
- The Binary Version Of its metadata is 1.8.0, expected Version is 1.6.0 build error
- Way to get CustomPainter to track face in Camera Flutter MLKit
- flutter Null check error: did not show file and line number
- Creating multiple instances of a class with different initializing values in Flutter
- I want to paste stickers into to my TextField and to show the stickers beside the emojis
- Flutter plugin development android src not opening after opening example
- Module not found when building flutter app for IOS
- How to make barrier area interactive in flutter modal bottom sheet
- Can an RPC result be included in a Supabase select function in Flutter for Data Modeling?
- Why do I need to wait to reaccess to Firestore database even though it has already done before?
- Flutter web app on Windows -how to support mouse drag for horizontal and vertical scrolling as well as using mouse wheel
- I wrote this time displaying FLUTTER app, How can I improve it?
- Appwrite and / or Spring Boot Backend
- Flutter two_dimensional_scrollables Web app Chrome - cannot get horizontal scroll to work?
Related Questions in STATE
- NextJS 13 14, Store server state globally
- My state is undefined despite being setted
- Next.js carousel component loads instagram basic display api perfectly except in Safari browser
- How can I create a javascript animation that recognizes when it hits things, in other words a hit box?
- Flutter - When an element is deleted from the ListView, the state of the element under deletion is reset
- State Transfer from a model using Riverpod flutter
- React components don't re render when the state is changed
- Flutter | Persisting Navigator State Using Hydrated Bloc with the Bloc Design Pattern
- Wait set state finishes to call another function
- keyboard focus with GTK4 Rust does not work as expected and how to get state
- Bind state to context value in React JS
- I have a problem when I run on the web Bad state: databaseFactory not initialized databaseFactory
- How to manage state in a chrome extension in this scenario
- Should I use immutable or mutable state for a JSON tree editor in Flutter?
- React Component doesn't change states until file is resaved, then runs both at same time
Related Questions in PROVIDER
- How to access Riverpod provider value inside a class that doesnt know ref + Flutter
- A ExampleViewModel was used after being disposed
- To use Provider for only some specific pages in my Flutter project ?? what is a cleanner way
- Passing arguments or using providers in Flutter
- NullInjectorError, Standalone, No provider for _TranslateService Angular 17
- Show CircularProgressIndicator in custom button when state app is loading using flutter provider package
- Why FutureBuilder does not execute the condition when the data is not yet ready using Provider?
- Navigate to another screen when api response success in flutter with provider
- SDK encounters challenges what content to present in between extensions and mobile SDKs
- I cant debug flutter project, beginner
- Flutter Database not Showing when first app launch
- How does ValueListenableProvider differ from ChangeNotifierProvider?
- Dot indicator not working- Flutter -Should rebuild indicator on page change
- Flutter :- This AdWidget is already in the Widget tree. How to disable this exception. Using Provider
- Valuable Riverpod usage between Widgets
Related Questions in FLUTTER-APK
- API not hitting when building apk and run it on another device
- I nee to send current ( Latitude and Longitude and in time and out time and date ) to server using api get method how to
- Flutter project apk doesn't work properly on real device, but works well on emulator
- Flutter app size is doubled after flutter pub upgrade, Initial apk is almost 37mb and now the apk size is about 75mb after pub upgrade
- Flutter app stuck on black screen while installing apk on debug mode
- The Flutter Daemon has terminated in VScode
- Invalid radix-10 number (at character 1) in flutter
- Flutter UI is ruined after building and running the app on a physical device
- Exception has occurred.MissingPluginException (MissingPluginException(No implementation found for method getResourceUsage on channel resource_monitor)
- I Have Issue with Flutter Apk
- initState async operation not working after installation in real device using build apk file but works fine in android emulator in flutter
- Want only one active button from four buttons Flutter
- Show button's value in Text when it is pressed - Flutter
- Execution failed for task ':app:compileFlutterBuildRelease', please how do I solve this issue
- How to interact flutter apk with PostgreSQL and external website?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You are using a "global" provider function which is not called when the state changes. In your case, the issue is that you are calling the provider function on a non-existing instance of the provider class. This is the reason why the code works in debug mode.