NotifyHelper | INotifyPropertyChanged autogenerator | Reflection library
kandi X-RAY | NotifyHelper Summary
kandi X-RAY | NotifyHelper Summary
This repository contains a INotifyPropertyChanged implementation autogenerator. It uses Reflection.Emit runtime code generation and doesn’t require any build tasks.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of NotifyHelper
NotifyHelper Key Features
NotifyHelper Examples and Code Snippets
Community Discussions
Trending Discussions on NotifyHelper
QUESTION
I am currently using GetX and Sqflite within Flutter and encountering the issue of data update after insert.
Firstly, there is a LoadingScreen which checks if there are any entries in the User Database. If none, then it opens up the SignUp Page to be filled by the User. If there is already an entry in the User Database, then the SignIn Page is opened.
Once the SignUp Page is completed, the data is written into the User Database and the user is then taken to the Home Page where the User Name is displayed in the drawer.
The User is on .obs in the LoadingScreenController and I am using Obx for the username in the Home Page. Despite this, the data after completion of the insert command is not automatically updated.
However, if I call the fetch function again in the init of HomePage, then the fresh data is broght in.
My question is, do I have to run fetch function everytime there is an update to the database? Does it not beat the purpose of Getx? Obviously, I am wrong somewhere.
Below is the code to the Home Page, LoadingScreen, LoadingScreenController, SignUp Page and also Database Helper.
Would appreciate any help on this.
HomePage Code:
...ANSWER
Answered 2022-Jan-13 at 18:42You have to call fetch data after each add/update/delete action unless your database somehow returns a stream. And it does not defeat the purpose of GetX. It's expected behaviour. User should explicitly define what they want to do in their code.
Another thing: You are using GetBuilder
when using .obs
. That won't work because GetBuilder
is not reactive and will not react/update UI when an observable (.obs
) changes. You should use GetX
or Obx
instead.
QUESTION
I have a json result as string and I have a page model to convert this string to dart map. Although I use the correct function I still see the same error. Why do I see this error and how can I fix it?, thank you.
...ANSWER
Answered 2021-Apr-11 at 08:36I don't understand what are you trying to do with pageData
, try replacing it like this:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install NotifyHelper
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page