Skip to content

Commit 96fb062

Browse files
committed
added note
1 parent f26810d commit 96fb062

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

day_17_01_sqlite_app/lib/screens/home_page.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ class _HomePageState extends State<HomePage> {
2828
//--------- build method end here ------------------
2929

3030
StreamBuilder<List<TaskTable>> _buildListView(BuildContext context) {
31+
//NOTE: Do not forget to set (listen: false) otherwise Provider will mesh-up Programe_counter, and code will no longer excecute further more
3132
final taskTableDaoObjc = Provider.of<TaskTableDao>(context, listen: false);
3233

3334
return StreamBuilder(

day_17_01_sqlite_app/lib/widget/input_box.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ class _InputBoxState extends State<InputBox> {
4646
controller: txtController,
4747
decoration: Constants.inputDecorationNewTask,
4848
onSubmitted: (newTypedText) {
49+
//NOTE: Do not forget to set (listen: false) otherwise Provider will mesh-up Programe_counter, and code will no longer excecute further more
4950
final taskTableDaoObjc =
5051
Provider.of<TaskTableDao>(context, listen: false);
5152
final newTaskObjc = TaskTablesCompanion(

0 commit comments

Comments
 (0)