Merhabalar,
sharedprefereces ile verileri kaydedib anasayfada gosterdikden sonra uygulama donmaya basladi.
Android stduio ile performance kismina baktigimda bu widgetler tekrar oluşturuluyor.
ne yapabilirim ? setState kullanmadan ve,s?
ayrica flutter run release calistirdigimda bu yazilar geliyor terminalden
E/flutter (24534): Tried calling: markNeedsBuild()
E/flutter (24534): #0 State.setState (package:flutter/src/widgets/framework.dart:1260)
E/flutter (24534): #1 _ListAllSurahState.build.<anonymous closure>.<anonymous closure> (package:quran_app/ui/listpage/list_all_quran.dart:101)
E/flutter (24534): #2 _rootRunUnary (dart:async/zone.dart:1198)
E/flutter (24534): #3 _CustomZone.runUnary (dart:async/zone.dart:1100)
E/flutter (24534): #4 _FutureListener.handleValue (dart:async/future_impl.dart:143)
E/flutter (24534): #5 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:696)
E/flutter (24534): #6 Future._propagateToListeners (dart:async/future_impl.dart:725)
E/flutter (24534): #7 Future._completeWithValue (dart:async/future_impl.dart:529)
E/flutter (24534): #8 _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:40)
E/flutter (24534): #9 _completeOnAsyncReturn (dart:async-patch/async_patch.dart:311)
E/flutter (24534): #10 ConfigHelper.getSharedString (package:quran_app/data/utils/config_helper.dart)
E/flutter (24534): <asynchronous suspension>
E/flutter (24534):
E/flutter (24534): [ERROR:flutter/lib/ui/ui_dart_state.cc(166)] Unhandled Exception: NoSuchMethodError: The method 'markNeedsBuild' was called on null.
E/flutter (24534): Receiver: null
bu
https://ibb.co/7jhgBMc , https://ibb.co/LvWMbFt
ana_sayfa : https://pastebin.ubuntu.com/p/V4DT4Nw7FM/
detay_sayfa: https://pastebin.ubuntu.com/p/8yH7vbNq2g/
shared_pref sayfasi : https://pastebin.ubuntu.com/p/BDZnHf9qM9/