Skip to content

İnternet bağlantısı var mı yok mu kontrolünün merkezi bir yerden yapılması #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from

Conversation

Abdulsametileri
Copy link

@Abdulsametileri Abdulsametileri commented Feb 4, 2021

Connectivity store ile kullanıcının internet bağlantısı var mı yok mu diye kontrol ediyorum. Eğer yoksa AlertDialog ile bu durumu kullanıcıya bildiriyorum.

AlertDialog çağırmak için context istiyor biz de setContext ile viewModelimize contexti gönderiyoruz bunu almak için de base_widget te
(model as BaseViewModel).context
şeklinde bir kod ile contexti aldım.

Sadece örnek olması açısından bunu gönderiyorum daha farklı caseler handle edilebilir. Test ettim bir sıkıntı görmedim, uygunsa mergelersiniz kıymetli hocam.

@VB10
Copy link
Owner

VB10 commented Mar 23, 2021

selam samet ellerıne saglık tum prları yayında alacağım eline sağlık

@VB10
Copy link
Owner

VB10 commented Apr 12, 2021

null safety sonrası confilctleri çözüp atar mısın

Language support added.
# Conflicts:
#	ios/Podfile.lock
#	lib/core/base/view/base_widget.dart
#	lib/main.dart
#	pubspec.lock
#	pubspec.yaml
@Abdulsametileri
Copy link
Author

Conflictleri çözüp dil desteğini ekledim hocam. @VB10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants